From 286bebd45ce40ff700f0dd2917cbdcf2bbc12735 Mon Sep 17 00:00:00 2001 From: Jover Lee Date: Mon, 4 Mar 2024 11:33:28 -0800 Subject: [PATCH] ingest: support `custom_rules` from config Follows the pathogen-repo-guide to allow users to define custom rules in the config to extend or override the core ingest workflow. This is needed to support the upcoming ingest tutorials which use this repo as the example. --- ingest/Snakefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ingest/Snakefile b/ingest/Snakefile index 59431de..5bdd097 100644 --- a/ingest/Snakefile +++ b/ingest/Snakefile @@ -71,3 +71,9 @@ if send_slack_notifications: if config.get("trigger_rebuild", False): include: "rules/trigger_rebuild.smk" + + +if "custom_rules" in config: + for rule_file in config["custom_rules"]: + + include: rule_file