Skip to content

Commit 38378e8

Browse files
committed
Merge remote-tracking branch 'upstream/master' into pr/1487
2 parents 16bebee + b9c31dd commit 38378e8

26 files changed

+1689
-1303
lines changed

.circleci/config.yml

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -294,47 +294,36 @@ jobs:
294294

295295

296296
build_docs:
297-
machine:
298-
image: circleci/classic:201711-01
299-
working_directory: /home/circleci/out/docs
297+
docker:
298+
- image: python:latest
299+
working_directory: /tmp/src/fmriprep
300300
steps:
301-
- checkout:
302-
path: /home/circleci/src/fmriprep
301+
- checkout
303302
- run:
304303
name: Check whether build should be skipped
305304
command: |
306-
cd /home/circleci/src/fmriprep
307305
if [[ "$( git log --format=oneline -n 1 $CIRCLE_SHA1 | grep -i -E '\[skip[ _]?docs\]' )" != "" ]]; then
308306
echo "Skipping doc building job"
309307
circleci step halt
310308
fi
311-
312-
- attach_workspace:
313-
at: /tmp
314309
- run:
315-
name: Load Docker image layer cache
316-
no_output_timeout: 30m
310+
name: Check Python version and upgrade pip
317311
command: |
318-
docker info
319-
set +o pipefail
320-
if [ -f /tmp/cache/docker.tar.gz ]; then
321-
sudo apt update && sudo apt -y install pigz
322-
pigz -d --stdout /tmp/cache/docker.tar.gz | docker load
323-
docker images
324-
fi
312+
python --version
313+
python -m pip install -U pip
325314
- run:
326-
name: Build fMRIPrep documentation
327-
no_output_timeout: 2h
315+
name: Install graphviz
328316
command: |
329-
docker run -ti --rm=false -v $PWD:/_build_html \
330-
--entrypoint=sphinx-build poldracklab/fmriprep:latest \
331-
-T -E -b html -d _build/doctrees-readthedocs -W -D \
332-
language=en /src/fmriprep/docs/ /_build_html 2>&1 \
333-
| tee $PWD/builddocs.log
334-
cat $PWD/builddocs.log
335-
grep -qv "ERROR" $PWD/builddocs.log
317+
apt-get update
318+
apt-get install -y graphviz
319+
- run:
320+
name: Install fMRIPrep
321+
command: python -m pip install ".[doc]"
322+
- run:
323+
name: Build documentation
324+
command: make SPHINXOPTS="-W" -C docs html
336325
- store_artifacts:
337-
path: /home/circleci/out/docs
326+
path: /tmp/src/fmriprep/docs/_build/html
338327

339328
ds005:
340329
machine:
@@ -392,6 +381,7 @@ jobs:
392381
-e FMRIPREP_DEV 1 -u $(id -u) \
393382
--config $PWD/nipype.cfg -w /tmp/ds005/work \
394383
/tmp/data/ds005 /tmp/ds005/derivatives participant \
384+
--output-spaces MNI152NLin2009cAsym MNI152NLin6Asym \
395385
--sloppy --write-graph --mem_mb 4096 \
396386
--nthreads 2 --anat-only -vv
397387
- run:
@@ -801,6 +791,9 @@ workflows:
801791
jobs:
802792
- build:
803793
filters:
794+
branches:
795+
ignore:
796+
- /docs?\/.*/
804797
tags:
805798
only: /.*/
806799

@@ -827,8 +820,6 @@ workflows:
827820
only: /.*/
828821

829822
- build_docs:
830-
requires:
831-
- build
832823
filters:
833824
branches:
834825
ignore:

.circleci/ds005_outputs.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ fmriprep/sub-01/anat/sub-01_desc-preproc_T1w.json
1717
fmriprep/sub-01/anat/sub-01_desc-preproc_T1w.nii.gz
1818
fmriprep/sub-01/anat/sub-01_dseg.nii.gz
1919
fmriprep/sub-01/anat/sub-01_from-MNI152NLin2009cAsym_to-T1w_mode-image_xfm.h5
20+
fmriprep/sub-01/anat/sub-01_from-MNI152NLin6Asym_to-T1w_mode-image_xfm.h5
2021
fmriprep/sub-01/anat/sub-01_from-orig_to-T1w_mode-image_xfm.txt
2122
fmriprep/sub-01/anat/sub-01_from-T1w_to-fsnative_mode-image_xfm.txt
2223
fmriprep/sub-01/anat/sub-01_from-T1w_to-MNI152NLin2009cAsym_mode-image_xfm.h5
24+
fmriprep/sub-01/anat/sub-01_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
2325
fmriprep/sub-01/anat/sub-01_hemi-L_inflated.surf.gii
2426
fmriprep/sub-01/anat/sub-01_hemi-L_midthickness.surf.gii
2527
fmriprep/sub-01/anat/sub-01_hemi-L_pial.surf.gii
@@ -39,6 +41,14 @@ fmriprep/sub-01/anat/sub-01_space-MNI152NLin2009cAsym_dseg.nii.gz
3941
fmriprep/sub-01/anat/sub-01_space-MNI152NLin2009cAsym_label-CSF_probseg.nii.gz
4042
fmriprep/sub-01/anat/sub-01_space-MNI152NLin2009cAsym_label-GM_probseg.nii.gz
4143
fmriprep/sub-01/anat/sub-01_space-MNI152NLin2009cAsym_label-WM_probseg.nii.gz
44+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_desc-brain_mask.json
45+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_desc-brain_mask.nii.gz
46+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_desc-preproc_T1w.json
47+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_desc-preproc_T1w.nii.gz
48+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_dseg.nii.gz
49+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_label-CSF_probseg.nii.gz
50+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_label-GM_probseg.nii.gz
51+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_label-WM_probseg.nii.gz
4252
fmriprep/sub-01/func
4353
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_AROMAnoiseICs.csv
4454
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold.dtseries.json
@@ -58,6 +68,14 @@ fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin2009cAs
5868
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin2009cAsym_desc-preproc_bold.json
5969
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz
6070
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin2009cAsym_desc-smoothAROMAnonaggr_bold.nii.gz
71+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin6Asym_boldref.nii.gz
72+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin6Asym_desc-aparcaseg_dseg.nii.gz
73+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin6Asym_desc-aseg_dseg.nii.gz
74+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin6Asym_desc-brain_mask.json
75+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin6Asym_desc-brain_mask.nii.gz
76+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin6Asym_desc-preproc_bold.json
77+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin6Asym_desc-preproc_bold.nii.gz
78+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin6Asym_desc-smoothAROMAnonaggr_bold.nii.gz
6179
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-T1w_boldref.nii.gz
6280
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-T1w_desc-aparcaseg_dseg.nii.gz
6381
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-T1w_desc-aseg_dseg.nii.gz
@@ -83,6 +101,14 @@ fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin2009cAs
83101
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin2009cAsym_desc-preproc_bold.json
84102
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz
85103
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin2009cAsym_desc-smoothAROMAnonaggr_bold.nii.gz
104+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_boldref.nii.gz
105+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-aparcaseg_dseg.nii.gz
106+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-aseg_dseg.nii.gz
107+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-brain_mask.json
108+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-brain_mask.nii.gz
109+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-preproc_bold.json
110+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-preproc_bold.nii.gz
111+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-smoothAROMAnonaggr_bold.nii.gz
86112
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-T1w_boldref.nii.gz
87113
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-T1w_desc-aparcaseg_dseg.nii.gz
88114
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-T1w_desc-aseg_dseg.nii.gz

.circleci/ds005_partial_outputs.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ fmriprep/sub-01/anat/sub-01_desc-preproc_T1w.json
1717
fmriprep/sub-01/anat/sub-01_desc-preproc_T1w.nii.gz
1818
fmriprep/sub-01/anat/sub-01_dseg.nii.gz
1919
fmriprep/sub-01/anat/sub-01_from-MNI152NLin2009cAsym_to-T1w_mode-image_xfm.h5
20+
fmriprep/sub-01/anat/sub-01_from-MNI152NLin6Asym_to-T1w_mode-image_xfm.h5
2021
fmriprep/sub-01/anat/sub-01_from-orig_to-T1w_mode-image_xfm.txt
2122
fmriprep/sub-01/anat/sub-01_from-T1w_to-fsnative_mode-image_xfm.txt
2223
fmriprep/sub-01/anat/sub-01_from-T1w_to-MNI152NLin2009cAsym_mode-image_xfm.h5
24+
fmriprep/sub-01/anat/sub-01_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
2325
fmriprep/sub-01/anat/sub-01_hemi-L_inflated.surf.gii
2426
fmriprep/sub-01/anat/sub-01_hemi-L_midthickness.surf.gii
2527
fmriprep/sub-01/anat/sub-01_hemi-L_pial.surf.gii
@@ -39,6 +41,14 @@ fmriprep/sub-01/anat/sub-01_space-MNI152NLin2009cAsym_dseg.nii.gz
3941
fmriprep/sub-01/anat/sub-01_space-MNI152NLin2009cAsym_label-CSF_probseg.nii.gz
4042
fmriprep/sub-01/anat/sub-01_space-MNI152NLin2009cAsym_label-GM_probseg.nii.gz
4143
fmriprep/sub-01/anat/sub-01_space-MNI152NLin2009cAsym_label-WM_probseg.nii.gz
44+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_desc-brain_mask.json
45+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_desc-brain_mask.nii.gz
46+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_desc-preproc_T1w.json
47+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_desc-preproc_T1w.nii.gz
48+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_dseg.nii.gz
49+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_label-CSF_probseg.nii.gz
50+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_label-GM_probseg.nii.gz
51+
fmriprep/sub-01/anat/sub-01_space-MNI152NLin6Asym_label-WM_probseg.nii.gz
4252
fmriprep/sub-01/func
4353
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_AROMAnoiseICs.csv
4454
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_bold.dtseries.json
@@ -58,6 +68,14 @@ fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin2009cAs
5868
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin2009cAsym_desc-preproc_bold.json
5969
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz
6070
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin2009cAsym_desc-smoothAROMAnonaggr_bold.nii.gz
71+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_boldref.nii.gz
72+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-aparcaseg_dseg.nii.gz
73+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-aseg_dseg.nii.gz
74+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-brain_mask.json
75+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-brain_mask.nii.gz
76+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-preproc_bold.json
77+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-preproc_bold.nii.gz
78+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin6Asym_desc-smoothAROMAnonaggr_bold.nii.gz
6179
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-T1w_boldref.nii.gz
6280
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-T1w_desc-aparcaseg_dseg.nii.gz
6381
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-T1w_desc-aseg_dseg.nii.gz

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,17 @@ ENV TEMPLATEFLOW_HOME="/opt/templateflow"
164164
RUN mkdir -p $TEMPLATEFLOW_HOME
165165
RUN pip install --no-cache-dir "templateflow>=0.1.3,<0.2.0a0" && \
166166
python -c "from templateflow import api as tfapi; \
167-
tfapi.get('MNI152Lin'); \
167+
tfapi.get('MNI152NLin6Asym'); \
168168
tfapi.get('MNI152NLin2009cAsym'); \
169-
tfapi.get('OASIS30ANTs'); \
170-
tfapi.get('NKI');"
169+
tfapi.get('OASIS30ANTs');" && \
170+
find $TEMPLATEFLOW_HOME -type d -exec chmod go=u {} + && \
171+
find $TEMPLATEFLOW_HOME -type f -exec chmod go=u {} +
171172

172173
# Installing dev requirements (packages that are not in pypi)
173174
WORKDIR /src/
174175
COPY requirements.txt requirements.txt
175-
RUN pip install --no-cache-dir -r requirements.txt
176+
RUN pip install --no-cache-dir -U pip>=18.1 && \
177+
pip install --no-cache-dir -r requirements.txt
176178

177179
# Installing FMRIPREP
178180
COPY . /src/fmriprep

docs/citing.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,6 @@ Presentations
250250
Other relevant references
251251
-------------------------
252252

253-
.. [Fonov2011] Fonov VS, Evans AC, Botteron K, Almli CR, McKinstry RC, Collins DL and BDCG,
254-
Unbiased average age-appropriate atlases for pediatric studies, NeuroImage 54(1), 2011
255-
doi:`10.1016/j.neuroimage.2010.07.033 <https://doi.org/10.1016/j.neuroimage.2010.07.033>`_.
256-
257253
.. [Power2017] Power JD, Plitt M, Kundu P, Bandettini PA, Martin A (2017) Temporal interpolation alters
258254
motion in fMRI scans: Magnitudes and consequences for artifact detection. PLOS ONE 12(9): e0182939.
259255
doi:`10.1371/journal.pone.0182939 <https://doi.org/10.1371/journal.pone.0182939>`_.

docs/environment.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ dependencies:
2828
- svgutils
2929
- nitime
3030
- nilearn!=0.5.0,!=0.5.1
31-
- niworkflows<0.9.0a0,>=0.8.1
32-
- smriprep
31+
- git+https://github.com/poldracklab/niworkflows.git@e8f677a0407fc312b7f3d87a4c47726ceb8cd975#egg=niworkflows
3332
- tedana>=0.0.5
33+
- smriprep<0.3.0a0,>=0.2.0
34+
- templateflow<0.2.0a0,>=0.1.3

docs/usage.rst

Lines changed: 106 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Usage
77
As of FMRIPREP 1.0.12, the software includes a tracking system
88
to report usage statistics and errors. Users can opt-out using
99
the ``--notrack`` command line argument.
10-
10+
1111

1212
Execution and the BIDS format
1313
=============================
@@ -38,6 +38,110 @@ Command-Line Arguments
3838
:nodefaultconst:
3939

4040

41+
.. _output-spaces:
42+
43+
Defining standard and nonstandard spaces where data will be resampled
44+
=====================================================================
45+
46+
The command line interface of fMRIPrep allows resampling the preprocessed data
47+
onto other output spaces.
48+
That is achieved using the ``--output-spaces`` argument, where standard and
49+
nonstandard spaces can be inserted.
50+
51+
Standard spaces
52+
"""""""""""""""
53+
54+
When using fMRIPrep in a workflow that will investigate effects that span across
55+
analytical groupings, neuroimagers typically resample their data on to a standard,
56+
stereotactic coordinate system.
57+
The most extended standard space for fMRI analyses is generally referred to MNI.
58+
For instance, to instruct fMRIPrep to use the MNI template brain distributed with
59+
FSL as coordinate reference the option will read as follows: ``--output-spaces MNI152NLin6Asym``.
60+
By default, fMRIPrep uses ``MNI152NLin2009cAsym`` as spatial-standardization reference.
61+
Valid template identifiers (``MNI152NLin6Asym``, ``MNI152NLin2009cAsym``, etc.) come from
62+
the `TemplateFlow project <https://github.com/templateflow/templateflow>`__.
63+
64+
Therefore, fMRIPrep will run nonlinear registration processes against the template
65+
T1w image corresponding to all the standard spaces supplied with the argument
66+
``--output-spaces``.
67+
By default, fMRIPrep will resample the preprocessed data on those spaces (labeling the
68+
corresponding outputs with the `space-<template-identifier>` BIDS entity) but keeping
69+
the original resolution of the BOLD data to produce smaller files, more consistent with
70+
the original data gridding.
71+
However, many users will be interested in utilizing a coarse gridding (typically 2mm isotropic)
72+
of the target template.
73+
Such a behavior can be achieved applying modifiers to the template identifier, separated by
74+
a ``:`` character.
75+
For instance, ``--output-spaces MNI152NLin6Asym:res-2 MNI152NLin2009cAsym`` will generate
76+
preprocessed BOLD 4D files on two standard spaces (``MNI152NLin6Asym``,
77+
and ``MNI152NLin2009cAsym``) with the template's 2mm isotropic resolution for
78+
the data on ``MNI152NLin6Asym`` space and the original BOLD resolution
79+
(say, e.g., 2x2x2.5 [mm]) for the case of ``MNI152NLin2009cAsym``.
80+
81+
Other possible modifiers are, for instance, the ``cohort`` selector.
82+
Although currently there is no template in TemplateFlow with several cohorts,
83+
very soon we will integrate pediatric templates, for which ``cohort`` will
84+
function to select the appropriate age range.
85+
Therefore, in upcoming versions of fMRIPrep, it will be possible to run it with
86+
``--output-spaces MNIPediatricAsym:res-2:cohort-2`` where ``cohort-2`` would select
87+
the template instance for the, say, 24-48 months old range.
88+
89+
When specifying surface spaces (e.g., ``fsaverage``), the legacy identifiers from
90+
FreeSurfer will be supported (e.g. ``fsaverage5``) although the use of the density
91+
modifier would be preferred (i.e. ``fsaverage:den-10k`` for ``fsaverage5``).
92+
93+
Custom standard spaces
94+
""""""""""""""""""""""
95+
96+
Although the functionality is not available yet, the interface of the
97+
``--output-spaces`` permits providing paths to custom templates that
98+
follow TemplateFlow's naming conventions
99+
(e.g. ``/path/to/custom/templates/tpl-MyCustom:res-2``).
100+
Following the example, at least the following files
101+
must be found under under ``/path/to/custom/templates/tpl-MyCustom``: ::
102+
103+
tpl-MyCustom/
104+
template_description.json
105+
tpl-MyCustom_res-1_T1w.nii.gz
106+
tpl-MyCustom_res-1_desc-brain_mask.nii.gz
107+
tpl-MyCustom_res-2_T1w.nii.gz
108+
tpl-MyCustom_res-2_desc-brain_mask.nii.gz
109+
110+
Although a more comprehensive coverage of standard files would be advised.
111+
112+
Nonstandard spaces
113+
""""""""""""""""""
114+
115+
Additionally, ``--output-spaces`` accepts identifiers of spatial references
116+
that do not generate *standardized* coordinate spaces:
117+
118+
* ``T1w`` or ``anat``: data are resampled into the individual's anatomical
119+
reference generated with the T1w and T2w images available within the
120+
BIDS structure.
121+
* ``fsnative``: similarly to the ``anat`` space for volumetric references,
122+
including the ``fsnative`` space will instruct fMRIPrep to sample the
123+
original BOLD data onto FreeSurfer's reconstructed surfaces for this
124+
individual.
125+
* **Additional nonstandard spaces** that will be supported in the future are
126+
``run``, ``func``, and ``sbref``.
127+
128+
Modifiers are not allowed when providing nonstandard spaces.
129+
130+
Preprocessing blocks depending on standard templates
131+
""""""""""""""""""""""""""""""""""""""""""""""""""""
132+
133+
Some modules of the pipeline (e.g. the ICA-AROMA denoising, the generation of
134+
HCP compatible *grayordinates* files, or the *fieldmap-less* distortion correction)
135+
operate in specific template spaces.
136+
When selecting those modules to be included (using any of the following flags:
137+
``--use-aroma``, ``--cifti-outputs``, ``--use-syn-sdc``) will modify the list of
138+
output spaces to include the space identifiers they require, should the
139+
identifier not be found within the ``--output-spaces`` list already.
140+
In other words, running fMRIPrep with ``--output-spaces MNI152NLin6Asym:res-2
141+
--use-syn-sdc`` will expand the list of output spaces to be
142+
``MNI152NLin6Asym:res-2 MNI152NLin2009cAsym``.
143+
144+
41145
The docker wrapper CLI
42146
======================
43147

@@ -85,7 +189,7 @@ make your data available within that system first.
85189

86190
For instance, here at the Poldrack Lab we use Stanford's
87191
:abbr:`HPC (high-performance computing)` system, called Sherlock.
88-
Sherlock enables `the following data transfer options
192+
Sherlock enables `the following data transfer options
89193
<https://www.sherlock.stanford.edu/docs/user-guide/storage/data-transfer/>`_.
90194

91195
Alternatively, more comprehensive solutions such as `Datalad

0 commit comments

Comments
 (0)