Scripts for automated assessment of motion artifacts in fMRI data based on changes in global intensity and translation and rotation parameters.
This script reads in nifti files and calculates the mean global intensity and standard deviation for each functional volume specified.
This script takes the rp text files generated during realignment and calculates Euclidian composite scores for X,Y,Z translation and pitch, yaw, roll rotation.
This script integrates global intensity values and Euclidian distance measures to determine which volumes have motion artifacts. Outputs include new rp_txt files with a trash regressor for motion artifacts, summaries of number and percent of trash volumes per subject and run, and plots of volumes by trash status for mean intensity, intensity standard deviation, and Euclidian rotation and traslation.