Skip to content

Commit

Permalink
Link out to Nextclade (#49)
Browse files Browse the repository at this point in the history
* Add root sequence to the exported auspice json files
* Add 'lineage' to traits inference
* Add 'lineage' to global auspice config
* Add descriptive names for each of the Nextclade datasets
  • Loading branch information
j23414 authored Nov 22, 2024
1 parent e7f5f7c commit 388c15a
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ rule export_washington_build:
--lat-longs {input.lat_longs} \
--description {input.description} \
--auspice-config {input.auspice_config} \
--include-root-sequence-inline \
--output {output.auspice} 2>&1 | tee {log}
"""

Expand Down
15 changes: 14 additions & 1 deletion phylogenetic/defaults/auspice_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,18 @@
"map_triplicate": true,
"geo_resolution": "state",
"distance_measure": "div"
}
},
"extensions": {
"nextclade": {
"pathogen": {
"schemaVersion":"3.0.0",
"defaultCds": "env",
"attributes": {
"name": "West Nile Virus Washington-State-Focused Tree",
"reference name": "IS88",
"reference accession": "AF481864"
}
}
}
}
}
22 changes: 21 additions & 1 deletion phylogenetic/defaults/auspice_config_global.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,25 @@
"color_by": "region",
"map_triplicate": true,
"geo_resolution": "country"
}
},
"extensions": {
"nextclade": {
"clade_node_attrs": [
{
"name": "lineage",
"displayName": "Pathoplexus lineage",
"description": "Global WNV lineages based on pathoplexus results."
}
],
"pathogen": {
"schemaVersion":"3.0.0",
"defaultCds": "env",
"attributes": {
"name": "West Nile Virus Global Tree",
"reference name": "Reconstructed ancestor from global tree",
"reference accession": "none"
}
}
}
}
}
3 changes: 2 additions & 1 deletion phylogenetic/defaults/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ refine:
traits:
metadata_columns: [
'region',
'country'
'country',
'lineage',
]

export:
Expand Down
1 change: 1 addition & 0 deletions phylogenetic/rules/export.smk
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ rule export:
--node-data {input.branch_lengths} {input.traits} {input.nt_muts} {input.aa_muts} \
--description {input.description} \
--auspice-config {input.auspice_config} \
--include-root-sequence-inline \
--output {output.auspice} 2>&1 | tee {log}
"""

0 comments on commit 388c15a

Please sign in to comment.