Skip to content

Commit

Permalink
Merge pull request #1097 from nextstrain/remove-rbd
Browse files Browse the repository at this point in the history
Remove RDB-level related rules/files
  • Loading branch information
joverlee521 authored Feb 1, 2024
2 parents cec4fa0 + d359784 commit 3bd4d42
Show file tree
Hide file tree
Showing 6 changed files with 2 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.

2 changes: 2 additions & 0 deletions docs/src/reference/change_log.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ We also use this change log to document new features that maintain backward comp

## New features since last version update

- 31 January 2024: Remove RBD-level related rules and files since this feature has been broken since May 2023 and is no longer relevant. [PR 1097](https://github.com/nextstrain/ncov/pull/1097)

- 30 January 2024: Fix RBD-level coloring by updating clade label and clade parsing. [PR 1094](https://github.com/nextstrain/ncov/pull/1094)

- 14 Dec 2023: Use `nextclade2` binary that makes the version explicit [PR 1089](https://github.com/nextstrain/ncov/pull/1089)
Expand Down
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 3bd4d42

Please sign in to comment.