Skip to content

Commit

Permalink
Update common.smk
Browse files Browse the repository at this point in the history
  • Loading branch information
jordandekraker authored Jun 26, 2024
1 parent d85d5a6 commit 24bc9e3
Showing 1 changed file with 34 additions and 17 deletions.
51 changes: 34 additions & 17 deletions hippunfold/workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,40 @@ def get_modality_suffix(modality):


def get_final_spec():
specs = expand(
bids(
root=root,
datatype="surf",
den="{density}",
space="{space}",
hemi="{hemi}",
label="{autotop}",
suffix="surfaces.spec",
**config["subj_wildcards"],
),
density=config["output_density"],
space=ref_spaces,
hemi=config["hemi"],
autotop=config["autotop_labels"],
allow_missing=True,
)
if len(config["hemi"]) == 2:
specs = expand(
bids(
root=root,
datatype="surf",
den="{density}",
space="{space}",
label="{autotop}",
suffix="surfaces.spec",
**config["subj_wildcards"],
),
density=config["output_density"],
space=ref_spaces,
autotop=config["autotop_labels"],
allow_missing=True,
)
else:
specs = expand(
bids(
root=root,
datatype="surf",
den="{density}",
space="{space}",
hemi="{hemi}",
label="{autotop}",
suffix="surfaces.spec",
**config["subj_wildcards"],
),
density=config["output_density"],
space=ref_spaces,
hemi=config["hemi"],
autotop=config["autotop_labels"],
allow_missing=True,
)
return specs


Expand Down

0 comments on commit 24bc9e3

Please sign in to comment.