Skip to content

Commit

Permalink
Update tutorials.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzwanenburg committed Jun 5, 2024
1 parent 4f10310 commit 1d694d2
Show file tree
Hide file tree
Showing 2 changed files with 189 additions and 76 deletions.
118 changes: 113 additions & 5 deletions docs_source/source/tutorial_apply_image_filter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"id": "1e447b05-08e1-4326-9709-531acf639a69",
"metadata": {
"editable": true,
"jp-MarkdownHeadingCollapsed": true,
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -164,7 +163,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"INFO\t: MainProcess \t 2024-04-24 11:26:22,645 \t Initialising image extraction using ct images for 1.\n"
"INFO\t: MainProcess \t 2024-06-05 11:52:36,662 \t Initialising image extraction using ct images for 1.\n"
]
}
],
Expand Down Expand Up @@ -349,7 +348,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"INFO\t: MainProcess \t 2024-04-24 11:26:24,360 \t Initialising image extraction using ct images for 1.\n"
"INFO\t: MainProcess \t 2024-06-05 11:52:38,720 \t Initialising image extraction using ct images for 1.\n"
]
}
],
Expand Down Expand Up @@ -596,16 +595,125 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 15,
"id": "c211ca72-ad62-491e-86ac-b30ac25ad6b4",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"INFO\t: MainProcess \t 2024-04-24 11:26:40,460 \t Initialising feature computation using ct images for 1.\n"
"INFO\t: MainProcess \t 2024-06-05 11:52:54,562 \t Initialising feature computation using ct images for 1.\n"
]
},
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>sample_name</th>\n",
" <th>image_file_name</th>\n",
" <th>image_directory</th>\n",
" <th>image_study_date</th>\n",
" <th>image_study_description</th>\n",
" <th>image_series_description</th>\n",
" <th>image_series_instance_uid</th>\n",
" <th>image_modality</th>\n",
" <th>image_pet_suv_type</th>\n",
" <th>image_mask_label</th>\n",
" <th>...</th>\n",
" <th>wavelet_simoncelli_level_3_stat_max</th>\n",
" <th>wavelet_simoncelli_level_3_stat_iqr</th>\n",
" <th>wavelet_simoncelli_level_3_stat_range</th>\n",
" <th>wavelet_simoncelli_level_3_stat_mad</th>\n",
" <th>wavelet_simoncelli_level_3_stat_rmad</th>\n",
" <th>wavelet_simoncelli_level_3_stat_medad</th>\n",
" <th>wavelet_simoncelli_level_3_stat_cov</th>\n",
" <th>wavelet_simoncelli_level_3_stat_qcod</th>\n",
" <th>wavelet_simoncelli_level_3_stat_energy</th>\n",
" <th>wavelet_simoncelli_level_3_stat_rms</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>None</td>\n",
" <td>chest_ct\\image</td>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" <td>1.3.6.1.4.1.9590.100.1.2.296658988911737913102...</td>\n",
" <td>ct</td>\n",
" <td>None</td>\n",
" <td>GTV-1</td>\n",
" <td>...</td>\n",
" <td>531.404254</td>\n",
" <td>77.65685</td>\n",
" <td>863.020984</td>\n",
" <td>61.349115</td>\n",
" <td>35.8172</td>\n",
" <td>58.114405</td>\n",
" <td>3.115791</td>\n",
" <td>2.045865</td>\n",
" <td>2.349373e+09</td>\n",
" <td>88.482671</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>1 rows × 311 columns</p>\n",
"</div>"
],
"text/plain": [
" sample_name image_file_name image_directory image_study_date \\\n",
"0 1 None chest_ct\\image None \n",
"\n",
" image_study_description image_series_description \\\n",
"0 None None \n",
"\n",
" image_series_instance_uid image_modality \\\n",
"0 1.3.6.1.4.1.9590.100.1.2.296658988911737913102... ct \n",
"\n",
" image_pet_suv_type image_mask_label ... \\\n",
"0 None GTV-1 ... \n",
"\n",
" wavelet_simoncelli_level_3_stat_max wavelet_simoncelli_level_3_stat_iqr \\\n",
"0 531.404254 77.65685 \n",
"\n",
" wavelet_simoncelli_level_3_stat_range wavelet_simoncelli_level_3_stat_mad \\\n",
"0 863.020984 61.349115 \n",
"\n",
" wavelet_simoncelli_level_3_stat_rmad wavelet_simoncelli_level_3_stat_medad \\\n",
"0 35.8172 58.114405 \n",
"\n",
" wavelet_simoncelli_level_3_stat_cov wavelet_simoncelli_level_3_stat_qcod \\\n",
"0 3.115791 2.045865 \n",
"\n",
" wavelet_simoncelli_level_3_stat_energy wavelet_simoncelli_level_3_stat_rms \n",
"0 2.349373e+09 88.482671 \n",
"\n",
"[1 rows x 311 columns]"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
Expand Down
147 changes: 76 additions & 71 deletions docs_source/source/tutorial_compute_radiomics_features_mr.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"INFO\t: MainProcess \t 2024-04-24 11:24:55,664 \t Initialising image extraction using mr images for STS_003.\n"
"INFO\t: MainProcess \t 2024-06-05 11:55:22,262 \t Initialising image extraction using mr images for STS_003.\n"
]
}
],
Expand Down Expand Up @@ -529,9 +529,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"INFO\t: MainProcess \t 2024-04-24 11:24:57,113 \t Initialising feature computation using mr images for STS_001.\n",
"INFO\t: MainProcess \t 2024-04-24 11:25:10,524 \t Initialising feature computation using mr images for STS_002.\n",
"INFO\t: MainProcess \t 2024-04-24 11:25:19,984 \t Initialising feature computation using mr images for STS_003.\n"
"INFO\t: MainProcess \t 2024-06-05 11:55:23,768 \t Initialising feature computation using mr images for STS_001.\n",
"INFO\t: MainProcess \t 2024-06-05 11:55:36,474 \t Initialising feature computation using mr images for STS_002.\n",
"INFO\t: MainProcess \t 2024-06-05 11:55:46,159 \t Initialising feature computation using mr images for STS_003.\n"
]
},
{
Expand All @@ -556,15 +556,15 @@
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>sample_name</th>\n",
" <th>image_settings_id</th>\n",
" <th>image_file_name</th>\n",
" <th>image_directory</th>\n",
" <th>image_study_date</th>\n",
" <th>image_study_description</th>\n",
" <th>image_series_description</th>\n",
" <th>image_series_instance_uid</th>\n",
" <th>image_modality</th>\n",
" <th>image_voxel_size_x</th>\n",
" <th>image_voxel_size_y</th>\n",
" <th>image_voxel_size_z</th>\n",
" <th>image_noise_level</th>\n",
" <th>image_noise_iteration_id</th>\n",
" <th>image_rotation_angle</th>\n",
" <th>image_translation_x</th>\n",
" <th>image_pet_suv_type</th>\n",
" <th>image_mask_label</th>\n",
" <th>...</th>\n",
" <th>ngl_hdhge_d1_a0.0_2d_fbn_n16</th>\n",
" <th>ngl_glnu_d1_a0.0_2d_fbn_n16</th>\n",
Expand All @@ -582,15 +582,15 @@
" <tr>\n",
" <th>0</th>\n",
" <td>STS_001</td>\n",
" <td></td>\n",
" <td>None</td>\n",
" <td>sts_images\\STS_001\\mr_t1\\image</td>\n",
" <td>20000903</td>\n",
" <td>^THIGH</td>\n",
" <td>AXIAL SE T1 - RESEARCH</td>\n",
" <td>1.3.6.1.4.1.14519.5.2.1.5168.1900.236909650266...</td>\n",
" <td>mr</td>\n",
" <td>1.0</td>\n",
" <td>1.0</td>\n",
" <td>5.2</td>\n",
" <td>0.0</td>\n",
" <td>NaN</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>None</td>\n",
" <td>GTV_Mass</td>\n",
" <td>...</td>\n",
" <td>649.904779</td>\n",
" <td>685.643163</td>\n",
Expand All @@ -606,15 +606,15 @@
" <tr>\n",
" <th>0</th>\n",
" <td>STS_002</td>\n",
" <td></td>\n",
" <td>None</td>\n",
" <td>sts_images\\STS_002\\mr_t1\\image</td>\n",
" <td>20060103</td>\n",
" <td>L-SPINE</td>\n",
" <td>AXT1</td>\n",
" <td>1.3.6.1.4.1.14519.5.2.1.5168.1900.103003228939...</td>\n",
" <td>mr</td>\n",
" <td>1.0</td>\n",
" <td>1.0</td>\n",
" <td>7.0</td>\n",
" <td>0.0</td>\n",
" <td>NaN</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>None</td>\n",
" <td>GTV_Mass</td>\n",
" <td>...</td>\n",
" <td>731.317187</td>\n",
" <td>232.044296</td>\n",
Expand All @@ -630,15 +630,15 @@
" <tr>\n",
" <th>0</th>\n",
" <td>STS_003</td>\n",
" <td></td>\n",
" <td>None</td>\n",
" <td>sts_images\\STS_003\\mr_t1\\image</td>\n",
" <td>20050330</td>\n",
" <td>MRI PELVIS C- C</td>\n",
" <td>AX T1</td>\n",
" <td>1.3.6.1.4.1.14519.5.2.1.5168.1900.900154069973...</td>\n",
" <td>mr</td>\n",
" <td>1.0</td>\n",
" <td>1.0</td>\n",
" <td>7.0</td>\n",
" <td>0.0</td>\n",
" <td>NaN</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>None</td>\n",
" <td>GTV_Mass</td>\n",
" <td>...</td>\n",
" <td>608.689328</td>\n",
" <td>472.701740</td>\n",
Expand All @@ -653,51 +653,56 @@
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>3 rows × 192 columns</p>\n",
"<p>3 rows × 203 columns</p>\n",
"</div>"
],
"text/plain": [
" sample_name image_settings_id image_modality image_voxel_size_x \\\n",
"0 STS_001 mr 1.0 \n",
"0 STS_002 mr 1.0 \n",
"0 STS_003 mr 1.0 \n",
" sample_name image_file_name image_directory \\\n",
"0 STS_001 None sts_images\\STS_001\\mr_t1\\image \n",
"0 STS_002 None sts_images\\STS_002\\mr_t1\\image \n",
"0 STS_003 None sts_images\\STS_003\\mr_t1\\image \n",
"\n",
" image_study_date image_study_description image_series_description \\\n",
"0 20000903 ^THIGH AXIAL SE T1 - RESEARCH \n",
"0 20060103 L-SPINE AXT1 \n",
"0 20050330 MRI PELVIS C- C AX T1 \n",
"\n",
" image_voxel_size_y image_voxel_size_z image_noise_level \\\n",
"0 1.0 5.2 0.0 \n",
"0 1.0 7.0 0.0 \n",
"0 1.0 7.0 0.0 \n",
" image_series_instance_uid image_modality \\\n",
"0 1.3.6.1.4.1.14519.5.2.1.5168.1900.236909650266... mr \n",
"0 1.3.6.1.4.1.14519.5.2.1.5168.1900.103003228939... mr \n",
"0 1.3.6.1.4.1.14519.5.2.1.5168.1900.900154069973... mr \n",
"\n",
" image_noise_iteration_id image_rotation_angle image_translation_x ... \\\n",
"0 NaN 0.0 0.0 ... \n",
"0 NaN 0.0 0.0 ... \n",
"0 NaN 0.0 0.0 ... \n",
" image_pet_suv_type image_mask_label ... ngl_hdhge_d1_a0.0_2d_fbn_n16 \\\n",
"0 None GTV_Mass ... 649.904779 \n",
"0 None GTV_Mass ... 731.317187 \n",
"0 None GTV_Mass ... 608.689328 \n",
"\n",
" ngl_hdhge_d1_a0.0_2d_fbn_n16 ngl_glnu_d1_a0.0_2d_fbn_n16 \\\n",
"0 649.904779 685.643163 \n",
"0 731.317187 232.044296 \n",
"0 608.689328 472.701740 \n",
" ngl_glnu_d1_a0.0_2d_fbn_n16 ngl_glnu_norm_d1_a0.0_2d_fbn_n16 \\\n",
"0 685.643163 0.202679 \n",
"0 232.044296 0.208755 \n",
"0 472.701740 0.345461 \n",
"\n",
" ngl_glnu_norm_d1_a0.0_2d_fbn_n16 ngl_dcnu_d1_a0.0_2d_fbn_n16 \\\n",
"0 0.202679 573.379973 \n",
"0 0.208755 212.059230 \n",
"0 0.345461 334.257475 \n",
" ngl_dcnu_d1_a0.0_2d_fbn_n16 ngl_dcnu_norm_d1_a0.0_2d_fbn_n16 \\\n",
"0 573.379973 0.164149 \n",
"0 212.059230 0.183419 \n",
"0 334.257475 0.238191 \n",
"\n",
" ngl_dcnu_norm_d1_a0.0_2d_fbn_n16 ngl_dc_perc_d1_a0.0_2d_fbn_n16 \\\n",
"0 0.164149 1.0 \n",
"0 0.183419 1.0 \n",
"0 0.238191 1.0 \n",
" ngl_dc_perc_d1_a0.0_2d_fbn_n16 ngl_gl_var_d1_a0.0_2d_fbn_n16 \\\n",
"0 1.0 2.124407 \n",
"0 1.0 3.301315 \n",
"0 1.0 3.232402 \n",
"\n",
" ngl_gl_var_d1_a0.0_2d_fbn_n16 ngl_dc_var_d1_a0.0_2d_fbn_n16 \\\n",
"0 2.124407 2.835808 \n",
"0 3.301315 5.169630 \n",
"0 3.232402 5.422279 \n",
" ngl_dc_var_d1_a0.0_2d_fbn_n16 ngl_dc_entr_d1_a0.0_2d_fbn_n16 \\\n",
"0 2.835808 5.207281 \n",
"0 5.169630 5.048137 \n",
"0 5.422279 4.222418 \n",
"\n",
" ngl_dc_entr_d1_a0.0_2d_fbn_n16 ngl_dc_energy_d1_a0.0_2d_fbn_n16 \n",
"0 5.207281 0.034652 \n",
"0 5.048137 0.050158 \n",
"0 4.222418 0.132661 \n",
" ngl_dc_energy_d1_a0.0_2d_fbn_n16 \n",
"0 0.034652 \n",
"0 0.050158 \n",
"0 0.132661 \n",
"\n",
"[3 rows x 192 columns]"
"[3 rows x 203 columns]"
]
},
"execution_count": 7,
Expand Down Expand Up @@ -760,7 +765,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 1d694d2

Please sign in to comment.