SpinozaWiki:ProcessParrec
From SpinozaWiki
ProcessParrec3
Description:
Function converts PAR./REC files to nifti format. In the process directories are created for each subject in the directory ToProcess. In this directory sub-directories are created for each of the sequences in the recording of that subject. Within this directory the converted PAR./REC file is placed together with a ScanInfo.mat file that contains additional information about the scan. All other functions that process mri data presume the filestructure created by this function. At the same time a backup directory is created called MRIBackup with the same structure as above with zipped versions of the PAR./REC files. Files are also placed in the correct orientation.
Usage:
To be executed in a directory with PAR./REC files. An option can be specified to modify its processing. Options are 1 NIFTI conversion (default). 2 Only move the files (and zip the backup files). 3 Only process the files for backup. 4 Does not zip the NIFTI files (for SPM), does zip backup. 5 Only does the NIFTI conversion (deletes the PAR./REC files). Furthermore, if option 1, 4 or 5 is used, the NIFTI file will also be fslroi'ed to remove the area around the scan with no information. This reduces the file size with about 50%. This preparation is commonly done by the scan assistant who will put your data on the network under fMRI/ToProcess.
Command:
ProcessParrec3(option)
Example:
Runs the program with the default option.
ProcessParrec3(1);