Giter Site home page Giter Site logo

auto-motion-fmriprep's Introduction

DOI

auto-motion-fmriprep

Scripts for the automated assessment of motion artifacts in fMRI data using fmriprep confounds.

Please note that this project is still in development and has not yet been validated with data outside of the Developmental Social Neuroscience Lab at the University of Oregon. If you are interested in using this tool, please proceed with caution.

If you use fmriprep and would like to contiribute to this project by sharing your confounds.tsv files (and potentially hand coded visual artifacts), please email me!

About

These scripts use machine learning and the motion indicators from fmriprep to detect motion artifacts in fMRI data and returns a "trash" regressor (i.e. a series of 1s and 0s denoting the presence or absence of motion artifacts) that can be used in first level models along with other nuisance regressors.

The machine learning classifier was developed to accurately classify visual motion artifacts (i.e. striping) using data from the Developmental Social Neuroscience Lab at the University of Oregon. This classifier can be applied to new data to predict motion artifacts using these scripts. For more information about the development and validation of the classifier, please check out my poster from FLUX 2018.

Requirements

  • fMRI data must be preprocessed using fmriprep and each sequence you want to model must have a confounds.tsv file
  • R must be installed wherever you plan to run the scripts

Usage

1. config.R

Modify this script to specify user-defined variables and paths.

2. auto_motion_fmriprep.R

This script loads the fmriprep confound files, applies the machine learning classifier to predict motion artifacts, and returns summaries by task, task and run, and trash volumes only.

If noRP = FALSE, it will also export a text file with realignment parameters (or realignment parameters converted into Euclidean distance) and the trash regressor for each participant/wave/task/run.

If noPlot = FALSE, it will export timecourse plots with volumes predicted to have motion artifacts highlighted on confounds of your choice. Here is an example plot using framewise displacement, global signal, and standardized DVARS:

example plot

You can either run this script directly in R or RStudio, or submit it as a job on a computational grid. If you are using slurm for job scheduling, you can modify the install_packages.bash and run_auto_motion.bash scripts to run the code on a copmutational cluster.

Acknowledgements

Thank you to John C. Flournoy and Nandita Vijayakumar for their help developing this code. Huge thank you to Gracie Arnone, Oscar Bernat, Cameron Hansen, Leticia Hayes, & Nathalie Verhoeven for helping hand code motion artifacts.

auto-motion-fmriprep's People

Contributors

dcosme avatar iamdamion avatar ericearl avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.