Skip to content

Commit

Permalink
Added registration code
Browse files Browse the repository at this point in the history
  • Loading branch information
jcohenadad committed Dec 22, 2023
1 parent 9a222d5 commit 3dd1299
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,20 @@
" !sct_deepseg_sc -i {subject}_acq-CoV_T2starw.nii.gz -c t2 -qc {os.path.join(path_data, \"qc\")}"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "014af6ec",
"metadata": {},
"outputs": [],
"source": [
"# Register TFL B1maps to the GRE scan\n",
"\n",
"for subject in subjects:\n",
" os.chdir(os.path.join(path_data, subject, \"fmap\"))\n",
" !sct_register_multimodal -i {subject}_acq-anatCoV_TB1TFL.nii.gz -d ../anat/{subject}_acq-CoV_T2starw.nii.gz -param step=1,type=im,algo=slicereg,metric=CC -qc {os.path.join(path_data, \"qc\")}"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -749,7 +763,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.10.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 3dd1299

Please sign in to comment.