Skip to content

Commit 266fdc0

Browse files
eilidhmacnicoloesteban
authored andcommitted
FIX: correct TemplateFlow mask call
Corrects version of mask called for template registration mask
1 parent 658debc commit 266fdc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nirodents/workflows/brainextraction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def init_rodent_brain_extraction_wf(
6161
name='inputnode')
6262

6363
# Find images in templateFlow
64-
tpl_target_path = get_template(in_template, resolution=debug + 1, suffix="T2star" if bids_suffix == "T2w" else "T1w")
65-
tpl_regmask_path = get_template(in_template, resolution=debug + 1, atlas='v3', desc='brain', suffix='mask')
64+
tpl_target_path = get_template(in_template, resolution=debug + 1, suffix=tpl_suffix)
65+
tpl_regmask_path = get_template(in_template, resolution=debug + 1, atlas=None, desc='brain', suffix='mask')
6666
if tpl_regmask_path:
6767
inputnode.inputs.in_mask = str(tpl_regmask_path)
6868
tpl_tissue_labels = get_template(in_template,resolution=debug + 1, desc='cerebrum', suffix='dseg')

0 commit comments

Comments
 (0)