diff --git a/hippunfold/workflow/rules/common.smk b/hippunfold/workflow/rules/common.smk index 5277ec98..90e6e9ef 100644 --- a/hippunfold/workflow/rules/common.smk +++ b/hippunfold/workflow/rules/common.smk @@ -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}"), @@ -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}" diff --git a/hippunfold/workflow/rules/gifti.smk b/hippunfold/workflow/rules/gifti.smk index 4c98a347..409168ac 100644 --- a/hippunfold/workflow/rules/gifti.smk +++ b/hippunfold/workflow/rules/gifti.smk @@ -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 diff --git a/hippunfold/workflow/rules/native_surf.smk b/hippunfold/workflow/rules/native_surf.smk index a454ced1..c7c6271a 100644 --- a/hippunfold/workflow/rules/native_surf.smk +++ b/hippunfold/workflow/rules/native_surf.smk @@ -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