Package that provides tools for brain MRI Deep Learning pre-processing.
Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.
- brainprep.utils.write_matlabbatch(template, nii_files, tpm_file, darteltpm_file, session, batch_file, outdir, model_long=1)[source]ΒΆ
- Complete matlab batch from template and unzip T1w file in the outdir.
Create the outdir.
- Parameters:
template : str
path to template batch to be completed.
nii_files : list
the Nifti images to be processed.
tpm_file : str
path to the SPM TPM file.
darteltpm_file : str
path to the CAT12 tempalte file.
batch_file : str
Filepath to the matlabbatch
outdir : str
the destination folder for cat12vbm outputs.
session : str
the session names, usefull for longitudinal preprocessings. Warning session and nii files must be in the same order.
model_long : int
longitudinal model choice, default 1. 1 short time (weeks), 2 long time (years) between images sessions.
Follow us