blab / nextflu

Real-time tracking of influenza evolution
http://nextflu.org
GNU Affero General Public License v3.0
88 stars 19 forks source link

Include color legend #19

Closed trvrb closed 9 years ago

trvrb commented 9 years ago

There should be a legend on the left hand side that orients colors. It's been completely non-obvious to people I've showed this to that red is high, green is medium and blue is low.

rneher commented 9 years ago

we will need also a categrorical legend for the genotypes and regions. I had smth like this in my version. maybe one can pick a few things from there.

trvrb commented 9 years ago

Great idea. I'll pull from your working version.

rneher commented 9 years ago

good. probably just looking for inspiration is good enough. some of the genotype collecting and coloring stuff might be useful too. tree_frequencies now adds the 10 most dynamics mutations to each node (somehting like this: node['gt'] = 'AFGHYSJFDT'). the root node has a field gt_pos = [3,45,67,159,234,...] with the corresponding positions in HA1 numbering.

rneher commented 9 years ago

I implemented a very rough genotype coloring, still missing a legend. it takes positions from an html input field, generates all genotypes, and colors the links leading up to them. needs beautification.

trvrb commented 9 years ago

I think this can be closed as of bea7a6110c345701067aa17dc590b570046ae015.