Skip to content

Instantly share code, notes, and snippets.

@tsibley
Created February 10, 2025 17:58
Show Gist options
  • Save tsibley/844827c32011e5ae66a876297083ab4e to your computer and use it in GitHub Desktop.
Save tsibley/844827c32011e5ae66a876297083ab4e to your computer and use it in GitHub Desktop.
Augur/Auspice accession and url demo
$ augur export v2 --tree test.nwk --metadata test.tsv --metadata-columns accession url --output test.json
WARNING: You didn't provide information on who is maintaining this analysis.

Validating produced JSON
Validating schema of 'test.json'...
Validating that the JSON is internally consistent...
Validation of 'test.json' succeeded.
{
"version": "v2",
"meta": {
"updated": "2025-02-10",
"colorings": [],
"filters": [],
"panels": [
"tree"
]
},
"tree": {
"name": "INT2",
"node_attrs": {
"div": 0
},
"branch_attrs": {},
"children": [
{
"name": "INT1",
"node_attrs": {
"div": 1.0
},
"branch_attrs": {},
"children": [
{
"name": "c",
"node_attrs": {
"div": 2.0
},
"branch_attrs": {}
},
{
"name": "b",
"node_attrs": {
"div": 2.0
},
"branch_attrs": {}
}
]
},
{
"name": "a",
"node_attrs": {
"div": 1.0,
"accession": "ABC123",
"url": "https://example.com/#ABC123"
},
"branch_attrs": {}
}
]
}
}
((c:1,b:1)INT1:1,a:1)INT2:1;
name accession url
a ABC123 https://example.com/#ABC123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment