Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2020 Jul;15(7):2186-2202.
doi: 10.1038/s41596-020-0327-3. Epub 2020 Jun 8.

Analysis of task-based functional MRI data preprocessed with fMRIPrep

Affiliations

Analysis of task-based functional MRI data preprocessed with fMRIPrep

Oscar Esteban et al. Nat Protoc. 2020 Jul.

Abstract

Functional magnetic resonance imaging (fMRI) is a standard tool to investigate the neural correlates of cognition. fMRI noninvasively measures brain activity, allowing identification of patterns evoked by tasks performed during scanning. Despite the long history of this technique, the idiosyncrasies of each dataset have led to the use of ad-hoc preprocessing protocols customized for nearly every different study. This approach is time consuming, error prone and unsuitable for combining datasets from many sources. Here we showcase fMRIPrep (http://fmriprep.org), a robust tool to prepare human fMRI data for statistical analysis. This software instrument addresses the reproducibility concerns of the established protocols for fMRI preprocessing. By leveraging the Brain Imaging Data Structure to standardize both the input datasets (MRI data as stored by the scanner) and the outputs (data ready for modeling and analysis), fMRIPrep is capable of preprocessing a diversity of datasets without manual intervention. In support of the growing popularity of fMRIPrep, this protocol describes how to integrate the tool in a task-based fMRI investigation workflow.

PubMed Disclaimer

Conflict of interest statement

Competing interests

The authors declare no competing interests.

Figures

Fig. 1 |
Fig. 1 |. Overall workflow of the fMRIPrep protocol.
The analytic workflow is subdivided into three principal stages. First, a BIDS-compliant dataset is generated and validated. Next, dataset quality is assessed, and the data are preprocessed. Finally, the preprocessed data undergo a GLM fitting, which yields participant- and group-level statistical maps of task-related BOLD activity. FSL, FMRIB Software Library.
Fig. 2 |
Fig. 2 |. Running fMRIPrep on HPC.
Execution of BIDS apps (such as MRIQC or fMRIPrep) is easy to configure on HPC clusters. This figure provides an example execution script for our SLURM-based cluster, Stanford’s Sherlock. An up-to-date, complete version of the script is available at https://fmriprep.readthedocs.io/en/latest/singularity.html#running-singularity-on-a-slurm-system.
Fig. 3 |
Fig. 3 |. Output of the first-level analysis step.
Glass brain visualization of a statistical (z-stat) map reflecting the ‘intask-vs.-nontask’ activation obtained for subject 10 (thresholded at z = ±5).
Fig. 4 |
Fig. 4 |. Group analysis results.
Visualization of a group statistical (z-stat) map (cluster threshold = 3.2) reflecting the ‘task-vs.-nontask’ activation for all subjects. a, Glass brain visualization. b, Left and right hemisphere surface plot visualizations. Visualizations were generated using a function from Nilearn (see Visualization of results for details).

References

    1. Poldrack RA & Farah MJ Progress and challenges in probing the human brain. Nature 526, 371–379 (2015). - PubMed
    1. Ogawa S, Lee TM, Kay AR & Tank DW Brain magnetic resonance imaging with contrast dependent on blood oxygenation. Proc. Natl Acad. Sci. USA 87, 9868–9872 (1990). - PMC - PubMed
    1. Poldrack RA et al. Toward open sharing of task-based fMRI data: the OpenfMRI project. Front. Neuroinformatics 7, 12 (2013). - PMC - PubMed
    1. Gorgolewski KJ, Esteban O, Schaefer G, Wandell B & Poldrack RA OpenNeuro—a free online platform for sharing and analysis of neuroimaging data. in Organization for Human Brain Mapping 1677 (2017).
    1. Carp J On the plurality of (methodological) worlds: estimating the analytic flexibility of fMRI experiments. Front. Neurosci 6, 149 (2012). - PMC - PubMed

Publication types