Skip to content

Commit

Permalink
Merge pull request #72 from nextstrain/default-tip-label
Browse files Browse the repository at this point in the history
Default tip label
  • Loading branch information
joverlee521 authored Nov 26, 2024
2 parents b8343f7 + 21473b9 commit 649e495
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 128 deletions.
116 changes: 60 additions & 56 deletions phylogenetic/defaults/auspice_config.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,60 @@
{
"title": "Real-time tracking of Zika virus evolution",
"maintainers": [
{"name": "the Nextstrain team", "url": "https://nextstrain.org/team"}
],
"data_provenance": [
{
"name": "GenBank",
"url": "https://www.ncbi.nlm.nih.gov/genbank/"
},
{
"name": "USVI",
"url": "https://github.com/blab/zika-usvi/"
}
],
"build_url": "https://github.com/nextstrain/zika",
"colorings": [
{
"key": "gt",
"title": "genotype",
"type": "categorical"
},
{
"key": "num_date",
"title": "date",
"type": "continuous"
},
{
"key": "author",
"title": "author",
"type": "categorical"
},
{
"key": "country",
"title": "country",
"type": "categorical"
},
{
"key": "region",
"title": "region",
"type": "categorical"
}
],
"geo_resolutions": [
"country",
"region"
],
"display_defaults": {
"map_triplicate": true
},
"filters": [
"country",
"region",
"author"
]
}
{
"title": "Real-time tracking of Zika virus evolution",
"maintainers": [
{"name": "the Nextstrain team", "url": "https://nextstrain.org/team"}
],
"data_provenance": [
{
"name": "GenBank",
"url": "https://www.ncbi.nlm.nih.gov/genbank/"
},
{
"name": "USVI",
"url": "https://github.com/blab/zika-usvi/"
}
],
"build_url": "https://github.com/nextstrain/zika",
"colorings": [
{
"key": "gt",
"title": "genotype",
"type": "categorical"
},
{
"key": "num_date",
"title": "date",
"type": "continuous"
},
{
"key": "author",
"title": "author",
"type": "categorical"
},
{
"key": "country",
"title": "country",
"type": "categorical"
},
{
"key": "region",
"title": "region",
"type": "categorical"
}
],
"geo_resolutions": [
"country",
"region"
],
"display_defaults": {
"map_triplicate": true,
"tip_label": "strain"
},
"metadata_columns": [
"strain"
],
"filters": [
"country",
"region",
"author"
]
}
1 change: 0 additions & 1 deletion phylogenetic/defaults/config_zika.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ sequences_url: "https://data.nextstrain.org/files/workflows/zika/sequences.fasta
metadata_url: "https://data.nextstrain.org/files/workflows/zika/metadata.tsv.zst"

strain_id_field: "accession"
display_strain_field: "strain"

filter:
group_by: "country year month"
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 649e495

Please sign in to comment.