Physiological Noise Correction using the PhysIO Toolbox - Examples for CUBRIC, Cardiff
This small repository sets up a simple preprocessing (realignment)
- You will need to install SPM12
- You will need to install the PhysIO Toolbox
- The
PhysIO/code
folder should end up inspm12/toolbox/PhysIO
- The
- Open the main script
cubric_main
in Matlab - Follow the instructions there to adapt paths to your environment
- For each subject to try, copy the fMRI and physiological recording data according to the following naming
conventions into a new folder
results/sub-XX
(XX is subject ID, e.g., 15)*3DT1*.nii -> results/sub-XX/nifti/struct.nii
*rFMRI*.nii -> results/sub-XX/nifti/fmri.nii
- Note that this only assesses the resting state run for now. You can number the runs
fmri1.nii
,fmri2.nii
etc., but you will have to adapt all job files*_spm_job.m
in the code to reflect the right file names.
- Note that this only assesses the resting state run for now. You can number the runs
LabChart*.txt -> SCANPHYSLOG.log
- Note that you have to choose the log file where the
<TimeStamp>
roughly matches (being a bit earlier, but < 1 min) theAcquisitionTime
in the.json
sidecar file of the corresponding*rFMRI*.nii
file
- Note that you have to choose the log file where the
- Run
cubric_physio_main
(play button) in Matlab. For starters, the interactive mode (isInteraxtive = true
) is recommended