SPM Utilities¶
Submodules¶
django_mri.analysis.interfaces.matlab.spm.utils.batch_templates module¶
Definition of the
TEMPLATES
constant.
-
django_mri.analysis.interfaces.matlab.spm.utils.batch_templates.
TEMPLATES
= {'CAT12 Segmentation': PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/django-mri/checkouts/latest/django_mri/analysis/interfaces/matlab/spm/cat12/segmentation/batch_template.m')}¶ Batch templates dictionary, associating interface keys with template paths.
django_mri.analysis.interfaces.matlab.spm.utils.nifti_validator module¶
Definition of the
NiftiValidator
class.
-
class
django_mri.analysis.interfaces.matlab.spm.utils.nifti_validator.
NiftiValidator
(allow_gz: bool = False)¶ Bases:
object
A utility class used to validate .nii inputs and uncompress them if necessary.
-
validate_and_fix
(path: pathlib.Path) → pathlib.Path¶ Validates the provided path represents a .nii file and uncompresses it if necessary.
Parameters: path (Path) – .nii file path
Returns: .nii file path
Return type: Path
Raises: ValueError
– Invalid suffix (not .nii)FileNotFoundError
– File does not exist
-