From de6a7ef83cc7bfb650cdf748203feab984f0e76c Mon Sep 17 00:00:00 2001 From: John Huddleston Date: Wed, 11 Sep 2024 15:50:22 -0700 Subject: [PATCH] Don't annotate titer node data unless using titer models --- profiles/nextflu-private/antigenic_distances.smk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/nextflu-private/antigenic_distances.smk b/profiles/nextflu-private/antigenic_distances.smk index cf682c87..05691352 100644 --- a/profiles/nextflu-private/antigenic_distances.smk +++ b/profiles/nextflu-private/antigenic_distances.smk @@ -153,7 +153,7 @@ def get_private_node_data(wildcards): ] # Only try to annotate titer collections for HA. - if wildcards.segment == "ha": + if wildcards.segment == "ha" and config["builds"][wildcards.build_name].get("enable_titer_models", False): for collection in config["builds"][wildcards.build_name]["titer_collections"]: node_data.append(f"builds/{wildcards.build_name}/{wildcards.segment}/titers_for_reference_viruses/{collection['name']}.json") node_data.append(f"builds/{wildcards.build_name}/{wildcards.segment}/haplotypes_without_references/{collection['name']}.json")