Skip to content

Scripts for automated assessment of motion artifacts in fMRI data.

Notifications You must be signed in to change notification settings

brainhack-eugene/auto-motion

Repository files navigation

auto-motion

Scripts for automated assessment of motion artifacts in fMRI data based on changes in global intensity and translation and rotation parameters.

To use this package, run the scripts in the following order:

1. calculate_global_intensities.r

This script reads in nifti files and calculates the mean global intensity and standard deviation for each functional volume specified.

2.motion_check.r

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.

3. auto_trash.r

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.

Example plot plot example

About

Scripts for automated assessment of motion artifacts in fMRI data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages