Skip to content

Commit 325b3e3

Browse files
authored
Merge pull request #1195 from oesteban/docs/preprint-review
[DOC] Additions to include before responding to reviews of the pre-print
2 parents a0d0701 + 0689eea commit 325b3e3

File tree

6 files changed

+70
-9
lines changed

6 files changed

+70
-9
lines changed

README.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,30 @@ Principles
9090
the process and decide which subjects should be kept for the group level
9191
analysis.
9292

93+
94+
Limitations and reasons not to use ``fmriprep``
95+
-----------------------------------------------
96+
97+
1. Very narrow :abbr:`FoV (field-of-view)` images oftentimes do not contain
98+
enough information for standard image registration methods to work correctly.
99+
Also, problems may arise when extracting the brain from these data.
100+
Supporting these particular images is already a future line of the development
101+
road-map.
102+
2. ``fmriprep`` may also underperform for particular populations (e.g. infants) and
103+
non-human brains, although appropriate templates can be provided to overcome the
104+
issue.
105+
3. The "EPInorm" approach is currently not supported, although we plan to implement
106+
this feature (see `#857 <https://github.com/poldracklab/fmriprep/issues/857>`_).
107+
4. If you really want unlimited flexibility (which is obviously a double-edged sword).
108+
5. If you want students to suffer through implementing each step for didactic purposes,
109+
or to learn shell-scripting or Python along the way.
110+
6. If you are trying to reproduce some *in-house* lab pipeline.
111+
112+
(Reasons 4-6 were kindly provided by S. Nastase in his
113+
`open review <http://academickarma.org/review/j7d5501n779n>`__
114+
of our `pre-print <https://www.biorxiv.org/content/early/2018/05/06/306951>`__).
115+
116+
93117
Acknowledgements
94118
----------------
95119

docs/usage.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,20 @@ http://neurostars.org/tags/fmriprep/
7575
To participate in the ``fmriprep`` development-related discussions please use the
7676
following mailing list: http://mail.python.org/mailman/listinfo/neuroimaging
7777
Please add *[fmriprep]* to the subject line when posting on the mailing list.
78+
79+
80+
Not running on a local machine? - Data transfer
81+
===============================================
82+
83+
If you intend to run ``fmriprep`` on a remote system, you will need to
84+
make your data available within that system first.
85+
86+
For instance, here at the Poldrack Lab we use Stanford's
87+
:abbr:`HPC (high-performance computing)` system, called Sherlock.
88+
Sherlock enables `the following data transfer options
89+
<https://www.sherlock.stanford.edu/docs/user-guide/storage/data-transfer/>`_.
90+
91+
Alternatively, more comprehensive solutions such as `Datalad
92+
<http://www.datalad.org/>`_ will handle data transfers with the appropriate
93+
settings and commands.
94+
Datalad also performs version control over your data.

docs/workflows.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,12 +541,23 @@ Calculated confounds include the mean global signal, mean tissue class signal,
541541
tCompCor, aCompCor, Frame-wise Displacement, 6 motion parameters, DVARS, and, if
542542
the ``--use-aroma`` flag is enabled, the noise components identified by ICA-AROMA
543543
(those to be removed by the "aggressive" denoising strategy).
544+
Particular details about ICA-AROMA are given below.
545+
546+
547+
ICA-AROMA
548+
~~~~~~~~~
549+
:mod:`fmriprep.workflows.bold.confounds.init_ica_aroma_wf`
550+
551+
When one of the `--output-spaces` selected is in MNI space, ICA-AROMA denoising
552+
can be automatically appended to the workflow.
544553
The number of ICA-AROMA components depends on a dimensionality estimate
545554
made by MELODIC.
546555
For datasets with a very short TR and a large number of timepoints, this may
547556
result in an unusually high number of components.
548557
In such cases, it may be useful to specify the number of components to be
549558
extracted with ``--aroma-melodic-dimensionality``.
559+
Further details on the implementation are given within the workflow generation
560+
function (:mod:`fmriprep.workflows.bold.confounds.init_ica_aroma_wf`).
550561

551562
*Note*: *non*-aggressive AROMA denoising is a fundamentally different procedure
552563
from its "aggressive" counterpart and cannot be performed only by using a set of noise

fmriprep/interfaces/freesurfer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ class PatchedConcatenateLTA(ConcatenateLTA):
195195
A temporarily patched version of ``fs.ConcatenateLTA`` to recover from
196196
`this bug <https://www.mail-archive.com/[email protected]/msg55520.html>`_
197197
in FreeSurfer, that was
198-
`fixed here <https://github.com/freesurfer/freesurfer/pull/180>`_.
198+
`fixed here <https://github.com/freesurfer/freesurfer/pull/180>`__.
199199
200200
The original FMRIPREP's issue is found
201-
`here <https://github.com/poldracklab/fmriprep/issues/768>`_.
201+
`here <https://github.com/poldracklab/fmriprep/issues/768>`__.
202202
"""
203203

204204
def _list_outputs(self):

fmriprep/workflows/bold/confounds.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ def init_carpetplot_wf(mem_gb, metadata, name="bold_carpet_wf"):
364364

365365
def init_ica_aroma_wf(template, metadata, mem_gb, omp_nthreads,
366366
name='ica_aroma_wf',
367+
susan_fwhm=6.0,
367368
ignore_aroma_err=False,
368369
aroma_melodic_dim=None,
369370
use_fieldwarp=True):
@@ -373,18 +374,23 @@ def init_ica_aroma_wf(template, metadata, mem_gb, omp_nthreads,
373374
374375
The following steps are performed:
375376
376-
#. Smooth data using SUSAN
377-
#. Run MELODIC outside of ICA-AROMA to generate the report
377+
#. Smooth data using FSL `susan`, with a kernel width FWHM=6.0mm.
378+
#. Run FSL `melodic` outside of ICA-AROMA to generate the report
378379
#. Run ICA-AROMA
379380
#. Aggregate identified motion components (aggressive) to TSV
380-
#. Return classified_motion_ICs and melodic_mix for user to complete
381-
non-aggressive denoising in T1w space
381+
#. Return ``classified_motion_ICs`` and ``melodic_mix`` for user to complete
382+
non-aggressive denoising in T1w space
382383
#. Calculate ICA-AROMA-identified noise components
383-
(columns named ``AROMAAggrCompXX``)
384+
(columns named ``AROMAAggrCompXX``)
384385
385386
Additionally, non-aggressive denoising is performed on the BOLD series
386387
resampled into MNI space.
387388
389+
There is a current discussion on whether other confounds should be extracted
390+
before or after denoising `here <http://nbviewer.jupyter.org/github/poldracklab/\
391+
fmriprep-notebooks/blob/922e436429b879271fa13e76767a6e73443e74d9/issue-817_\
392+
aroma_confounds.ipynb>`__.
393+
388394
.. workflow::
389395
:graph2use: orig
390396
:simple_form: yes
@@ -411,6 +417,9 @@ def init_ica_aroma_wf(template, metadata, mem_gb, omp_nthreads,
411417
Maximum number of threads an individual process may use
412418
name : str
413419
Name of workflow (default: ``bold_mni_trans_wf``)
420+
susan_fwhm : float
421+
Kernel width (FWHM in mm) for the smoothing step with
422+
FSL ``susan`` (default: 6.0mm)
414423
use_fieldwarp : bool
415424
Include SDC warp in single-shot transform from BOLD to MNI
416425
ignore_aroma_err : bool
@@ -478,7 +487,7 @@ def _getusans_func(image, thresh):
478487
getusans = pe.Node(niu.Function(function=_getusans_func, output_names=['usans']),
479488
name='getusans', mem_gb=0.01)
480489

481-
smooth = pe.Node(fsl.SUSAN(fwhm=6.0), name='smooth')
490+
smooth = pe.Node(fsl.SUSAN(fwhm=susan_fwhm), name='smooth')
482491

483492
# melodic node
484493
melodic = pe.Node(fsl.MELODIC(

fmriprep/workflows/fieldmap/fmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
:abbr:`SE (spiral echo)`), we only need to calculate the corresponding B-Spline
1414
coefficients to adapt the fieldmap to the TOPUP tool.
1515
This procedure is described with more detail `here <https://cni.stanford.edu/\
16-
wiki/GE_Processing#Fieldmaps>`_.
16+
wiki/GE_Processing#Fieldmaps>`__.
1717
1818
This corresponds to the section 8.9.3 --fieldmap image (and one magnitude image)--
1919
of the BIDS specification.

0 commit comments

Comments
 (0)