-
Notifications
You must be signed in to change notification settings - Fork 1
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
KANBAN-124 GO Ribbon issue: duplication of some terms when "all annotations" is selected #35
Comments
After some discussion, we'll be doing a little research to see if this is a data issue (incoming payload is incorrect) or a ribbon drawing issue. |
Who would be the best person to help @tmushayahama orient himself in with the UI so he can work on just this code? |
@tmushayahama Namely, the duplication is apparent when viewing 'all annotations' but is gone when clicking on a specific term box in the slim. Contrast 'all annotations' on this page: https://www.alliancegenome.org/gene/HGNC:8896#function---go-annotations With just selecting 'catalytic activity' from the MF slim. The duplicated 'phosphoglycerate kinase activity' evidence seen under 'all annotations' disappears when just selecting 'catalytic activity'. |
Here are screenshots of what this looks like on the human PGK1 page. The first shows the duplicated evidence for 'phosphoglycerate kinase activity' when the all annotations box is selected: The second shows that the evidence is not duplicated when the box for the MF slim term 'catalytic activity' is selected: |
It is an interesting issue.. I spent some time trying to figure out where this was coming from. It doesn't come from the ribbon but it comes from the GO API and more precisely the slimmer function. The slimmer function is the piece of code used to retrieve all annotations under a term or aspect for a given gene. When clicking on "MF", it does show the correct annotations, but when clicking under "All", and as shown in the screenshot, the PK activity evidence appears duplicated. After checking the GO API request, one can see that we find PK activity under both a slim of BP 8150 and a slim of MF (3674): The ribbon table group all annotations per term, and since this exists twice at the level of the GO API / slimmer, it displayed it twice. For reference, this is linked to an old issue we had, where when clicking on a BP term, you could see MF terms. I then created a filter to remove any MF terms that would be "slimmed" from a BP term. A similar strategy could be done when clicking "All", by removing any MF from the BP slim section. This is probably better be done at the GO API level (@sierra-moxon) but this could be intercepted and filtered out by the ribbon as well (@tmushayahama ). Hope this helps |
These have been marked as |
Please see Alliance ticket https://agr-jira.atlassian.net/browse/SCRUM-1031 and https://agr-jira.atlassian.net/browse/KANBAN-124 for more details + screenshots.
The text was updated successfully, but these errors were encountered: