Skip to content

registration_convert

Freesurfer transform conversion tool. Default usage is aim at receiving freesurfer format and converting to ANTs (ITK). See lta_convert —help and mri_warp_convert —help for options.

Keywords : Registration, Brain imaging, MRI, Conversion


Format : tuple val(meta), path(deform), path(affine), path(source), path(target), path(fs_license)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
deformfileDeform transform to convert. Default usage expects Freesurfer .mgz format from mri_synthmorphTrue*.{nii,nii.gz,mgz,m3z}
affinefileAffine transform to convert. Default usage expects Freesurfer .lta format from mri_synthmorphTrue*.{lta,txt,xfm,dat}
sourcefileMoving Nifti volume used for registration. Defines source image geometryTrue*.{nii,nii.gz}
targetfileFixed Nifti volume used for registration. Defines target image geometry. (optional)True*.{nii,nii.gz}
fs_licensefileThe path to your FreeSurfer license. To get one, go to https://surfer.nmr.mgh.harvard.edu/registration.html. Optional. If you have already set your license as prescribed by Freesurfer (copied to a .license file in your $FREESURFER_HOME), this is not required.True*.txt

Format : tuple val(meta), path(*out_warp.{nii,nii.gz,mgz,m3z})

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*out_warp.{nii,nii.gz,mgz,m3z}fileDeform transform. Default usage outputs ANTs (ITK) format .nii.gzTrue*out_warp.{nii,nii.gz,mgz,m3z}

Format : tuple val(meta), val(*out_affine.{txt,lta,mat,dat})

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*out_affine.{txt,lta,mat,dat}mapAffine transform. Default usage outputs ANTs (ITK) format .txtTrue*out_affine.{txt,lta,mat,dat}

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versionsTrueversions.yml

DescriptionDOI
FreesurferOpen source neuroimaging toolkit for processing, analyzing, and visualizing human brain MR images.10.1016/j.neuroimage.2012.01.021


Last updated : 2025-10-30