Skip to content

registration_antsapplytransforms

register image from transform

Keywords : MRI, registration, medical imaging


Format : tuple val(meta), val(images), path(reference), val(transformations)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
imageslistInput images to transform onto reference.True*.{nii.nii.gz}
referencefileReference image for transformation.True*.{nii.nii.gz}
transformationslistTransformation files (in the correct order).True*.{nii.gz,mat}

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

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*.{nii,nii.gz}fileWarped image(s).True*.{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.False*_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}
suffixstringObligatory suffix to add to the output file name to prevent overwrite of input files. e.g. : the suffix warped will result in the name 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 input images. e.g. 2 for 2D images, 3 for 3D images.3
image_typeintegerType of the input image : - 0: scalar - 1: vector - 2: tensor - 3: time series - 4: multichannel - 5: five-dimensional0- 0
- 1
- 2
- 3
- 4
- 5
interpolationstringInterpolation method to use for the transformation. Content in [...] is optional. Refer the the antsApplyTransforms documentation for more details.Linear- 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.default- 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.0
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-12-22