Skip to content

Commit

Permalink
Merge pull request #355 from khanlab/fix-hippb500
Browse files Browse the repository at this point in the history
bugfix for hippb500 workflow
  • Loading branch information
akhanf authored Jan 22, 2025
2 parents ceaaea3 + bbd4f64 commit ccf2b76
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion hippunfold/workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ def get_final_output():

if "corobl" in ref_spaces:

ruleorder: equivolume_coords > laplace_coords_hipp > laplace_coords_dentate > copy_coords_to_results

rule copy_coords_to_results:
input:
os.path.join(work, "{pre}_space-corobl_{post}{suffix}.{ext}"),
Expand All @@ -284,7 +286,7 @@ if "corobl" in ref_spaces:

rule copy_xfm_to_results:
input:
os.path.join(work, "{pre}_{fromto,from|to}-corobl_{post}{suffix}.{ext}"),
os.path.join(work, "{pre}_{fromto}-corobl_{post}{suffix}.{ext}"),
output:
os.path.join(
root, "{pre,[^/].+}_{fromto,from|to}-corobl_{post}{suffix,xfm}.{ext}"
Expand Down
2 changes: 1 addition & 1 deletion hippunfold/workflow/rules/gifti.smk
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ rule affine_gii_to_native:
datatype="surf",
den="{density}",
suffix="{surfname}.surf.gii",
space="{native_modality}",
space="{native_modality,T1w|T2w}",
hemi="{hemi}",
label="{autotop,hipp|dentate}",
**inputs.subj_wildcards
Expand Down
2 changes: 1 addition & 1 deletion hippunfold/workflow/rules/native_surf.smk
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ rule affine_gii_corobl_to_modality:
root=root,
datatype="surf",
suffix="{surfname}.surf.gii",
space="{native_modality}",
space="{native_modality,T1w|T2w}",
hemi="{hemi}",
label="{autotop,hipp|dentate}",
**inputs.subj_wildcards
Expand Down

0 comments on commit ccf2b76

Please sign in to comment.