Skip to content

Commit

Permalink
phylogenetic: Use strain as default tip label
Browse files Browse the repository at this point in the history
Testing <nextstrain/auspice#1668>

Following changes made in mpox
<nextstrain/mpox@4a268ba>
  • Loading branch information
joverlee521 committed Aug 26, 2024
1 parent 418327a commit 8fb92b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 72 deletions.
6 changes: 5 additions & 1 deletion phylogenetic/defaults/auspice_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@
"region"
],
"display_defaults": {
"map_triplicate": true
"map_triplicate": true,
"tip_label": "strain"
},
"metadata_columns": [
"strain"
],
"filters": [
"country",
"region",
Expand Down
21 changes: 1 addition & 20 deletions phylogenetic/rules/export.smk
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ rule export:
auspice_config = "defaults/auspice_config.json",
description = "defaults/description.md"
output:
auspice_json = "results/raw_zika.json"
auspice_json = "auspice/zika.json"
params:
strain_id = config.get("strain_id_field", "strain"),
shell:
Expand All @@ -54,22 +54,3 @@ rule export:
--include-root-sequence-inline \
--output {output.auspice_json}
"""

rule final_strain_name:
input:
auspice_json="results/raw_zika.json",
metadata="data/metadata_all.tsv"
output:
auspice_json="auspice/zika.json"
params:
strain_id=config["strain_id_field"],
display_strain_field=config.get("display_strain_field", "strain"),
shell:
"""
python3 scripts/set_final_strain_name.py \
--metadata {input.metadata} \
--metadata-id-columns {params.strain_id} \
--input-auspice-json {input.auspice_json} \
--display-strain-name {params.display_strain_field} \
--output {output.auspice_json}
"""
51 changes: 0 additions & 51 deletions phylogenetic/scripts/set_final_strain_name.py

This file was deleted.

0 comments on commit 8fb92b5

Please sign in to comment.