Skip to content

Commit 62ef646

Browse files
committed
Merge remote-tracking branch 'upstream/master' into HEAD
2 parents 0c5b68b + d73ba9d commit 62ef646

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+4803
-788
lines changed

.circleci/config.yml

Lines changed: 138 additions & 65 deletions
Large diffs are not rendered by default.

.circleci/ds005_outputs.txt

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,12 @@ fmriprep/sub-01/anat/sub-01_T1w_space-MNI152NLin2009cAsym_target-T1w_warp.h5
2828
fmriprep/sub-01/anat/sub-01_T1w_space-orig_target-T1w_affine.txt
2929
fmriprep/sub-01/anat/sub-01_T1w_target-fsnative_affine.txt
3030
fmriprep/sub-01/anat/sub-01_T1w_target-MNI152NLin2009cAsym_warp.h5
31-
fmriprep/sub-01/figures
32-
fmriprep/sub-01/figures/sub-01_T1w_reconall.svg
33-
fmriprep/sub-01/figures/sub-01_T1w_seg_brainmask.svg
34-
fmriprep/sub-01/figures/sub-01_T1w_t1_2_mni.svg
35-
fmriprep/sub-01/figures/sub-01_task-mixedgamblestask_run-01_bold_bbr.svg
36-
fmriprep/sub-01/figures/sub-01_task-mixedgamblestask_run-01_bold_ica_aroma.svg
37-
fmriprep/sub-01/figures/sub-01_task-mixedgamblestask_run-01_bold_rois.svg
38-
fmriprep/sub-01/figures/sub-01_task-mixedgamblestask_run-01_bold_sdc_syn.svg
39-
fmriprep/sub-01/figures/sub-01_task-mixedgamblestask_run-02_bold_bbr.svg
40-
fmriprep/sub-01/figures/sub-01_task-mixedgamblestask_run-02_bold_ica_aroma.svg
41-
fmriprep/sub-01/figures/sub-01_task-mixedgamblestask_run-02_bold_rois.svg
42-
fmriprep/sub-01/figures/sub-01_task-mixedgamblestask_run-02_bold_sdc_syn.svg
4331
fmriprep/sub-01/func
4432
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_AROMAnoiseICs.csv
4533
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_confounds.tsv
4634
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_MELODICmix.tsv
35+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-cifti_variant-space1_preproc.dtseries.json
36+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-cifti_variant-space1_preproc.dtseries.nii
4737
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-fsaverage5.L.func.gii
4838
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-fsaverage5.R.func.gii
4939
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-MNI152NLin2009cAsym_brainmask.nii.gz
@@ -56,6 +46,8 @@ fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-T1w_preproc.
5646
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_bold_AROMAnoiseICs.csv
5747
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_bold_confounds.tsv
5848
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_bold_MELODICmix.tsv
49+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_bold_space-cifti_variant-space1_preproc.dtseries.json
50+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_bold_space-cifti_variant-space1_preproc.dtseries.nii
5951
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_bold_space-fsaverage5.L.func.gii
6052
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_bold_space-fsaverage5.R.func.gii
6153
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_bold_space-MNI152NLin2009cAsym_brainmask.nii.gz

.circleci/ds005_partial_outputs.txt

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
fmriprep
2+
fmriprep/logs
3+
fmriprep/sub-01
4+
fmriprep/sub-01/anat
5+
fmriprep/sub-01/anat/sub-01_T1w_brainmask.nii.gz
6+
fmriprep/sub-01/anat/sub-01_T1w_class-CSF_probtissue.nii.gz
7+
fmriprep/sub-01/anat/sub-01_T1w_class-GM_probtissue.nii.gz
8+
fmriprep/sub-01/anat/sub-01_T1w_class-WM_probtissue.nii.gz
9+
fmriprep/sub-01/anat/sub-01_T1w_dtissue.nii.gz
10+
fmriprep/sub-01/anat/sub-01_T1w_inflated.L.surf.gii
11+
fmriprep/sub-01/anat/sub-01_T1w_inflated.R.surf.gii
12+
fmriprep/sub-01/anat/sub-01_T1w_label-aparcaseg_roi.nii.gz
13+
fmriprep/sub-01/anat/sub-01_T1w_label-aseg_roi.nii.gz
14+
fmriprep/sub-01/anat/sub-01_T1w_midthickness.L.surf.gii
15+
fmriprep/sub-01/anat/sub-01_T1w_midthickness.R.surf.gii
16+
fmriprep/sub-01/anat/sub-01_T1w_pial.L.surf.gii
17+
fmriprep/sub-01/anat/sub-01_T1w_pial.R.surf.gii
18+
fmriprep/sub-01/anat/sub-01_T1w_preproc.nii.gz
19+
fmriprep/sub-01/anat/sub-01_T1w_smoothwm.L.surf.gii
20+
fmriprep/sub-01/anat/sub-01_T1w_smoothwm.R.surf.gii
21+
fmriprep/sub-01/anat/sub-01_T1w_space-MNI152NLin2009cAsym_brainmask.nii.gz
22+
fmriprep/sub-01/anat/sub-01_T1w_space-MNI152NLin2009cAsym_class-CSF_probtissue.nii.gz
23+
fmriprep/sub-01/anat/sub-01_T1w_space-MNI152NLin2009cAsym_class-GM_probtissue.nii.gz
24+
fmriprep/sub-01/anat/sub-01_T1w_space-MNI152NLin2009cAsym_class-WM_probtissue.nii.gz
25+
fmriprep/sub-01/anat/sub-01_T1w_space-MNI152NLin2009cAsym_dtissue.nii.gz
26+
fmriprep/sub-01/anat/sub-01_T1w_space-MNI152NLin2009cAsym_preproc.nii.gz
27+
fmriprep/sub-01/anat/sub-01_T1w_space-MNI152NLin2009cAsym_target-T1w_warp.h5
28+
fmriprep/sub-01/anat/sub-01_T1w_space-orig_target-T1w_affine.txt
29+
fmriprep/sub-01/anat/sub-01_T1w_target-fsnative_affine.txt
30+
fmriprep/sub-01/anat/sub-01_T1w_target-MNI152NLin2009cAsym_warp.h5
31+
fmriprep/sub-01/func
32+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_AROMAnoiseICs.csv
33+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_confounds.tsv
34+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_MELODICmix.tsv
35+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-cifti_variant-space1_preproc.dtseries.json
36+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-cifti_variant-space1_preproc.dtseries.nii
37+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-fsaverage5.L.func.gii
38+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-fsaverage5.R.func.gii
39+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-MNI152NLin2009cAsym_brainmask.nii.gz
40+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-MNI152NLin2009cAsym_preproc.nii.gz
41+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-MNI152NLin2009cAsym_variant-smoothAROMAnonaggr_preproc.nii.gz
42+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-T1w_brainmask.nii.gz
43+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-T1w_label-aparcaseg_roi.nii.gz
44+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-T1w_label-aseg_roi.nii.gz
45+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_bold_space-T1w_preproc.nii.gz
46+
fmriprep/sub-01.html
47+
/tmp/ds005/derivatives_partial

.circleci/ds054_outputs.txt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,6 @@ fmriprep/sub-100185/anat/sub-100185_T1w_space-MNI152NLin2009cAsym_preproc.nii.gz
1717
fmriprep/sub-100185/anat/sub-100185_T1w_space-MNI152NLin2009cAsym_target-T1w_warp.h5
1818
fmriprep/sub-100185/anat/sub-100185_T1w_space-orig_target-T1w_affine.txt
1919
fmriprep/sub-100185/anat/sub-100185_T1w_target-MNI152NLin2009cAsym_warp.h5
20-
fmriprep/sub-100185/figures
21-
fmriprep/sub-100185/figures/sub-100185_phasediff_fmap_mask.svg
22-
fmriprep/sub-100185/figures/sub-100185_T1w_seg_brainmask.svg
23-
fmriprep/sub-100185/figures/sub-100185_T1w_t1_2_mni.svg
24-
fmriprep/sub-100185/figures/sub-100185_task-machinegame_run-01_bold_flt_bbr.svg
25-
fmriprep/sub-100185/figures/sub-100185_task-machinegame_run-01_bold_fmap_reg.svg
26-
fmriprep/sub-100185/figures/sub-100185_task-machinegame_run-01_bold_fmap_reg_vsm.svg
27-
fmriprep/sub-100185/figures/sub-100185_task-machinegame_run-01_bold_forcedsyn.svg
28-
fmriprep/sub-100185/figures/sub-100185_task-machinegame_run-01_bold_rois.svg
29-
fmriprep/sub-100185/figures/sub-100185_task-machinegame_run-01_bold_sdc_phasediff.svg
30-
fmriprep/sub-100185/figures/sub-100185_task-machinegame_run-02_bold_flt_bbr.svg
31-
fmriprep/sub-100185/figures/sub-100185_task-machinegame_run-02_bold_fmap_reg.svg
32-
fmriprep/sub-100185/figures/sub-100185_task-machinegame_run-02_bold_fmap_reg_vsm.svg
33-
fmriprep/sub-100185/figures/sub-100185_task-machinegame_run-02_bold_forcedsyn.svg
34-
fmriprep/sub-100185/figures/sub-100185_task-machinegame_run-02_bold_rois.svg
35-
fmriprep/sub-100185/figures/sub-100185_task-machinegame_run-02_bold_sdc_phasediff.svg
3620
fmriprep/sub-100185/func
3721
fmriprep/sub-100185/func/sub-100185_task-machinegame_run-01_bold_confounds.tsv
3822
fmriprep/sub-100185/func/sub-100185_task-machinegame_run-01_bold_space-MNI152NLin2009cAsym_brainmask.nii.gz

.circleci/ds000210_outputs.txt renamed to .circleci/ds210_outputs.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ fmriprep/sub-02/anat/sub-02_T1w_space-MNI152NLin2009cAsym_preproc.nii.gz
1717
fmriprep/sub-02/anat/sub-02_T1w_space-MNI152NLin2009cAsym_target-T1w_warp.h5
1818
fmriprep/sub-02/anat/sub-02_T1w_space-orig_target-T1w_affine.txt
1919
fmriprep/sub-02/anat/sub-02_T1w_target-MNI152NLin2009cAsym_warp.h5
20-
fmriprep/sub-02/figures
21-
fmriprep/sub-02/figures/sub-02_T1w_seg_brainmask.svg
22-
fmriprep/sub-02/figures/sub-02_T1w_t1_2_mni.svg
23-
fmriprep/sub-02/figures/sub-02_task-cuedSGT_run-01_echo-1_bold_flirt.svg
24-
fmriprep/sub-02/figures/sub-02_task-cuedSGT_run-01_echo-1_bold_rois.svg
25-
fmriprep/sub-02/figures/sub-02_task-cuedSGT_run-01_echo-1_bold_sdc_syn.svg
2620
fmriprep/sub-02/func
2721
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_echo-1_bold_confounds.tsv
2822
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_echo-1_bold_space-MNI152NLin2009cAsym_brainmask.nii.gz
@@ -34,4 +28,4 @@ fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_echo-3_bold_confounds.tsv
3428
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_echo-3_bold_space-MNI152NLin2009cAsym_brainmask.nii.gz
3529
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_echo-3_bold_space-MNI152NLin2009cAsym_preproc.nii.gz
3630
fmriprep/sub-02.html
37-
/tmp/ds000210/derivatives
31+
/tmp/ds210/derivatives

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "notebooks"]
2+
path = notebooks
3+
url = https://github.com/poldracklab/fmriprep-notebooks.git

.zenodo.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@
5858
"affiliation": "Speech & Hearing Bioscience & Technology Program, Harvard University",
5959
"orcid": "0000-0002-2172-5786"
6060
},
61+
{
62+
"name": "Gomez, Daniel E. P.",
63+
"affiliation": "Donders Institute for Brain, Cognition and Behaviour, Radboud University Nijmegen",
64+
"orcid": "0000-0001-8635-021X"
65+
},
66+
{
67+
"name": "Lurie, Daniel J.",
68+
"affiliation": "Department of Psychology, University of California, Berkeley",
69+
"orcid": "0000-0001-8012-6399"
70+
},
71+
{
72+
"name": "Ye, Zhifang",
73+
"affiliation": "State Key Laboratory of Cognitive Neuroscience and Learning, Beijing Normal University",
74+
"orcid": "0000-0003-0489-2619"
75+
},
6176
{
6277
"name": "Poldrack, Russell A.",
6378
"affiliation": "Department of Psychology, Stanford University",

CHANGES.rst

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,108 @@
1+
1.1.2 (July 6, 2018)
2+
====================
3+
4+
This release incorporates Nipype improvements that should reduce the
5+
chance of hanging if tasks are killed for excessive resource consumption.
6+
7+
Thanks to Elizabeth DuPre for documentation updates.
8+
9+
* [DOC] Clarify how to reuse FreeSurfer derivatives (#1189)
10+
* [DOC] Improve command line option documentation (#1186, #1080)
11+
* [MAINT] Update core dependencies (#1179, #1180)
12+
13+
1.1.1 (June 7, 2018)
14+
====================
15+
16+
* [ENH] Pre-cache DKT31 template in Docker image (#1159)
17+
* [MAINT] Update core dependencies (#1163)
18+
19+
1.1.0 (June 4, 2018)
20+
====================
21+
22+
* [ENH] Use Reorient interface included upstream in nipype (#1153)
23+
* [FIX] Refine BIDS queries to avoid indexing derivatives (#1141)
24+
* [DOC] Clarify outlier columns (#1138)
25+
* [PIN] Update to niworkflows 0.4.0 and nipype 1.0.4 (#1133)
26+
27+
1.0.15 (May 17, 2018)
28+
=====================
29+
30+
* [DOC] Add lesion masking during registration (#1113)
31+
* [FIX] Patch ``boldbuffer`` for ME (#1134)
32+
33+
1.0.14 (May 15, 2018)
34+
=====================
35+
36+
With thanks to @ZhifangYe for contributions
37+
38+
* [FIX] Non-invertible transforms bringing parcellation to BOLD (#1130)
39+
* [FIX] Bad connection for ``--medial-surface-nan`` option (#1128)
40+
41+
1.0.13 (May 11, 2018)
42+
=====================
43+
44+
With thanks to @danlurie for the outstanding contribution of #1106
45+
46+
* [ENH] Some nit picks on reports (#1123)
47+
* [ENH] Carpetplot + confounds plot (#1114)
48+
* [ENH] Add constrained cost-function masking to T1-MNI registration (#1106)
49+
* [FIX] Circular dependency (#1104)
50+
* [ENH] Set ``PYTHONNOUSERSITE`` in containers (#1103)
51+
52+
53+
1.0.12 (May 03, 2018)
54+
=====================
55+
56+
* [MAINT] fmriprep-docker: Ensure data/output/work paths are absolute (#1089)
57+
* [ENH] Add usage tracking and centralized error reporting (#1088)
58+
* [FIX] Ensure one motion IC index is loaded as list (#1096)
59+
* [TST] Refactoring CircleCI setup (#1098)
60+
* [FIX] Compression in DataSinks (#1095)
61+
* [MAINT] fmriprep-docker: Support Python 2/3 without future or other helpers (#1082)
62+
* [MAINT] Update npm to 10.x (#1087)
63+
* [DOC] Prefer pre-print over Zenodo doi in boilerplate (#1086)
64+
* [DOC] Stylistic fix (\`'template'\`) (#1083)
65+
* [FIX] Run ICA-AROMA in ``MNI152Lin`` 2mm resampling grid (91x109x91 vox) (#1064)
66+
* [MAINT] Remove cwebp to revert to png (#1081)
67+
* [ENH] Allow changing the dimensionality of Melodic for AROMA. (#1052)
68+
* [FIX] Derivatives datasink handling of compression (#1077)
69+
* [FIX] Check for invalid sform matrices (#1072)
70+
* [FIX] Check exit code from subprocess (#1073)
71+
* [DOC] Add preprint fig. 1 to About (#1070)
72+
* [FIX] Always strip session from T1w for derivative naming (#1071)
73+
* [DOC] Add RRIDs in the citation boilerplate (#1061)
74+
* [ENH] Generate CIFTI derivatives (#1001)
75+
76+
77+
1.0.11 (April 16, 2018)
78+
=======================
79+
80+
* [FIX] Do not detrend CSF/WhiteMatter/GlobalSignal (#1058)
81+
82+
1.0.10 (April 16, 2018)
83+
=======================
84+
85+
* [TST] Re-run ds005 with only one BOLD run (#1048)
86+
* [FIX] Patch subject_summary in reports (#1047)
87+
88+
1.0.9 (April 10, 2018)
89+
======================
90+
91+
With thanks to @danlurie for contributions.
92+
93+
* [FIX] Connect inputnode to SDC for pepolar images (#1046)
94+
* [FIX] Pass ``ref_file`` to STC check (#1038)
95+
* [DOC] Add BBR fallback to user docs. (#1036)
96+
* [ENH] Revise resampling grid for template outputs (#1040)
97+
* [MAINT] DataSinks within their workflows (#1021)
98+
* [ENH] Add FLAIR pial refinement support (#829)
99+
* [MAINT] Upgrade to pybids 0.5 (#1027)
100+
* [MAINT] Refactor fieldmap heuristics (#1017)
101+
* [FIX] Use metadata to select shortest echo as ref_file (#1018)
102+
* [ENH] Adopt versioneer to compose version names (#1007)
103+
* [ENH] Handle first echo separately for ME-EPI (#891)
104+
105+
1106
1.0.8 (February 22, 2018)
2107
=========================
3108

CONTRIBUTING.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# Contributing to FMRIPREP
1+
# Contributing to fMRIPrep
22

3-
Welcome to the FMRIPREP repository! We're excited you're here and want to contribute.
3+
Welcome to the fMRIPrep repository! We're excited you're here and want to contribute.
4+
5+
## Practical guide to submitting your contribution
46

57
These guidelines are designed to make it as easy as possible to get involved. If you have any questions that aren't discussed below, please let us know by opening an [issue][link_issues]!
68

@@ -30,7 +32,9 @@ We appreciate all contributions to FMRIPREP, but those accepted fastest will fol
3032

3133
**1. Comment on an existing issue or open a new issue referencing your addition.**
3234

33-
This allows other members of the FMRIPREP development team to confirm that you aren't overlapping with work that's currently underway and that everyone is on the same page with the goal of the work you're going to carry out.
35+
This allows other members of the FMRIPREP development team to confirm that you aren't
36+
overlapping with work that's currently underway and that everyone is on the same page
37+
with the goal of the work you're going to carry out.
3438

3539
[This blog][link_pushpullblog] is a nice explanation of why putting this work in up front is so useful to everyone involved.
3640

Dockerfile

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -82,40 +82,36 @@ RUN mkdir -p $ANTSPATH && \
8282
| tar -xzC $ANTSPATH --strip-components 1
8383
ENV PATH=$ANTSPATH:$PATH
8484

85-
# Installing WEBP tools
86-
RUN curl -sSLO "http://downloads.webmproject.org/releases/webp/libwebp-0.5.2-linux-x86-64.tar.gz" && \
87-
tar -xf libwebp-0.5.2-linux-x86-64.tar.gz && cd libwebp-0.5.2-linux-x86-64/bin && \
88-
mv cwebp /usr/local/bin/ && rm -rf libwebp-0.5.2-linux-x86-64
89-
9085
# Installing SVGO
91-
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash -
86+
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
9287
RUN apt-get install -y nodejs
9388
RUN npm install -g svgo
9489

9590
# Installing and setting up ICA_AROMA
9691
RUN mkdir -p /opt/ICA-AROMA && \
97-
curl -sSL "https://github.com/rhr-pruim/ICA-AROMA/archive/v0.4.1-beta.tar.gz" \
92+
curl -sSL "https://github.com/maartenmennes/ICA-AROMA/archive/v0.4.4-beta.tar.gz" \
9893
| tar -xzC /opt/ICA-AROMA --strip-components 1 && \
9994
chmod +x /opt/ICA-AROMA/ICA_AROMA.py
10095

10196
ENV PATH=/opt/ICA-AROMA:$PATH
10297

10398
# Installing and setting up miniconda
104-
RUN curl -sSLO https://repo.continuum.io/miniconda/Miniconda3-4.3.11-Linux-x86_64.sh && \
105-
bash Miniconda3-4.3.11-Linux-x86_64.sh -b -p /usr/local/miniconda && \
106-
rm Miniconda3-4.3.11-Linux-x86_64.sh
99+
RUN curl -sSLO https://repo.continuum.io/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh && \
100+
bash Miniconda3-4.5.4-Linux-x86_64.sh -b -p /usr/local/miniconda && \
101+
rm Miniconda3-4.5.4-Linux-x86_64.sh
107102

108103
ENV PATH=/usr/local/miniconda/bin:$PATH \
109104
LANG=C.UTF-8 \
110-
LC_ALL=C.UTF-8
105+
LC_ALL=C.UTF-8 \
106+
PYTHONNOUSERSITE=1
111107

112108
# Installing precomputed python packages
113-
RUN conda install -y mkl=2017.0.1 mkl-service; sync &&\
114-
conda install -y numpy=1.12.0 \
115-
scipy=0.18.1 \
116-
scikit-learn=0.18.1 \
117-
matplotlib=2.0.0 \
118-
pandas=0.19.2 \
109+
RUN conda install -y mkl=2018.0.3 mkl-service; sync &&\
110+
conda install -y numpy=1.14.3 \
111+
scipy=1.1.0 \
112+
scikit-learn=0.19.1 \
113+
matplotlib=2.2.0 \
114+
pandas=0.23.0 \
119115
libxml2=2.9.4 \
120116
libxslt=1.1.29\
121117
traits=4.6.0; sync && \
@@ -124,8 +120,9 @@ RUN conda install -y mkl=2017.0.1 mkl-service; sync &&\
124120
conda clean --all -y; sync && \
125121
conda clean -tipsy && sync
126122

127-
# Precaching fonts
128-
RUN python -c "from matplotlib import font_manager"
123+
# Precaching fonts, set 'Agg' as default backend for matplotlib
124+
RUN python -c "from matplotlib import font_manager" && \
125+
sed -i 's/\(backend *: \).*$/\1Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
129126

130127
# Installing Ubuntu packages and cleaning up
131128
RUN apt-get update && \
@@ -163,9 +160,7 @@ RUN echo "${VERSION}" > /root/src/fmriprep/fmriprep/VERSION && \
163160
rm -rf ~/.cache/pip
164161

165162
RUN ldconfig
166-
167-
WORKDIR /root/src/fmriprep
168-
163+
WORKDIR /tmp/
169164
ENTRYPOINT ["/usr/local/miniconda/bin/fmriprep"]
170165

171166
ARG BUILD_DATE
@@ -174,8 +169,9 @@ ARG VERSION
174169
LABEL org.label-schema.build-date=$BUILD_DATE \
175170
org.label-schema.name="FMRIPREP" \
176171
org.label-schema.description="FMRIPREP - robust fMRI preprocessing tool" \
177-
org.label-schema.url="http://fmriprep.readthedocs.io" \
172+
org.label-schema.url="http://fmriprep.org" \
178173
org.label-schema.vcs-ref=$VCS_REF \
179174
org.label-schema.vcs-url="https://github.com/poldracklab/fmriprep" \
180175
org.label-schema.version=$VERSION \
181176
org.label-schema.schema-version="1.0"
177+

0 commit comments

Comments
 (0)