/pl-dcm2niix

DICOM to NIFTI conversion

Primary LanguagePythonMIT LicenseMIT

pl-dcm2niix ChRIS Plugin

Version MIT License Build

pl-dcm2niix is a ChRIS ds plugin wrapper around dcm2niix. It converts an input directory of DICOMs into an output directory of NIFTI images.

chrisstore.co

Usage

pl-dcm2niix can run from ChRIS or locally on the command-line using Apptainer.

singularity exec docker://fnndsc/pl-dcm2niix dcm2niixw input/ output/

A subset of the options from the original dcm2niix are available.

Examples

Example datasets can be obtained from here:

https://github.com/DataCurationNetwork/data-primers/blob/master/Neuroimaging%20DICOM%20and%20NIfTI%20Data%20Curation%20Primer/neuroimaging-dicom-and-nifti-data-curation-primer.md#example-datasets

To convert DICOMs in inputdir/ to NIFTIs in outputdir/, without producing BIDs sidecar JSON (-b n), disable automatic 2D slice merge (-m n), compressed .nii.gz output (-z y):

singularity exec docker://fnndsc/pl-dcm2niix dcm2niixw -b n -m n -z y inputdir/ outputdir/