Skip to content

Commit c3752b0

Browse files
committed
fixing problems with templates and segmentations
1 parent 813b597 commit c3752b0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,13 @@ RUN pip install "datalad==0.10.0" && \
161161
rm -rf ~/.cache/pip
162162

163163
RUN git config --global user.name "First Last" && \
164-
git config --global user.email "[email protected]" && \
165-
datalad install -r https://github.com/templateflow/templateflow.git
166-
RUN datalad get $TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/*_T1w.nii.gz \
164+
git config --global user.email "[email protected]"
165+
166+
RUN datalad install -r https://github.com/templateflow/templateflow.git && \
167+
datalad get $TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/*_T1w.nii.gz \
167168
$TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/*_desc-brain_mask.nii.gz \
169+
$TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-02_desc-fMRIPrep_boldref.nii.gz \
170+
$TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-02_desc-DKT31_dseg.nii.gz \
168171
$TEMPLATEFLOW_HOME/tpl-MNI152Lin/*_T1w.nii.gz \
169172
$TEMPLATEFLOW_HOME/tpl-MNI152Lin/*_desc-brain_mask.nii.gz \
170173
$TEMPLATEFLOW_HOME/tpl-OASIS30ANTs/*_T1w.nii.gz \

fmriprep/workflows/bold/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def init_enhance_and_skullstrip_bold_wf(
275275
apply_mask = pe.Node(fsl.ApplyMask(), name='apply_mask')
276276

277277
if not pre_mask:
278-
bold_template = get_template('fMRIPrep', 'space-MNI_res-02_boldref.nii.gz')
278+
bold_template = get_template('MNI152NLin2009cAsym', 'res-02_desc-fMRIPrep_boldref.nii.gz')
279279
brain_mask = get_template('MNI152NLin2009cAsym', 'res-02_desc-brain_mask.nii.gz')
280280

281281
# Initialize transforms with antsAI

0 commit comments

Comments
 (0)