diff --git a/hippunfold/workflow/rules/preproc_t1.smk b/hippunfold/workflow/rules/preproc_t1.smk index b0671cea..f4d2c82c 100644 --- a/hippunfold/workflow/rules/preproc_t1.smk +++ b/hippunfold/workflow/rules/preproc_t1.smk @@ -72,7 +72,7 @@ else: def reg_to_template_cmd(wildcards, input, output): - ref = ( + ref = str( Path(input.template_dir) / config["template_files"][config["template"]][wildcards.modality], ) diff --git a/hippunfold/workflow/rules/shape_inject.smk b/hippunfold/workflow/rules/shape_inject.smk index d724d99d..95a02065 100644 --- a/hippunfold/workflow/rules/shape_inject.smk +++ b/hippunfold/workflow/rules/shape_inject.smk @@ -106,7 +106,7 @@ rule import_template_shape: container: config["singularity"]["autotop"] shell: - "cp {input} {output}" + "cp {params.template_seg} {output.template_seg}" def get_image_pairs(wildcards, input):