Skip to content

registration_tractogram

Apply a transform to a tractogram or multiple tractograms. Supports .trk, .tck, and .h5 formats. Please note that removing single or overlapping points is only supported for .trk or .tck files.

Keywords : Diffusion MRI, Registration, Bundles, Tractogram


Format : tuple val(meta), path(anat), path(affine), path(tractogram), path(reference), path(deformation)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
anatfileFA nifti format as anatomical imageTrue*.{nii,nii.gz}
affinefileANTs affine transformTrue*.mat
tractogramfileTractogram or list of tractograms to registerTrue*.{trk,tck,h5}
referencefileReference anatomy for tck/vtk/fib/dpy file support (.nii or .nii.gz) (optional)False*.{tck,vtk,fib,dpy}
deformationfilePath to the file containing a deformation field (optional)False*.{nii,nii.gz}

Format : tuple val(meta), path(*.{trk,tck,h5})

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*.{trk,tck,h5}fileWarped tractogram(s).True*.{trk,tck}

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versionsTrueversions.yml

TypeDescriptionDefaultChoices
inversebooleanIf true, the affine transform will be inverted before being applied to the tractogram.False
reverse_operationbooleanIf true, applies affine and deformation in reverse order (deformation first).False
invalid_streamlinesstringHow to manage invalid streamlines after applying the transform. Either ‘keep’ invalid streamlines in the tractogram, ‘cut’ invalid segments and keep the remainder or ‘remove’ invalid streamlines entierly. NOTE : selecting ‘keep’ disables overlapping and single-point streamlines detection.cut- keep
- cut
- remove
remove_single_pointbooleanIf true, removes single-point streamlines after applying the transform.False
remove_overlapping_pointsbooleanIf true, remove streamlines with overlapping points after applying the transform.False
no_emptybooleanDon’t save empty tractograms.False
thresholdfloatMaximum distance between two points to be considered overlapping, in mm.0.001

DescriptionDOI
ANTsperform registration using transform as input
scilpyThe Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox.


Last updated : 2025-12-22