Просмотр исходного кода

Smaller changes to review data

Martin Horvat 1 год назад
Родитель
Сommit
9cc5c0f137
1 измененных файлов с 31 добавлено и 12 удалено
  1. 31 12
      python/review_data.ipynb

+ 31 - 12
python/review_data.ipynb

@@ -11,7 +11,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 20,
+   "execution_count": 1,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -23,18 +23,17 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 6,
+   "execution_count": 2,
    "metadata": {},
    "outputs": [],
    "source": [
     "suv_filename = \"../data/suv_percentilesSLOthenUWM.mat\"\n",
-    "flags_filename=\"../data/flags_combined.mat\"\n",
-    "normal_range_filename =\"../data/normal_range.mat\""
+    "flags_filename=\"../data/flags_combined.mat\""
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": 7,
+   "execution_count": 3,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -42,13 +41,12 @@
     "Loading all data\n",
     "\"\"\"\n",
     "suv_dict = io.loadmat(suv_filename)\n",
-    "flags_dict = io.loadmat(flags_filename)\n",
-    "normal_range_dict = io.loadmat(normal_range_filename)"
+    "flags_dict = io.loadmat(flags_filename)"
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": 10,
+   "execution_count": 4,
    "metadata": {},
    "outputs": [
     {
@@ -57,7 +55,7 @@
        "dict_keys(['__header__', '__version__', '__globals__', 'bowel_SUVperc_COMBINED', 'lung_SUVperc_COMBINED', 'thyroid_SUVperc_COMBINED'])"
       ]
      },
-     "execution_count": 10,
+     "execution_count": 4,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -69,6 +67,26 @@
   },
   {
    "cell_type": "code",
+   "execution_count": 5,
+   "metadata": {},
+   "outputs": [
+    {
+     "data": {
+      "text/plain": [
+       "dict_keys(['__header__', '__version__', '__globals__', 'days', 'flags', 'patients'])"
+      ]
+     },
+     "execution_count": 5,
+     "metadata": {},
+     "output_type": "execute_result"
+    }
+   ],
+   "source": [
+    "flags_dict.keys()"
+   ]
+  },
+  {
+   "cell_type": "code",
    "execution_count": 38,
    "metadata": {},
    "outputs": [
@@ -149,7 +167,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 34,
+   "execution_count": null,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -166,12 +184,13 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 35,
+   "execution_count": null,
    "metadata": {},
    "outputs": [],
    "source": [
     "\"\"\"\n",
-    "    Getting data we are interested in\n",
+    "    Getting data we are interested in:\n",
+    "    for each patient we get maximal the pth percentail SUV \n",
     "\"\"\"\n",
     "\n",
     "p = 95  # percentile of interest\n",