blab / ncov-escape

Nextstrain build for SARS-CoV-2 to calculate immune escape of circulating viruses
https://nextstrain.org/ncov
MIT License
0 stars 0 forks source link

how to control significant digits on escape scores shown on tree? #3

Closed jbloom closed 2 years ago

jbloom commented 2 years ago

Right now the escape scores for the nodes when moused over are shown with many significant digits. How do I make these just one or two digits after the decimal? Round the numbers in JSON or some other method?

trvrb commented 2 years ago

You'll want to round scores when exporting the JSON. If the JSON has two significant digits then Auspice will display just two digits.

jbloom commented 2 years ago

Fixed in a1648a5e.