@@ -162,11 +162,15 @@ RUN python -c "from matplotlib import font_manager" && \
162
162
sed -i 's/\( backend *: \) .*$/\1 Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
163
163
164
164
# Precaching atlases
165
- RUN pip install --no-cache-dir "templateflow>=0.3.0,<0.4.0a0" && \
165
+ COPY setup.cfg fmriprep-setup.cfg
166
+ RUN pip install --no-cache-dir "$( grep templateflow fmriprep-setup.cfg | xargs )" && \
166
167
python -c "from templateflow import api as tfapi; \
167
- tfapi.get('MNI152NLin6Asym', atlas=None); \
168
- tfapi.get('MNI152NLin2009cAsym', atlas=None); \
169
- tfapi.get('OASIS30ANTs');" && \
168
+ tfapi.get('MNI152NLin6Asym', atlas=None, resolution=[1, 2], \
169
+ desc=None, extension=['.nii', '.nii.gz']); \
170
+ tfapi.get('MNI152NLin6Asym', atlas=None, resolution=[1, 2], \
171
+ desc='brain', extension=['.nii', '.nii.gz']); \
172
+ tfapi.get('MNI152NLin2009cAsym', atlas=None, extension=['.nii', '.nii.gz']); \
173
+ tfapi.get('OASIS30ANTs', extension=['.nii', '.nii.gz']);" && \
170
174
find $HOME/.cache/templateflow -type d -exec chmod go=u {} + && \
171
175
find $HOME/.cache/templateflow -type f -exec chmod go=u {} +
172
176
0 commit comments