Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
examples/ashs.ipynb: added ashs.IntracranialVolumeFile
Browse files Browse the repository at this point in the history
  • Loading branch information
fphammerle committed Aug 7, 2019
1 parent eadd42c commit 91700cf
Showing 1 changed file with 46 additions and 11 deletions.
57 changes: 46 additions & 11 deletions examples/ashs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,45 @@
"SUBJECT = 'bert'"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Intracranial Volume"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1234560.0 mm^3\n"
]
}
],
"source": [
"from freesurfer_volume_reader.ashs import IntracranialVolumeFile\n",
"\n",
"for volume_file in IntracranialVolumeFile.find(SUBJECTS_DIR):\n",
" if volume_file.subject == SUBJECT:\n",
" print(volume_file.read_volume_mm3(), 'mm^3')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Subfield Volumes"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
Expand All @@ -31,7 +66,7 @@
" 'bert_left_corr_nogray_volumes.txt']"
]
},
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -47,7 +82,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -132,7 +167,7 @@
"4 PHC 2345.878 bert right nogray"
]
},
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -145,7 +180,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand All @@ -157,7 +192,7 @@
"Name: correction, dtype: int64"
]
},
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -169,7 +204,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -282,7 +317,7 @@
"SUB 457.789 457.781 457.780 457.781"
]
},
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -295,7 +330,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1093,10 +1128,10 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7ff6715a74e0>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb6ca200208>"
]
},
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -1133,7 +1168,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.7"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 91700cf

Please sign in to comment.