Skip to content

Instantly share code, notes, and snippets.

@ilkayisik
Created April 23, 2019 13:48
Show Gist options
  • Save ilkayisik/221dddb10d7733a92c2f4c4d797defda to your computer and use it in GitHub Desktop.
Save ilkayisik/221dddb10d7733a92c2f4c4d797defda to your computer and use it in GitHub Desktop.
transform labels drawn on the surface to volume space
# if temp is mgz then use --identity as the reg method
bash_root=/Users/ilkay.isik/project_folder_temp/fc_content/MRI_data/lscp_data/derivatives
mri_label2vol --subject sub-01 --hemi rh \
--identity \
--label ${bash_root}/path/ffa.label \
--temp ${bash_root}/freesurfer/sub-01/mri/orig.mgz \
--fillthresh .3 --proj frac 0 1 .2 \
--o ${bash_root}/path/ffa_label.nii
# if temp is t1w then use -reg and provide reg file as the reg method
mri_label2vol --subject sub-01 --hemi rh \
--label ${bash_root}/path/ffa.label \
--temp ${bash_root}/fmriprep/sub-01/anat/sub-01_T1w_preproc.nii.gz \
--fillthresh .3 --proj frac 0 1 .2 \
--o ${bash_root}/path/ffa_label.nii \
--reg ${bash_root}/sub-01_reg/register.dat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment