From ee97b7bd9f971152286ac47641d9312097959b13 Mon Sep 17 00:00:00 2001 From: Ivan Blagoev Topolsky Date: Wed, 6 Sep 2023 15:52:09 +0200 Subject: [PATCH] BugFix: Rule dehuman is not defined in this workflow. - hasattr(rules, "dehuman"): doesn't work anymore --- workflow/Snakefile | 6 ++++++ workflow/rules/publish.smk | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) 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