-
Notifications
You must be signed in to change notification settings - Fork 8
Make tree for 450bp of the N gene ("N450") #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
55ea0ce
edbefd5
8343876
d55342b
ab92a1b
f39ba8b
119fbcf
862dbaf
8bea320
a9d2644
bf83a42
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| { | ||
| "title": "Real-time tracking of measles virus evolution", | ||
| "maintainers": [ | ||
| {"name": "Kim Andrews", "url": "https://bedford.io/team/kim-andrews/"}, | ||
| {"name": "the Nextstrain team", "url": "https://nextstrain.org/team"} | ||
| ], | ||
| "build_url": "https://github.com/nextstrain/measles", | ||
| "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, | ||
| "distance_measure": "div", | ||
| "layout": "unrooted" | ||
| }, | ||
| "filters": [ | ||
| "country", | ||
| "region", | ||
| "author" | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,15 +8,17 @@ See Augur's usage docs for these commands for more details. | |
| rule export: | ||
| """Exporting data files for for auspice""" | ||
| input: | ||
| tree = "results/tree.nwk", | ||
| tree = "results/tree_{gene}.nwk", | ||
| metadata = "data/metadata.tsv", | ||
| branch_lengths = "results/branch_lengths.json", | ||
| nt_muts = "results/nt_muts.json", | ||
| aa_muts = "results/aa_muts.json", | ||
| branch_lengths = "results/branch_lengths_{gene}.json", | ||
| nt_muts = "results/nt_muts_{gene}.json", | ||
| aa_muts = "results/aa_muts_{gene}.json", | ||
| colors = config["files"]["colors"], | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd suggest removing all the "country" colours from the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in 119fbcf |
||
| auspice_config = config["files"]["auspice_config"] | ||
| auspice_config = lambda wildcard: "defaults/auspice_config.json" if wildcard.gene in ["genome"] else "defaults/auspice_config_N450.json" | ||
|
|
||
| output: | ||
| auspice_json = rules.all.input.auspice_json | ||
| auspice_json = "auspice/measles_{gene}.json", | ||
| root_sequence = "auspice/measles_{gene}_root-sequence.json" | ||
| params: | ||
| strain_id = config["strain_id_field"] | ||
| shell: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Not blocking this PR]
We used to add "author" as a color-by as a workaround so that it appeared as a filtering option in Auspice, however a couple of recent changes have rendered this pattern unnecessary. We can now use "metadata_columns" in the auspice-config JSON (or
--metadata-columns) to export "author" and Auspice will automatically add it as a filtering option. This is nicer than exposing author as a coloring.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 8bea320