Skip to content

Commit

Permalink
Remove RDB-level related rules/files
Browse files Browse the repository at this point in the history
Prompted by #1094, which led to
internal conversation¹ that determined we should just drop the RBD-levels.

¹ https://bedfordlab.slack.com/archives/CSKMU6YUC/p1706643360558109
  • Loading branch information
joverlee521 committed Jan 31, 2024
1 parent cec4fa0 commit 37970e3
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 148 deletions.
1 change: 0 additions & 1 deletion defaults/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ files:
emerging_lineages: "defaults/emerging_lineages.tsv"
mutational_fitness_distance_map: "defaults/mutational_fitness_distance_map.json"
sites_to_mask: "defaults/sites_ignored_for_tree_topology.txt"
rbd_level_definitions: "defaults/rbd_levels.yaml"

# Define genes to translate during alignment by nextalign.
genes: ["ORF1a", "ORF1b", "S", "ORF3a", "E", "M", "ORF6", "ORF7a", "ORF7b", "ORF8", "N", "ORF9b"]
Expand Down
19 changes: 0 additions & 19 deletions defaults/rbd_levels.yaml

This file was deleted.

95 changes: 0 additions & 95 deletions scripts/assign_rbd_levels.py

This file was deleted.

6 changes: 0 additions & 6 deletions workflow/snakemake_rules/export_for_nextstrain.smk
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,6 @@ rule auspice_config:
"title": "S1 Mutations",
"type": "continuous"
},
{
"key": "rbd_level",
"title": "RBD Level",
"type": "ordinal"
},
{
"key": "immune_escape",
"title": "Immune Escape vs BA.2",
Expand Down Expand Up @@ -311,7 +306,6 @@ rule auspice_config:
originating_lab_filter,
submitting_lab_filter,
"recency",
"rbd_level",
],
"panels": [
"tree",
Expand Down
27 changes: 0 additions & 27 deletions workflow/snakemake_rules/main_workflow.smk
Original file line number Diff line number Diff line change
Expand Up @@ -1297,32 +1297,6 @@ rule find_clusters:
--output {output.clusters}
"""

rule assign_rbd_levels:
input:
spike_alignment="results/{build_name}/translations/aligned.gene.S_withInternalNodes.fasta",
clades="results/{build_name}/clades.json",
tree = "results/{build_name}/tree.nwk",
params:
config=config["files"]["rbd_level_definitions"],
basal_clade_label="21L (BA.2)"
output:
node_data="results/{build_name}/rbd_levels.json",
log:
"logs/assign_rbd_levels_{build_name}.txt"
benchmark:
"benchmarks/assign_rbd_levels_{build_name}.txt",
conda:
config["conda_environment"],
shell:
"""
python3 scripts/assign_rbd_levels.py \
--spike-alignment {input.spike_alignment} \
--config {params.config} \
--clades-node-data {input.clades} \
--basal-clade-label {params.basal_clade_label:q} \
--tree {input.tree} \
--output-node-data {output.node_data} 2>&1 | tee {log}
"""

def export_title(wildcards):
# TODO: maybe we could replace this with a config entry for full/human-readable build name?
Expand Down Expand Up @@ -1360,7 +1334,6 @@ def _get_node_data_by_wildcards(wildcards):
rules.mutational_fitness.output.node_data,
rules.distances.output.node_data,
rules.calculate_epiweeks.output.node_data,
rules.assign_rbd_levels.output.node_data,
]

if "run_pangolin" in config and config["run_pangolin"]:
Expand Down

0 comments on commit 37970e3

Please sign in to comment.