Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clade labels suppress amino acid labels #905

Closed
rneher opened this issue Feb 25, 2020 · 1 comment
Closed

clade labels suppress amino acid labels #905

rneher opened this issue Feb 25, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@rneher
Copy link
Member

rneher commented Feb 25, 2020

When labeling branches with amino acids, these labels don't show on branches with clade labels. see branches at which clades changes. Most have aa changes, but they don't show.

https://nextstrain.org/flu/seasonal/h1n1pdm/ha/6y?branchLabel=aa

@rneher rneher added the bug Something isn't working label Feb 25, 2020
@jameshadfield
Copy link
Member

jameshadfield commented Feb 25, 2020

This issue is a bit complicated, so i'll try to explain what's going on:

Firstly, there is a difference in the JSON between aa labels and AA mutations. Auspice is designed to display the former, but not the latter. Augur isn't exporting the labels correctly, e.g. in h1n1pdm / ha / 6y.

                          "labels": {
                            "clade": "6b"
                          },
                          "mutations": {
                            "HA1": [
                              "K163Q",
                              "A256T"
                            ],

Here's the bug in tha augur code: https://github.com/nextstrain/augur/blob/master/augur/export_v2.py#L529. I'll add a PR ASAP.


Secondly, there is an issue with auspice, which I've fixed (PR soon). We currently have this code to decide what labels to display, as to display them all isn't good:

image

As we add more labels other than just clade / aa, this is not ideal. I'll create a PR ASAP to propose we:
(a) Display all label values by default, unless the labeling is aa (see screenshot above)
(b) for aa labels, display them if the branch has any other labels, or if it meets the current threshold.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants