clinicaio.types.FileExtension#

class clinicaio.types.FileExtension#

Bases: str, enum.Enum

The file extensions that can be encountered for BIDS image files and their companion files.

Initialize self. See help(type(self)) for accurate signature.

NII = 'nii'#

Uncompressed NIFTI

NII_GZ = 'nii.gz'#

GZIP compressed NIFTI

BVAL = 'bval'#

BIDS specification

BVEC = 'bvec'#

BIDS specification

JSON = 'json'#

JSON. In the context of image files, these are sidecar files which provide metadata that can’t be stored/provided by the main NIFTI file itself (e.g. when converting from DICOM to NIFTI).

MAT = 'mat'#
TSV = 'tsv'#

Methods#

is_nifti(→ bool)

Returns whether this is a NIFTI file extension (as compressed form is also common)

__repr__(→ str)

Return repr(self).

__str__(→ str)

Return str(self).