Skip to content

registration_antsapplytransforms

register image from transform

Keywords : MRI, registration, medical imaging


Format : tuple val(meta), path(image), path(reference), path(warp), path(affine)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
imagefileInput image to registerTrue*.{nii.nii.gz}
referencefileReference image for registrationTrue*.{nii.nii.gz}
warpfileWarp transformation file to warp image or trk.True*.{nii,nii.gz}
affinefileAffine or rigig transformation file to warp image or trk (*mat). If a rigid or affine transformation needs to be inverted before being applied, use antsApplyTransforms with the -o Linear[inversedTransform,1], as this module does not handles it.True*.mat

Format : tuple val(meta), path(*__warped.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__warped.nii.gzfileWarped image.True*__warped.{nii.nii.gz}

Format : tuple val(meta), path(*_registration_antsapplytransforms_mqc.gif)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*_registration_antsapplytransforms_mqc.giffile.gif file containing quality control image for the registration process. Made for use in MultiQC report.True*_registration_antsapplytransforms_mqc.gif

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versionsTrueversions.yml

TypeDescriptionDefaultChoices
prefixstringPrefix to add to the output file name. e.g. warped_ will result in warped_image.nii.gz.${meta.id}
suffixstringSuffix to add to the output file name. e.g. _warped will result in image_warped.nii.gz.__warped
suffix_qcstringSuffix to add to the quality control image file name. e.g. qc will result in *qc_registration_antsapplytransforms_mqc.gif.
dimensionalitynumberDimensionality of the input image. e.g. 2 for 2D images, 3 for 3D images.
image_typeintegerType of the input image.- 0 (scalar)
- 1 (vector)
- 2 (tensor)
- 3 (time series)
- 4 (multichannel)
- 5 (five-dimensional)
interpolationstringInterpolation method to use for the transformation. Content in [...] is optional. Refer the the antsApplyTransforms documentation for more details.- Linear
- NearestNeighbor
- MultiLabel[<sigma=imageSpacing>,<alpha=4.0>]
- Gaussian[<sigma=imageSpacing>,<alpha=1.0>]
- BSpline[<order=3>]
- CosineWindowedSinc
- WelchWindowedSinc
- HammingWindowedSinc
- LanczosWindowedSinc
- GenericLabel[<interpolator=Linear>]
output_dtypestringOutput data type for the warped image.- char
- uchar
- float
- double
- short
- int
- default
default_valnumberDefault value to use for the input image. It specifies the voxel value when the input point maps outside the output domain.
run_qcbooleanWhether to run quality control for the registration process. e.g. true to generate a quality control image, false to skip it.False

DescriptionDOI
ANTsperform registration using transform as input


Last updated : 2025-10-30