Coder Social home page Coder Social logo

Comments (2)

ivan-aksamentov avatar ivan-aksamentov commented on June 11, 2024

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.

ArtPoon avatar ArtPoon commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.