diff --git a/workflow/Snakefile b/workflow/Snakefile index 435db60e..119ee07a 100644 --- a/workflow/Snakefile +++ b/workflow/Snakefile @@ -79,3 +79,9 @@ if config.output["dehumanized_raw_reads"]: if config.output["upload"]: include: "rules/publish.smk" + + +if config.output["dehumanized_raw_reads"] and config.output["upload"]: + + # only if dehuman.smk and publish.smk are both included + ruleorder: dehuman > checksum diff --git a/workflow/rules/publish.smk b/workflow/rules/publish.smk index 89042c97..05b69d1c 100644 --- a/workflow/rules/publish.smk +++ b/workflow/rules/publish.smk @@ -162,9 +162,3 @@ rule checksum: ruleorder: unfiltered_cram > checksum - - -if hasattr(rules, "dehuman"): - - # only if dehuman.smk is included - ruleorder: dehuman > checksum