Skip to content

Commit

Permalink
Keep formatting from Python's JSON module
Browse files Browse the repository at this point in the history
Keeps the formatting generated by Python's JSON module when writing out
new Auspice config JSONs with color scales.
  • Loading branch information
huddlej committed Sep 19, 2023
1 parent 6051063 commit 68dbe2c
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 38 deletions.
47 changes: 37 additions & 10 deletions profiles/nextflu-private/h1n1pdm/na/auspice_config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
{
"title": "Real-time tracking of influenza A/H1N1pdm evolution",
"maintainers": [
{"name": "Jover Lee", "url": "https://bedford.io/team/jover-lee/"},
{"name": "John Huddleston", "url": "https://bedford.io/team/john-huddleston/"},
{"name": "Richard Neher", "url": "https://neherlab.org/richard-neher.html"},
{"name": "Trevor Bedford", "url": "https://bedford.io/team/trevor-bedford/"}
{
"name": "Jover Lee",
"url": "https://bedford.io/team/jover-lee/"
},
{
"name": "John Huddleston",
"url": "https://bedford.io/team/john-huddleston/"
},
{
"name": "Richard Neher",
"url": "https://neherlab.org/richard-neher.html"
},
{
"name": "Trevor Bedford",
"url": "https://bedford.io/team/trevor-bedford/"
}
],
"data_provenance": [
{
Expand All @@ -28,11 +40,26 @@
"title": "Clade",
"type": "categorical",
"scale": [
["6B.1A.5a", "#57a5d7"],
["5a.1", "#3e59cf"],
["5a.2", "#705c94"],
["5a.2a", "#e39b39"],
["5a.2a.1", "#dfd24e"]
[
"6B.1A.5a",
"#57a5d7"
],
[
"5a.1",
"#3e59cf"
],
[
"5a.2",
"#705c94"
],
[
"5a.2a",
"#e39b39"
],
[
"5a.2a.1",
"#dfd24e"
]
]
},
{
Expand Down Expand Up @@ -163,4 +190,4 @@
"entropy",
"frequencies"
]
}
}
104 changes: 82 additions & 22 deletions profiles/nextflu-private/h3n2/na/auspice_config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
{
"title": "Real-time tracking of influenza A/H3N2 evolution",
"maintainers": [
{"name": "Jover Lee", "url": "https://bedford.io/team/jover-lee/"},
{"name": "John Huddleston", "url": "https://bedford.io/team/john-huddleston/"},
{"name": "Richard Neher", "url": "https://neherlab.org/richard-neher.html"},
{"name": "Trevor Bedford", "url": "https://bedford.io/team/trevor-bedford/"}
{
"name": "Jover Lee",
"url": "https://bedford.io/team/jover-lee/"
},
{
"name": "John Huddleston",
"url": "https://bedford.io/team/john-huddleston/"
},
{
"name": "Richard Neher",
"url": "https://neherlab.org/richard-neher.html"
},
{
"name": "Trevor Bedford",
"url": "https://bedford.io/team/trevor-bedford/"
}
],
"data_provenance": [
{
Expand All @@ -28,22 +40,70 @@
"title": "Clade",
"type": "categorical",
"scale": [
["1", "#571EA2"],
["1a", "#4334BF"],
["1a.1", "#3F55CE"],
["2", "#4376CD"],
["2a", "#4C91C0"],
["2a.1", "#59A4A9"],
["2a.1a", "#6AB18F"],
["2a.1b", "#7FB975"],
["2a.2", "#97BD5F"],
["2a.3", "#AFBD4F"],
["2a.3a", "#C7B944"],
["2a.3a.1", "#D9AD3D"],
["2a.3b", "#E49838"],
["2b", "#E67932"],
["2c", "#E1512A"],
["2d", "#DB2823"]
[
"1",
"#571EA2"
],
[
"1a",
"#4334BF"
],
[
"1a.1",
"#3F55CE"
],
[
"2",
"#4376CD"
],
[
"2a",
"#4C91C0"
],
[
"2a.1",
"#59A4A9"
],
[
"2a.1a",
"#6AB18F"
],
[
"2a.1b",
"#7FB975"
],
[
"2a.2",
"#97BD5F"
],
[
"2a.3",
"#AFBD4F"
],
[
"2a.3a",
"#C7B944"
],
[
"2a.3a.1",
"#D9AD3D"
],
[
"2a.3b",
"#E49838"
],
[
"2b",
"#E67932"
],
[
"2c",
"#E1512A"
],
[
"2d",
"#DB2823"
]
]
},
{
Expand Down Expand Up @@ -111,7 +171,7 @@
"title": "Country",
"type": "categorical"
},
{
{
"key": "division",
"title": "Division",
"type": "categorical"
Expand Down Expand Up @@ -168,4 +228,4 @@
"entropy",
"frequencies"
]
}
}
24 changes: 18 additions & 6 deletions profiles/nextflu-private/vic/na/auspice_config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
{
"title": "Real-time tracking of influenza B/Vic evolution",
"maintainers": [
{"name": "Jover Lee", "url": "https://bedford.io/team/jover-lee/"},
{"name": "John Huddleston", "url": "https://bedford.io/team/john-huddleston/"},
{"name": "Richard Neher", "url": "https://neherlab.org/richard-neher.html"},
{"name": "Trevor Bedford", "url": "https://bedford.io/team/trevor-bedford/"}
{
"name": "Jover Lee",
"url": "https://bedford.io/team/jover-lee/"
},
{
"name": "John Huddleston",
"url": "https://bedford.io/team/john-huddleston/"
},
{
"name": "Richard Neher",
"url": "https://neherlab.org/richard-neher.html"
},
{
"name": "Trevor Bedford",
"url": "https://bedford.io/team/trevor-bedford/"
}
],
"data_provenance": [
{
Expand Down Expand Up @@ -99,7 +111,7 @@
"title": "Country",
"type": "categorical"
},
{
{
"key": "division",
"title": "Division",
"type": "categorical"
Expand Down Expand Up @@ -156,4 +168,4 @@
"entropy",
"frequencies"
]
}
}

0 comments on commit 68dbe2c

Please sign in to comment.