Comments (2)
change how clades are ordered - this can follow hierarchical nomenclature or decreasing order of frequency?
I think the order comes from the data, so it is preferable to tweak it there. We might add sorting in the app if there is need for dynamic sorting.
Basically, the idea is to not add any extra runtime to the app, which can be done offline instead.
it might be nice to have some deterministic system for assigning colours to clades and countries, such that related clades and adjacent countries have similar but distinguishable colours
I am using "colorhash" function, which converts strings into colors deterministically. We may or may not want to have a fixed palette or some more sophisticated algo for colors. This depends on scientific needs, notably, we need to define what does it mean to be "related". Both should probably be implemented offline.
Also, regarding countries, regions and any other geographical hierarchies, we learned in our previous projects that geographic questions often adjacent to political, religious and racial questions and disputes. As a civilization we cannot even agree on a list of countries and where they are, as well as their names and flags. It is important to not offend anyone and not to spark any controversies.
The order of things should probably be tweaked more upsteream in the data pipeline, but can also be tweeaked in this post-processing script:
https://github.com/neherlab/flu_frequencies/blob/master/scripts/web_convert.py
And the colors are calculated there as well.
from flu_frequencies.
Thanks for the insights @ivan-aksamentov - sounds to me like we can park most of my queries above. Varying point size was addressed in #11 and I will open PRs for any other considerations.
from flu_frequencies.
Related Issues (9)
- Build local instance HOT 8
- Tooltip needs to switch location relative to mouse by context HOT 14
- Plot width does not return to shorter scale on window resize HOT 1
- All variant frequencies for South Asia region are 1 HOT 1
- Increase plot margins by one week so that points are not cutoff HOT 1
- Remove '?' countries and regions
- China region vs China country HOT 2
- Unexpected polars panic exception when creating day count column in `fit_single_frequencies.py` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flu_frequencies.