It's showing up very well generally and mostly working properly (is graphing, but no page, no variant graph, no nextstrain build) - except it's missing from the left-hand menu to show and not-show, despite being in the graphs:
However, it does appear and disappear when 'Select all' and 'Deselect all' are used at the top of the menu. My guess is that the menu logic may depend on something like do_not_display when it might should be graphing instead?
@ivan-aksamentov I'm afraid I'd appreciate your thoughts here - hopefully a small change in logic could get this working!
========================
Other issue - can't see that "recombinant" is showing up in the Cases graphs. I can see the counts in web/data/perCountryDataCaseCounts.json (link to raw) so the values are there - but don't see it on the page. May again be a logic checking happening somewhere? ("Don't graph if do_not_display rather than looking at graphing?)
From digging a bit, I'm afraid this one may be a little sticky, as it looks like perhaps it's tracing back to web/src/io/getClusters.ts - which excludes do_not_display (probably a good idea a lot of the time).
But getClusterNames() also uses this (link), and that's called by sortClusters() in the same file, which is called by web/src/io/getPerCountryCasesData.ts.
Interestingly, in web/src/io/getPerCountryData.ts the logic is very similar but doesn't use sortClusters() which I presume is why this is working for PerCountry plots but not for Cases plots. Would aligning Cases to work the same work - or will that start breaking things?
Adding a slightly new coloring to the graph - a 'recombinant' category. Here's how it's set up in
clusters.py
It's showing up very well generally and mostly working properly (is graphing, but no page, no variant graph, no nextstrain build) - except it's missing from the left-hand menu to show and not-show, despite being in the graphs:
However, it does appear and disappear when 'Select all' and 'Deselect all' are used at the top of the menu. My guess is that the menu logic may depend on something like
do_not_display
when it might should begraphing
instead?@ivan-aksamentov I'm afraid I'd appreciate your thoughts here - hopefully a small change in logic could get this working!
========================
Other issue - can't see that "recombinant" is showing up in the Cases graphs. I can see the counts in
web/data/perCountryDataCaseCounts.json
(link to raw) so the values are there - but don't see it on the page. May again be a logic checking happening somewhere? ("Don't graph ifdo_not_display
rather than looking atgraphing
?)From digging a bit, I'm afraid this one may be a little sticky, as it looks like perhaps it's tracing back to web/src/io/getClusters.ts - which excludes
do_not_display
(probably a good idea a lot of the time). ButgetClusterNames()
also uses this (link), and that's called bysortClusters()
in the same file, which is called by web/src/io/getPerCountryCasesData.ts.Interestingly, in web/src/io/getPerCountryData.ts the logic is very similar but doesn't use
sortClusters()
which I presume is why this is working for PerCountry plots but not for Cases plots. Would aligning Cases to work the same work - or will that start breaking things?