@@ -112,14 +112,6 @@ RUN npm install -g svgo
112
112
# Installing bids-validator
113
113
RUN npm install -g
[email protected]
114
114
115
- # Installing and setting up ICA_AROMA
116
- RUN mkdir -p /opt/ICA-AROMA && \
117
- curl -sSL "https://github.com/maartenmennes/ICA-AROMA/archive/v0.4.4-beta.tar.gz" \
118
- | tar -xzC /opt/ICA-AROMA --strip-components 1 && \
119
- chmod +x /opt/ICA-AROMA/ICA_AROMA.py
120
-
121
- ENV PATH=/opt/ICA-AROMA:$PATH
122
-
123
115
# Installing and setting up miniconda
124
116
RUN curl -sSLO https://repo.continuum.io/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh && \
125
117
bash Miniconda3-4.5.11-Linux-x86_64.sh -b -p /usr/local/miniconda && \
@@ -162,9 +154,10 @@ RUN python -c "from matplotlib import font_manager" && \
162
154
sed -i 's/\( backend *: \) .*$/\1 Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
163
155
164
156
# Precaching atlases
165
- RUN pip install --no-cache-dir "templateflow>=0.4.0,<0.5.0a0" && \
157
+ COPY setup.cfg fmriprep-setup.cfg
158
+ RUN pip install --no-cache-dir "$( grep templateflow fmriprep-setup.cfg | xargs )" && \
166
159
python -c "from templateflow import api as tfapi; \
167
- tfapi.get('MNI152NLin6Asym', atlas=None, extension=['.nii', '.nii.gz']); \
160
+ tfapi.get('MNI152NLin6Asym', atlas=None, resolution=[1, 2], extension=['.nii', '.nii.gz']); \
168
161
tfapi.get('MNI152NLin2009cAsym', atlas=None, extension=['.nii', '.nii.gz']); \
169
162
tfapi.get('OASIS30ANTs', extension=['.nii', '.nii.gz']);" && \
170
163
find $HOME/.cache/templateflow -type d -exec chmod go=u {} + && \
0 commit comments