Skip to content

Commit

Permalink
removed redudant hemi conditional; replaced with hippVSdentate
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan DeKraker committed Dec 17, 2024
1 parent b57eaee commit 09c3e49
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions hippunfold/workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,27 @@ def get_modality_suffix(modality):


def get_final_spec():
if len(config["hemi"]) == 2:
specs = inputs[get_modality_key(config["modality"])].expand(
bids(
root=root,
datatype="surf",
den="{density}",
suffix="{surfname}.surf.gii",
space="{space}",
hemi="{hemi}",
label="{autotop}",
suffix="surfaces.spec",
**inputs.subj_wildcards,
),
density=config["output_density"],
space=ref_spaces,
hemi=config["hemi"],
autotop=config["autotop_labels"],
surfname=config["surf_types"]["hipp"],
allow_missing=True,
)
else:
specs = inputs[get_modality_key(config["modality"])].expand(
specs = inputs[get_modality_key(config["modality"])].expand(
bids(
root=root,
datatype="surf",
den="{density}",
suffix="{surfname}.surf.gii",
space="{space}",
hemi="{hemi}",
label="{autotop}",
suffix="surfaces.spec",
**inputs.subj_wildcards,
),
density=config["output_density"],
space=ref_spaces,
hemi=config["hemi"],
autotop=config["autotop_labels"],
surfname=config["surf_types"]["hipp"],
allow_missing=True,
)
specs.extent(
inputs[get_modality_key(config["modality"])].expand(
bids(
root=root,
datatype="surf",
Expand All @@ -89,6 +88,7 @@ def get_final_spec():
surfname=config["surf_types"]["dentate"],
allow_missing=True,
)
)
return specs


Expand Down

0 comments on commit 09c3e49

Please sign in to comment.