-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
export_v2: Make "none" an invalid coloring key
Update `augur export v2` to warn about the invalid coloring "none" key and skip it in export so that it does not include a coloring key that will clash with the recent change in Auspice to use "none" to hide tip labels¹. ¹ nextstrain/auspice#1618
- Loading branch information
1 parent
cbe48e1
commit a0756a9
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"colorings": [ | ||
{ | ||
"key": "location", | ||
"title": "Location", | ||
"type": "categorical", | ||
"legend": [ | ||
{"value": "alpha", "display": "α"}, | ||
{"value": "beta"} | ||
], | ||
"scale": [ | ||
["beta", "#bd0026"], | ||
["gamma", "#6a51a3"] | ||
] | ||
}, | ||
{ | ||
"key": "mutation_length", | ||
"title": "Mutations per branch", | ||
"type": "continuous", | ||
"legend": [ | ||
{"value": 1, "display": "0-2", "bounds": [-1,2]}, | ||
{"value": 3, "display": "3-5", "bounds": [2,5]}, | ||
{"value": 5, "display": ">5", "bounds": [5, 10]} | ||
], | ||
"scale": [ | ||
[1, "#081d58"], | ||
[3, "#1d91c0"], | ||
[5, "#c7e9b4"] | ||
] | ||
}, | ||
{ | ||
"key": "none", | ||
"title": "None", | ||
"type": "boolean" | ||
} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/functional/export_v2/dataset1_metadata_with_none_column.tsv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
strain div mutation_length none | ||
tipA 1 1 A | ||
tipB 3 1 B | ||
tipC 3 1 C | ||
tipD 8 3 D | ||
tipE 9 4 E | ||
tipF 6 1 F |