-
Notifications
You must be signed in to change notification settings - Fork 287
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
Add FAQ, Tips, Tricks section to RTD #1601
Conversation
@franklin-feingold I cancelled the |
docs/faq_tips_tricks.rst
Outdated
|
||
**My ``FMRIPREP`` run is hanging...** | ||
|
||
There is a Python bug that affects ``FMRIPREP`` when processes are killed for running out of memory. While we are working on finding a solution that does not run up against this bug, this may take some time. This can be most easily resolved by allocating more memory to the process, if possible. Additionally, consider using the ``--low-mem`` flag, which will make some memory optimizations at the cost of disk space in the working directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include information here on how to increase the memory allocation to a Docker container ?
Also, very nit-picky request -- would it be possible to put each sentence on a newline ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/index.rst
Outdated
@@ -22,3 +22,4 @@ Contents | |||
contributors | |||
citing | |||
api/index.rst | |||
faq_tips_tricks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this between outputs
and contributors
?
@@ -0,0 +1,31 @@ | |||
.. include:: links.rst | |||
|
|||
FAQ, Tips, and Tricks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be consistent with the other pages.
FAQ, Tips, and Tricks | |
===================== | |
FAQ, Tips, and Tricks |
docs/faq_tips_tricks.rst
Outdated
.. include:: links.rst | ||
|
||
FAQ, Tips, and Tricks | ||
------------------------------ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
------------------------------ | |
===================== |
docs/faq_tips_tricks.rst
Outdated
FAQ, Tips, and Tricks | ||
------------------------------ | ||
|
||
**Should I run quality control of my images before running ``FMRIPREP``?** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's the rendered result: https://8229-53175327-gh.circle-artifacts.com/0/home/circleci/out/docs/faq_tips_tricks.html
The back-ticks don't seem to work in bold. Also, if we make this a sub-heading, then it will be linkable.
**Should I run quality control of my images before running ``FMRIPREP``?** | |
Should I run quality control of my images before running fMRIPrep? | |
------------------------------------------------------------------ |
docs/faq_tips_tricks.rst
Outdated
When using publicly available datasets, an additional concern is that images may have gone through some kind of preprocessing (see next question). | ||
|
||
|
||
**What if I find some images have undergone some pre-processing already (e.g. my T1w image is already skull-stripped)?** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not going to try to match the number of characters on this one.
**What if I find some images have undergone some pre-processing already (e.g. my T1w image is already skull-stripped)?** | |
What if I find some images have undergone some pre-processing already (e.g., my T1w image is already skull-stripped)? | |
---------------------------------------------------- |
docs/faq_tips_tricks.rst
Outdated
**What if I find some images have undergone some pre-processing already (e.g. my T1w image is already skull-stripped)?** | ||
|
||
These images imply an unknown level of preprocessing (e.g. was it already bias-field corrected?), which makes it difficult to decide on best-practices for further processing. | ||
Hence, supporting such images was considered very low priority for ``FMRIPREP``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we've generally moved to this format. We should try to be consistent across pages, so maybe have a look before accepting this one.
Hence, supporting such images was considered very low priority for ``FMRIPREP``. | |
Hence, supporting such images was considered very low priority for fMRIPrep. |
docs/faq_tips_tricks.rst
Outdated
So for OpenFMRI, we've been excluding these subjects, and for user-supplied data, we would recommend reverting to the original, defaced, T1w images to ensure more uniform preprocessing. | ||
|
||
|
||
**My ``FMRIPREP`` run is hanging...** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**My ``FMRIPREP`` run is hanging...** | |
My fMRIPrep run is hanging... | |
----------------------------- |
docs/faq_tips_tricks.rst
Outdated
|
||
**My ``FMRIPREP`` run is hanging...** | ||
|
||
There is a Python bug that affects ``FMRIPREP`` when processes are killed for running out of memory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a Python bug that affects ``FMRIPREP`` when processes are killed for running out of memory. | |
There is a Python bug that affects fMRIPrep when processes are killed for running out of memory. |
moved faq_tips_tricks to between outputs and contributors
@effigies thank you for your review! addressed your comments in recent commits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some suggestions...
docs/faq_tips_tricks.rst
Outdated
FAQ, Tips, and Tricks | ||
----- | ||
|
||
**Should I run quality control of my images before running ``FMRIPREP``?** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**Should I run quality control of my images before running ``FMRIPREP``?** | |
**Should I run quality control of my images before running *fMRIPrep*?** |
docs/faq_tips_tricks.rst
Outdated
Should I run quality control of my images before running fMRIPrep? | ||
-------------------------------------------------------------------- | ||
|
||
Yes. You should as well before any other processing/analysis. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. You should as well before any other processing/analysis. | |
Yes. You should do so before any processing/analysis takes place. |
docs/faq_tips_tricks.rst
Outdated
Yes. You should as well before any other processing/analysis. | ||
|
||
Oftentimes (more often than we would like), images have fatal artifacts and problems. | ||
Those would not pass any QC check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those would not pass any QC check. |
docs/faq_tips_tricks.rst
Outdated
|
||
Oftentimes (more often than we would like), images have fatal artifacts and problems. | ||
Those would not pass any QC check. | ||
Some other times, QC checks will flag some images that we should carefully track throughout processing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some other times, QC checks will flag some images that we should carefully track throughout processing. | |
Some exclusion criteria for data quality should be pre-specified before QC and any screening | |
of the original data. | |
Those exclusion criteria must be designed in agreement with the goals and challenges of the | |
experimental design. | |
For instance, when it is planned to run some cortical thickness analysis, images should be excluded | |
even when they present the most subtle ghosts or other artifacts that may introduce biases in surface | |
reconstruction. | |
However, if the same artifactual data was planned to be used just as a reference for spatial | |
normalization, some of those artifacts should be noted, but may not grant exclusion of the data. |
docs/faq_tips_tricks.rst
Outdated
|
||
|
||
My fMRIPrep run is hanging... | ||
--------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--------------------------------- | |
----------------------------- |
docs/faq_tips_tricks.rst
Outdated
My fMRIPrep run is hanging... | ||
--------------------------------- | ||
|
||
There is a Python bug that affects fMRIPrep when processes are killed for running out of memory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a Python bug that affects fMRIPrep when processes are killed for running out of memory. | |
When running on Linux platforms (or containerized environments, because they are built around Ubuntu), | |
there is a Python bug that affects fMRIPrep that drives the Linux kernel to kill processes as a response to | |
running out of memory. | |
Depending on the process killed by the kernel, fMRIPrep may crash with a ``BrokenProcessPool`` error | |
or hang indefinitely, depending on settings. |
|
||
There is a Python bug that affects fMRIPrep when processes are killed for running out of memory. | ||
While we are working on finding a solution that does not run up against this bug, this may take some time. | ||
This can be most easily resolved by allocating more memory to the process, if possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please link here a bunch of discussions about the issue:
- https://neurostars.org/t/memory-issue-when-processing-large-amount-of-data/2562
- https://neurostars.org/t/how-much-ram-cpus-is-reasonable-to-run-pipelines-like-fmriprep/1086
- https://neurostars.org/t/memory-allocation-issues-with-fmriprep-singularity-and-hpc/2759
- https://neurostars.org/t/fmriprep-v1-0-12-hanging/1661
@oesteban Thank you for your review! Please find the latest commit applying your feedback |
Replaced by #1610 (all commits have been kept). |
DOC: Add FAQ, Tips, Tricks section to RTD (cont. #1601)
Changes proposed in this pull request
Added a FAQ, Tips, Tricks section to RTD. This initial PR is to initalize this section and transfer the Wiki over to the RTD. Future PRs will address specific documentation issues to be added to this section.
Documentation that should be reviewed
Added FAQ, Tips, Tricks section to RTD