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
Citation boilerplate #779
Conversation
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.
Looks nice. Here are some comments on the links. Found DOIs where possible, a shorter link for Huntenburg 2014. And suggest switching to https://doi.org
.
docs/citing.rst
Outdated
For more details of the pipeline see <a href="http://fmriprep.readthedocs.io/en/1.0.0-rc6/workflows.html">http://fmriprep.readthedocs.io/en/1.0.0-rc6/workflows.html</a>. | ||
</p> | ||
<p> | ||
1. Esteban O, Blair R, Markiewicz CJ, Berleant SL, Moodie C, Ma F, Isik AI, Erramuzpe A, Kent JD, Goncalves M, Poldrack RA, Gorgolewski KJ. poldracklab/fmriprep: 1.0.0-rc6 [Internet]. 2017. Available from: <a href="https://zenodo.org/record/1009184">https://zenodo.org/record/1009184</a> |
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 most people will prefer to cite DOIs: https://doi.org/10.5281/zenodo.1009184
docs/citing.rst
Outdated
1. Esteban O, Blair R, Markiewicz CJ, Berleant SL, Moodie C, Ma F, Isik AI, Erramuzpe A, Kent JD, Goncalves M, Poldrack RA, Gorgolewski KJ. poldracklab/fmriprep: 1.0.0-rc6 [Internet]. 2017. Available from: <a href="https://zenodo.org/record/1009184">https://zenodo.org/record/1009184</a> | ||
</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="http://dx.doi.org/10.3389/fninf.2011.00013">http://dx.doi.org/10.3389/fninf.2011.00013</a> |
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 would generally prefer https://doi.org/
to http://dx.doi.org
. (Applies to several entries.)
docs/citing.rst
Outdated
5. Dale A, Fischl B, Sereno MI. Cortical Surface-Based Analysis: I. Segmentation and Surface Reconstruction. Neuroimage. 1999;9(2):179–94. | ||
</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://search.proquest.com/docview/1833173019">https://search.proquest.com/docview/1833173019</a> |
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/citing.rst
Outdated
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="http://dx.doi.org/10.1109/TMI.2010.2046908">http://dx.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. |
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/citing.rst
Outdated
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="http://dx.doi.org/10.1016/j.media.2007.06.004">http://dx.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://www.ncbi.nlm.nih.gov/pubmed/12377157">https://www.ncbi.nlm.nih.gov/pubmed/12377157</a> |
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/citing.rst
Outdated
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="http://dx.doi.org/10.1016/S1053-8119(03)00336-7">http://dx.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="http://www.ncbi.nlm.nih.gov/pubmed/8812068">http://www.ncbi.nlm.nih.gov/pubmed/8812068</a> |
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/citing.rst
Outdated
11. Jenkinson M. Fast, automated, N-dimensional phase-unwrapping algorithm. Magn Reson Med [Internet]. 2003 Jan;49(1):193–7. Available from: <a href="http://dx.doi.org/10.1002/mrm.10354">http://dx.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://pubman.mpdl.mpg.de/pubman/item/escidoc:2327525/component/escidoc:2327523/master_thesis_huntenburg_4686947.pdf">http://pubman.mpdl.mpg.de/pubman/item/escidoc:2327525/component/escidoc:2327523/master_thesis_huntenburg_4686947.pdf</a> |
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.
This appears to be the preferred link (one click away from the actual PDF): http://hdl.handle.net/11858/00-001M-0000-002B-1CB5-A
docs/citing.rst
Outdated
12. Huntenburg JM. Evaluating nonlinear coregistration of BOLD EPI and T1w images [Internet]. Freie Universität Berlin; 2014. Available from: <a href="http://pubman.mpdl.mpg.de/pubman/item/escidoc:2327525/component/escidoc:2327523/master_thesis_huntenburg_4686947.pdf">http://pubman.mpdl.mpg.de/pubman/item/escidoc:2327525/component/escidoc:2327523/master_thesis_huntenburg_4686947.pdf</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="http://journal.frontiersin.org/article/10.3389/fninf.2017.00017/full">http://journal.frontiersin.org/article/10.3389/fninf.2017.00017/full</a> |
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.
Ok - this is ready for review. I added dynamic fetching of the Zenodo reference (made a small library for it - planning to reuse it in other projects). |
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.
Code looks good. Couple minor comments, mostly involving HTTPS.
I'll check the generated docs when they build. (Possibly in the morning.)
docs/citing.rst
Outdated
function fillCitation(){ | ||
$('#fmriprep_version').text(version); | ||
$('#workflow_url').text('http://fmriprep.readthedocs.io/en/' + version + '/workflows.html'); | ||
$('#workflow_url').attr('href', 'http://fmriprep.readthedocs.io/en/' + version + '/workflows.html'); |
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.
https
docs/citing.rst
Outdated
}); | ||
getDOI(zenodoID, function(err, DOI) { | ||
$('#fmriprep_doi_url').text('http://doi.org/' + DOI); | ||
$('#fmriprep_doi_url').attr('href', 'http://doi.org/' + DOI); |
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.
https
docs/citing.rst
Outdated
for (var i = 0; i < controlElementsIdsLength; i++) { | ||
controlElement = document.getElementById(controlElementsIds[i]) | ||
|
||
if (controlElement.checked == null){ |
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.
Mixed tabs and spaces in this line and the one above it.
docs/citing.rst
Outdated
.. raw:: html | ||
|
||
<script language="javascript"> | ||
var version = '1.0.0-rc6'; |
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'd be inclined to leave this as 'latest'
. Anybody who's building docs manually is likely to be near HEAD and putting in a specific version makes this a place that needs updating.
docs/citing.rst
Outdated
<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="http://doi.org/10.3389/fninf.2011.00013">http://doi.org/10.3389/fninf.2011.00013</a> |
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.
Sorry, wasn't clear. The main thing I was suggesting with the DOI URLs was the s in https
, more than just dropping the dx
. (I suspect https://dx.doi.org works, but figure shorter URLs are better.)
|
||
def setup(app): | ||
# We need this for the boilerplate script | ||
app.add_javascript("https://cdn.rawgit.com/chrisfilo/zenodo.js/v0.1/zenodo.js") |
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.
Newline at end of file.
For some reason GitHub does not display the new line, but this should be done now. |
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.
The PR got merged before I finished the review.
@@ -35,6 +35,7 @@ dependencies: | |||
override: | |||
- sed -i -E "s/(__version__ = )'[A-Za-z0-9.-]+'/\1'$CIRCLE_TAG'/" fmriprep/info.py |
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 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
$('#fmriprep_citation').text(citation); | ||
}); | ||
getDOI(zenodoID, function(err, DOI) { | ||
$('#fmriprep_doi_url').text('https://doi.org/' + DOI); |
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 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.
<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> |
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.
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>
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 |
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 we add links to the references? ([1, 2, etc])
Ah, sorry. I'm okay with all of those changes, if you want to make a new PR. |
If you do make a new one, we may want to add DOI:10.1016/j.neuroimage.2007.12.025 for T2-based pial refinement (possibly another checkbox next to FreeSurfer?). This was just posted on the mailing list this morning. I wasn't aware there was any citation for T2 refinement before. |
Please open issues for all the fixes/enhancements you mentioned. |
Closes #713 and #600