SPM-based scripts for doing general QA on fMRI data, including identification of suspect timepoints with ArtRepair and generation of several diagnostic plots. QA can be run on several subjects at once.
Note that any toolboxes placed in a folder called vendor
within the repository will be automatically added to the Matlab path (and ignored by GitHub).
memolab_batch_qa.m
to specify your input paths, variables, etc. All inputs are described in detail within the script.memolab_batch_qa
script. It will run all steps detailed below.convert_dicom.m
or find_nii.m
batch_spm_realign.m
run_art_global.m
compute_snr.m
run_theplot.m
create_spike_regs.m
save_sum_info.m
slices_avg_plot_[subject].png
– plot of average signal in image slices; should look like a brain!slices_sd_plot_[subject].png
– plot of signal SD in image slices; should be mostly blueslices_tsnr_plot_[subject].png
– plot of temporal SNR in image slicestsnr_plot_[subject].png
– plot of mean temporal SNR values for each run, both for the whole brain and the middle slicespatialSNR_[subject].png
– plot of spatial SNR over timetimecourse_slice_plot_[subject].png
– plot of signal intensity over time by each slice; should look like a rainbow without any obviously deviant individual slices or timepointsartglobal_[subject]_[run].png
- plot of the global mean signal, standard devation away from the mean signal, the 6 movement parameters and the framewise displacement for each timepoint. Bad timepoints are flagged with vertical lines[run]_voxplot.png
- Power et al. 2016's "The Plot" for this run. Framewise displacement is plotted at the top; every voxel in a timepoints is represented by a single column in the body of the plot; the top 1/3 of the body if the grey matter (blue), then white matter (green), then CSF (yellow); there is a solid green line denoting the change from Grey Matter to White Matter[subject]_QA_summary_information.mat
– contains subject summary info[run]_SNR.nii
– NII of temporal SNRQA_diary_output.txt
- record of the MATLAB command window while running the memolab_MRI_qa pipelineQA_report_[subject].pdf
- optional report that concatenates most of the plots, putting them into a single PDF (in batch script, set pdfReport=1
)