Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Add fMRIPrep collection information to FAQ #773

Merged
merged 6 commits into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,39 @@ FAQ
###


.. _collecting fMRIPrepped data:

***************************************************
[tedana] How do I use tedana with fMRIPrepped data?
***************************************************

`fMRIPrep`_ outputs the preprocessed, optimally-combined fMRI data, rather than echo-wise data.
This means that you cannot use the standard fMRIPrep outputs with tedana for multi-echo denoising.

However, as long as you still have access to fMRIPrep's working directory,
you can extract the partially-preprocessed echo-wise data,
along with the necessary transform file to linearly transform that echo-wise data into the native structural scan space.
The transform from that structural scan space to standard space will already be available,
so you can easily chain these transforms to get your echo-wise data
(or, more importantly, the scanner-space multi-echo denoised data) into standard space.

Unfortunately, fMRIPrep's working directory structure is not stable across versions,
so writing code to grab the relevant files from the working directory is a bit of a moving target.
Nevertheless, we have some code (thanks to Julio Peraza) that works for version 20.2.1.

.. warning::
We will try to keep the following gist up-to-date, but there is no guarantee that it will work for a given version.
Use it with caution!

If you do find that the gist isn't working for an fMRIPrep version >= 20.2.1,
please comment on `Issue #717 <https://github.com/ME-ICA/tedana/issues/717>`_ (even if it's closed)
and we will take a look at the problem.

.. raw:: html

<script src="https://gist.github.com/tsalo/83828e0c1e9009f3cbd82caed888afba.js"></script>


************************************
[tedana] ICA has failed to converge.
************************************
Expand All @@ -18,7 +51,6 @@ If you are confident that your data have been preprocessed correctly prior to
applying tedana, and you encounter this problem, please submit a question to `NeuroStars`_.



********************************************************************************
[tedana] I think that some BOLD ICA components have been misclassified as noise.
********************************************************************************
Expand Down
5 changes: 4 additions & 1 deletion docs/multi-echo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ and apply the resulting transformation to all echoes.
on how T2* values are calculated.


.. _fMRIPrep: https://fmriprep.readthedocs.io
.. _afni_proc.py: https://afni.nimh.nih.gov/pub/dist/doc/program_help/afni_proc.py.html

*****************
General Resources
*****************
Expand Down Expand Up @@ -504,7 +507,7 @@ AFNI can process multi-echo data natively as well as apply tedana denoising thro

`fmriprep` can also process multi-echo data, but is currently limited to using the optimally combined
timeseries.
For more details, see the `fmriprep workflows page`_.
For more details, see the `fmriprep workflows page`_ and :ref:`collecting fMRIPrepped data`.

.. _fmriprep workflows page: https://fmriprep.readthedocs.io/en/stable/workflows.html

Expand Down
3 changes: 3 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ fMRI preprocessing pipelines such as `fMRIPrep`_ or `afni_proc.py`_.
fMRIPrep currently supports :ref:`optimal combination` through ``tedana``, but
not the full multi-echo denoising pipeline, although there are plans underway
to integrate it.
In the meantime, if you plan to use fMRIPrep and tedana together, please see
:ref:`collecting fMRIPrepped data`.

Users can also construct their own preprocessing pipelines from which to call
``tedana``; for recommendations on doing so, see our general guidelines for
:ref:`constructing ME-EPI pipelines`.
Expand Down