Skip to content

Instantly share code, notes, and snippets.

@oesteban
Created February 7, 2018 01:12
Show Gist options
  • Save oesteban/30ea125504dcea3683cb99e611da6c90 to your computer and use it in GitHub Desktop.
Save oesteban/30ea125504dcea3683cb99e611da6c90 to your computer and use it in GitHub Desktop.
# Find native-to-freesurfer transform matrix
tkregister2 --mov out/fmriprep/sub-06/anat/sub-06_T1w_preproc.nii.gz --targ out/freesurfer/sub-06/mri/orig.mgz --reg native2fs.dat --noedit --regheader --s sub-06
# Convert to lta
lta_convert --src out/fmriprep/sub-06/anat/sub-06_T1w_preproc.nii.gz --trg out/freesurfer/sub-06/mri/orig.mgz --inreg native2fs.dat --outlta native2fs.lta --subject sub-06
# Concatenate BOLD-to-native and native-to-freesurfer
mri_concatenate_lta -out_type 1 -subject sub-06 work/fmriprep_wf/single_subject_06_wf/func_preproc_ses_pre_task_rest_run_01_wf/bold_reg_wf/bbreg_wf/bbregister/uni_xform_masked_bbreg_sub-06.lta native2fs.lta bold2fs.lta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment