image_convert
Small utility module to perform data type conversion on images. The new datatype has to be specified using the task.ext.datatype parameter, otherwise, the module will fail.
Keywords : image, convert, datatype
Inputs
Section titled “Inputs”Input 1
Section titled “Input 1”Format : tuple val(meta), path(image)
| Type | Description | Mandatory | Pattern | |
|---|---|---|---|---|
| meta | map | Groovy Map containing sample information e.g. [ id:'sample1', single_end:false ] | True | |
| image | file | Image to convert. | True | *.nii.gz |
Outputs
Section titled “Outputs”Format : tuple val(meta), path(*_converted.nii.gz)
| Type | Description | Mandatory | Pattern | |
|---|---|---|---|---|
| meta | map | Groovy Map containing sample information e.g. [ id:'sample1', single_end:false ] | True | |
| *_converted.nii.gz | file | Image converted into the specified datatype. | True | *_converted.nii.gz |
versions
Section titled “versions”Format : path(versions.yml)
| Type | Description | Mandatory | Pattern | |
|---|---|---|---|---|
| versions.yml | file | File containing software versions | True | versions.yml |
Arguments (see process.ext)
Section titled “Arguments (see process.ext)”| Type | Description | Default | Choices | |
|---|---|---|---|---|
| datatype | string | Data type to convert the image to. This should be a valid data type supported by MRtrix3, such as “float32”, “int16”, etc. If not specified, the module will fail. | “ | |
| first_suffix | string | Optional suffix to add to the output filename before the datatype. If not specified, the output filename will only include the datatype as a suffix. | “ |
| Description | DOI | |
|---|---|---|
| MRtrix3 | MRtrix3 is a software package for various types of diffusion imaging data, including diffusion-weighted, diffusion-tensor, and q-ball imaging. | 10.1016/j.neuroimage.2019.116137 |
Authors
Section titled “Authors”Last updated : 2026-04-15