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

Citation boilerplate #779

Merged
merged 11 commits into from Oct 20, 2017
1 change: 1 addition & 0 deletions circle.yml
Expand Up @@ -35,6 +35,7 @@ dependencies:
override:
- sed -i -E "s/(__version__ = )'[A-Za-z0-9.-]+'/\1'$CIRCLE_TAG'/" fmriprep/info.py
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we join together these 3 replacements in only one?:

      - |
        if [[ "$CIRCLE_TAG" != "" ]]; then
            sed -i -E "s/(__version__ = )'[A-Za-z0-9.-]+'/\1'$CIRCLE_TAG'/" fmriprep/info.py
            sed -i -E "s/(__version__ = )'[A-Za-z0-9.-]+'/\1'$CIRCLE_TAG'/" wrapper/fmriprep_docker.py
            sed -i -E "s/(var version = )'[A-Za-z0-9.-]+'/\1'$CIRCLE_TAG'/" docs/citing.rst
        fi

- sed -i -E "s/(__version__ = )'[A-Za-z0-9.-]+'/\1'$CIRCLE_TAG'/" wrapper/fmriprep_docker.py
- sed -i -E "s/(var version = )'[A-Za-z0-9.-]+'/\1'${CIRCLE_TAG:-latest}'/" docs/citing.rst
- docker pull poldracklab/fmriprep:latest || true
- e=1 && for i in {1..5}; do docker build --rm=false -t poldracklab/fmriprep:latest --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`git rev-parse --short HEAD` --build-arg VERSION=${CIRCLE_TAG:-latest} . && e=0 && break || sleep 15; done && [ "$e" -eq "0" ] :
timeout: 21600
Expand Down
23 changes: 0 additions & 23 deletions docs/authors.rst

This file was deleted.

183 changes: 153 additions & 30 deletions docs/citing.rst
Expand Up @@ -6,35 +6,159 @@
Citing FMRIPREP
===============

``fmriprep`` is a Nipype_-based pipeline that combines software from several
neuroimaging packages with custom-written code to flexibly apply
state-of-the-art preprocessing algorithms to a wide variety of structural and
functional neuroimages and generate readable reports.
For a full list of external software and relevant citations (where available)
of tools and algorithms, please see the `REFERENCES.md
<https://github.com/poldracklab/fmriprep/blob/master/REFERENCES.md>`_ table in
the source distribution.
Please cite the relevant packages to your use case.
``fmriprep`` may be cited by its Zenodo reference::

@misc{esteban_oscar_2017_996169,
author = {Esteban, Oscar and
Blair, Ross and
Markiewicz, Christopher J. and
Berleant, Shoshana L. and
Moodie, Craig and
Ma, Feilong and
Isik, Ayse Ilkay and
Erramuzpe, Asier and
Goncalves, Mathias and
Poldrack, Russell A. and
Gorgolewski, Krzysztof J.},
title = {poldracklab/fmriprep: 1.0.0-rc5},
month = sep,
year = 2017,
doi = {10.5281/zenodo.996169},
url = {https://doi.org/10.5281/zenodo.996169}
}
Select which options you have run FMRIPREP with to generate custom language
we recommend to include in your paper.


.. raw:: html

<script language="javascript">
var version = 'latest';
function fillCitation(){
$('#fmriprep_version').text(version);
$('#workflow_url').text('https://fmriprep.readthedocs.io/en/' + version + '/workflows.html');
$('#workflow_url').attr('href', 'https://fmriprep.readthedocs.io/en/' + version + '/workflows.html');

function cb(err, zenodoID) {
getCitation(zenodoID, 'vancouver-brackets-no-et-al', function(err, citation) {
$('#fmriprep_citation').text(citation);
});
getDOI(zenodoID, function(err, DOI) {
$('#fmriprep_doi_url').text('https://doi.org/' + DOI);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually prefer to hide the https://doi.org/ on DOIs and just show doi:some-doi-without-http-doi-org. But it is only a preference.

$('#fmriprep_doi_url').attr('href', 'https://doi.org/' + DOI);
});
}

if(version == 'latest') {
getLatestIDFromconceptID("852659", cb);
} else {
getZenodoIDFromTag("852659", version, cb);
}
}

function toggle() {
var controlElementsIds = ["freesurfer","slicetime", "AROMA", "ss_template", "SDC"];
var controlElementsIdsLength = controlElementsIds.length;

for (var i = 0; i < controlElementsIdsLength; i++) {
controlElement = document.getElementById(controlElementsIds[i])

if (controlElement.checked == null){
var value = controlElement.value;
} else {
var value = controlElement.checked;
}

$("span[class^='" + controlElementsIds[i] + "_text_']").each(function (i, el) {
el.style.display='none'
});

$("span[class='" + controlElementsIds[i] + "_text_" + value + "']").each(function (i, el) {
el.style.display='inline'
});
}
return false;
}
</script>
<p>
With Freesurfer: <input id="freesurfer" type="checkbox" checked="true" onclick="toggle();"/><br />
Suceptibility Distortion Correction: <select id="SDC" onclick="toggle();">
<option value="none" selected="true">none</option>
<option value="TOPUP">TOPUP</option>
<option value="FUGUE">FUGUE</option>
<option value="SyN">SyN</option>
</select><br />
With AROMA: <input id="AROMA" type="checkbox" onclick="toggle();"/><br />
Skullstrip template: <select id="ss_template" onclick="toggle();">
<option value="OASIS" selected="true">OASIS</option>
<option value="NKI">NKI</option>
</select><br />
With slicetime correction: <input id="slicetime" type="checkbox" checked="true" onclick="toggle();"/><br />
</p>

<p style="font-style: italic;">Results included in this manuscript come from preprocessing performed using FMRIPREP version <span id="fmriprep_version">latest</span> [1] a Nipype [2,3] based tool. Each T1 weighted volume was corrected for bias field using N4BiasFieldCorrection v2.1.0 [4] and skullstripped using antsBrainExtraction.sh v2.1.0 (using
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add links to the references? ([1, 2, etc])

<span class="ss_template_text_OASIS">OASIS</span>
<span class="ss_template_text_NKI" style="display: none">NKI</span>
template).
<span class="freesurfer_text_true">Cortical surface was estimated using FreeSurfer v6.0.0 [5]. </span>
The skullstripped T1w volume was coregistered to skullstripped ICBM 152 Nonlinear Asymmetrical template version 2009c [6] using nonlinear transformation implemented in ANTs v2.1.0 [7].</p>

<p style="font-style: italic;">Functional data was <span class="slicetime_text_true">slice time corrected using AFNI [10] and </span>motion corrected using MCFLIRT v5.0.9 [8].
<span class="SDC_text_TOPUP" style="display: none">Distortion correction was performed using an implementation of the TOPUP technique [9] using 3dQwarp v16.2.07 distributed as part of AFNI [10]. </span>
<span class="SDC_text_FUGUE" style="display: none">Distortion correction was performed using fieldmaps processed by the FUGUE v5.0.9 [11] tool. </span>
<span class="SDC_text_SyN" style="display: none">Distortion correction was performed by estimating ANTs based nonlinear coregistration of the functional image to intensity inverted T1w image [12,13] constrained with an average fieldmap template [14].</span>
This was followed by coregistration to the corresponding T1 weighted volume using boundary based registration 9 degrees of freedom - implemented in
<span class="freesurfer_text_true">FreeSurfer v6.0.0 [15]</span>
<span class="freesurfer_text_false" style="display: none">FSL [15]</span>
. Motion correcting transformations,
<span class="SDC_text_TOPUP" style="display: none">field distortion correcting warp, </span>
<span class="SDC_text_FUGUE" style="display: none">field distortion correcting warp, </span>
<span class="SDC_text_SyN" style="display: none">field distortion correcting warp, </span>
T1 weighted transformation and MNI template warp were applied in a single step using antsApplyTransformations v2.1.0 with Lanczos interpolation.
</p>
<p style="font-style: italic;">
Three tissue classes were extracted from T1w images using FSL FAST v5.0.9 [16]. Voxels from cerebrospinal fluid and white matter were used to create a mask in turn used to extract physiological noise regressors using aCompCor [17]. Mask was eroded and limited to subcortical regions to limit overlap with grey matter, six principal components were estimated. Framewise displacement [18] was calculated for each functional run using Nipype implementation. <span class="AROMA_text_true" style="display: none">ICA-based Automatic Removal Of Motion Artifacts (AROMA) was used to generate aggressive noise regressors as well as creating a variant of data that was non-aggressively denoised [19].</span></p>
<p style="font-style: italic;">
For more details of the pipeline see <a id="workflow_url" href="http://fmriprep.readthedocs.io/en/latest/workflows.html">http://fmriprep.readthedocs.io/en/latest/workflows.html</a>.
</p>
<p>
<span id="fmriprep_citation">FMRIPREP</span> Available from: <a id="fmriprep_doi_url" href="https://doi.org/10.5281/zenodo.852659">https://doi.org/10.5281/zenodo.852659</a>
<img src onerror='fillCitation()'>
</p>
<p>
2. Gorgolewski K, Burns CD, Madison C, Clark D, Halchenko YO, Waskom ML, Ghosh SS. Nipype: a flexible, lightweight and extensible neuroimaging data processing framework in python. Front Neuroinform [Internet]. 2011 Aug 22;5(August):13. Available from: <a href="https://doi.org/10.3389/fninf.2011.00013">https://doi.org/10.3389/fninf.2011.00013</a>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As before, I usually prefer:

doi:<a href="https://doi.org/10.3389/fninf.2011.00013">10.3389/fninf.2011.00013</a>

over:

 Available from: <a href="https://doi.org/10.3389/fninf.2011.00013">https://doi.org/10.3389/fninf.2011.00013</a>

</p>
<p>
3. Gorgolewski KJ, Esteban O, Ellis DG, Notter MP, Ziegler E, Johnson H, Hamalainen C, Yvernault B, Burns C, Manhães-Savio A, Jarecka D, Markiewicz CJ, Salo T, Clark D, Waskom M, Wong J, Modat M, Dewey BE, Clark MG, Dayan M, Loney F, Madison C, Gramfort A, Keshavan A, Berleant S, Pinsard B, Goncalves M, Clark D, Cipollini B, Varoquaux G, Wassermann D, Rokem A, Halchenko YO, Forbes J, Moloney B, Malone IB, Hanke M, Mordom D, Buchanan C, Pauli WM, Huntenburg JM, Horea C, Schwartz Y, Tungaraza R, Iqbal S, Kleesiek J, Sikka S, Frohlich C, Kent J, Perez-Guevara M, Watanabe A, Welch D, Cumba C, Ginsburg D, Eshaghi A, Kastman E, Bougacha S, Blair R, Acland B, Gillman A, Schaefer A, Nichols BN, Giavasis S, Erickson D, Correa C, Ghayoor A, Küttner R, Haselgrove C, Zhou D, Craddock RC, Haehn D, Lampe L, Millman J, Lai J, Renfro M, Liu S, Stadler J, Glatard T, Kahn AE, Kong X-Z, Triplett W, Park A, McDermottroe C, Hallquist M, Poldrack R, Perkins LN, Noel M, Gerhard S, Salvatore J, Mertz F, Broderick W, Inati S, Hinds O, Brett M, Durnez J, Tambini A, Rothmei S, Andberg SK, Cooper G, Marina A, Mattfeld A, Urchs S, Sharp P, Matsubara K, Geisler D, Cheung B, Floren A, Nickson T, Pannetier N, Weinstein A, Dubois M, Arias J, Tarbert C, Schlamp K, Jordan K, Liem F, Saase V, Harms R, Khanuja R, Podranski K, Flandin G, Papadopoulos Orfanos D, Schwabacher I, McNamee D, Falkiewicz M, Pellman J, Linkersdörfer J, Varada J, Pérez-García F, Davison A, Shachnev D, Ghosh S. Nipype: a flexible, lightweight and extensible neuroimaging data processing framework in Python [Internet]. 2017. Available from: <a href="https://doi.org/10.5281/zenodo.581704">https://doi.org/10.5281/zenodo.581704</a>
</p>
<p>
4. Tustison NJ, Avants BB, Cook PA, Zheng Y, Egan A, Yushkevich PA, Gee JC. N4ITK: improved N3 bias correction. IEEE Trans Med Imaging [Internet]. 2010 Jun;29(6):1310–20. Available from: <a href="https://doi.org/10.1109/TMI.2010.2046908">https://doi.org/10.1109/TMI.2010.2046908</a>
</p>
<p>
5. Dale A, Fischl B, Sereno MI. Cortical Surface-Based Analysis: I. Segmentation and Surface Reconstruction. Neuroimage. 1999;9(2):179–94. Available from: <a href="https://doi.org/10.1006/nimg.1998.0395">https://doi.org/10.1006/nimg.1998.0395</a>
</p>
<p>
6. Fonov VS, Evans AC, McKinstry RC, Almli CR, Collins DL. Unbiased nonlinear average age-appropriate brain templates from birth to adulthood. NeuroImage; Amsterdam [Internet]. 2009 Jul 1;47:S102. Available from: <a href="https://doi.org/10.1016/S1053-8119(09)70884-5">https://doi.org/10.1016/S1053-8119(09)70884-5</a>
</p>
<p>
7. Avants BB, Epstein CL, Grossman M, Gee JC. Symmetric diffeomorphic image registration with cross-correlation: evaluating automated labeling of elderly and neurodegenerative brain. Med Image Anal [Internet]. 2008 Feb;12(1):26–41. Available from: <a href="https://doi.org/10.1016/j.media.2007.06.004">https://doi.org/10.1016/j.media.2007.06.004</a>
</p>
<p>
8. Jenkinson M, Bannister P, Brady M, Smith S. Improved optimization for the robust and accurate linear registration and motion correction of brain images. Neuroimage [Internet]. 2002 Oct;17(2):825–41. Available from: <a href="https://doi.org/10.1006/nimg.2002.1132">https://doi.org/10.1006/nimg.2002.1132</a>
</p>
<p>
9. Andersson JLR, Skare S, Ashburner J. How to correct susceptibility distortions in spin-echo echo-planar images: application to diffusion tensor imaging. Neuroimage [Internet]. 2003 Oct;20(2):870–88. Available from: <a href="https://doi.org/10.1016/S1053-8119(03)00336-7">https://doi.org/10.1016/S1053-8119(03)00336-7</a>
</p>
<p>
10. Cox RW. AFNI: software for analysis and visualization of functional magnetic resonance neuroimages. Comput Biomed Res [Internet]. 1996 Jun;29(3):162–73. Available from: <a href="https://doi.org/10.1006/cbmr.1996.0014">https://doi.org/10.1006/cbmr.1996.0014</a>
</p>
<p>
11. Jenkinson M. Fast, automated, N-dimensional phase-unwrapping algorithm. Magn Reson Med [Internet]. 2003 Jan;49(1):193–7. Available from: <a href="https://doi.org/10.1002/mrm.10354">https://doi.org/10.1002/mrm.10354</a>
</p>
<p>
12. Huntenburg JM. Evaluating nonlinear coregistration of BOLD EPI and T1w images [Internet]. Freie Universität Berlin; 2014. Available from: <a href="http://hdl.handle.net/11858/00-001M-0000-002B-1CB5-A">http://hdl.handle.net/11858/00-001M-0000-002B-1CB5-A</a>
</p>
<p>
13. Wang S, Peterson DJ, Gatenby JC, Li W, Grabowski TJ, Madhyastha TM. Evaluation of Field Map and Nonlinear Registration Methods for Correction of Susceptibility Artifacts in Diffusion MRI. Front Neuroinform [Internet]. 2017 [cited 2017 Feb 21];11. Available from: <a href="https://doi.org/10.3389/fninf.2017.00017">https://doi.org/10.3389/fninf.2017.00017</a>
</p>
<p>
14. Treiber JM, White NS, Steed TC, Bartsch H, Holland D, Farid N, McDonald CR, Carter BS, Dale AM, Chen CC. Characterization and Correction of Geometric Distortions in 814 Diffusion Weighted Images. PLoS One [Internet]. 2016 Mar 30;11(3):e0152472. Available from: <a href="https://doi.org/10.1371/journal.pone.0152472">https://doi.org/10.1371/journal.pone.0152472</a>
</p>
<p>
15. Greve DN, Fischl B. Accurate and robust brain image alignment using boundary-based registration. Neuroimage [Internet]. 2009 Oct;48(1):63–72. Available from: <a href="https://doi.org/10.1016/j.neuroimage.2009.06.060">https://doi.org/10.1016/j.neuroimage.2009.06.060</a>
</p>
<p>
16. Zhang Y, Brady M, Smith S. Segmentation of brain MR images through a hidden Markov random field model and the expectation-maximization algorithm. IEEE Trans Med Imaging [Internet]. 2001 Jan;20(1):45–57. Available from: <a href="https://doi.org/10.1109/42.906424">https://doi.org/10.1109/42.906424</a>
</p>
<p>
17. Behzadi Y, Restom K, Liau J, Liu TT. A component based noise correction method (CompCor) for BOLD and perfusion based fMRI. Neuroimage [Internet]. 2007 Aug 1;37(1):90–101. Available from: <a href="https://doi.org/10.1109/42.906424">https://doi.org/10.1016/j.neuroimage.2007.04.042</a>
</p>
<p>
18. Power JD, Mitra A, Laumann TO, Snyder AZ, Schlaggar BL, Petersen SE. Methods to detect, characterize, and remove motion artifact in resting state fMRI. Neuroimage [Internet]. 2013 Aug 29;84:320–41. Available from: <a href="https://doi.org/10.1016/j.neuroimage.2013.08.048">https://doi.org/10.1016/j.neuroimage.2013.08.048</a>
</p>
<p>
19. Pruim RHR, Mennes M, van Rooij D, Llera A, Buitelaar JK, Beckmann CF. ICA-AROMA: A robust ICA-based strategy for removing motion artifacts from fMRI data. Neuroimage [Internet]. 2015 May 15;112:267–77. Available from: <a href="https://doi.org/10.1016/j.neuroimage.2015.02.064">https://doi.org/10.1016/j.neuroimage.2015.02.064</a>
</p>

Posters
-------
Expand All @@ -44,5 +168,4 @@ Posters
.. image:: _static/OHBM2017-poster_thumb.png
:target: _static/OHBM2017-poster.png

.. include:: authors.rst
.. include:: license.rst
6 changes: 6 additions & 0 deletions docs/conf.py
Expand Up @@ -308,3 +308,9 @@
intersphinx_mapping = {'https://docs.python.org/': None}

suppress_warnings = ["image.nonlocal_uri"]


def setup(app):
# We need this for the boilerplate script
app.add_javascript("https://cdn.rawgit.com/chrisfilo/zenodo.js/v0.1/zenodo.js")

1 change: 0 additions & 1 deletion docs/index.rst
Expand Up @@ -5,7 +5,6 @@

.. include:: links.rst
.. include:: ../README.rst
.. include:: authors.rst


Contents
Expand Down