Skip to content

Commit

Permalink
fixes to get dry-run working
Browse files Browse the repository at this point in the history
  • Loading branch information
akhanf committed Feb 24, 2025
1 parent d9ed6d7 commit 96ef15f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions hippunfold/workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ include: "rules/qc.smk"
include: "rules/myelin_map.smk"
include: "rules/native_surf.smk"
include: "rules/unfold_reg.smk"
include: "rules/atlas_gen.smk"


if config["use_template_seg"]:
Expand Down
32 changes: 16 additions & 16 deletions hippunfold/workflow/rules/atlas_gen.smk
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
ruleorder: resample_metric_to_atlas > atlas_metric_to_unfold_nii
#ruleorder: resample_metric_to_atlas > atlas_metric_to_unfold_nii


rule write_image_pairs_csv:
input:
metric_nii=expand(bids(
root=work,
datatype="anat",
suffix="{metric}.nii.gz",
space="unfold",
hemi="{hemi}",
label="{label}",
**inputs.subj_wildcards,
)),
output:
images_csv=expand(
"template/pairs_{hemi}_{label}.csv",
hemi="{hemi}",
label="{label}",
metric_nii = lambda wildcards: inputs[config["modality"]].expand(
bids(
root=work,
datatype="anat",
suffix="{metric}.nii.gz",
space="unfold",
hemi="{hemi}",
label="{label}",
**inputs.subj_wildcards,
),
metric=['gyrification','curvature','thickness'],
hemi=wildcards.hemi,
label=wildcards.label)
output:
images_csv="template/pairs_{hemi}_{label}.csv",
group:
"subj"
run:
Expand All @@ -39,7 +39,7 @@ rule gen_atlas_reg_ants:
),
params:
num_modalities=len(
congif["atlas_files"][config["gen_template_name"]]["metric_wildcards"]
config["atlas_files"][config["gen_template_name"]]["metric_wildcards"]
),
output:
warp_prefix=expand(
Expand Down

0 comments on commit 96ef15f

Please sign in to comment.