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

KANBAN-124 GO Ribbon issue: duplication of some terms when "all annotations" is selected #35

Open
MagdalenaZZ opened this issue Jan 24, 2022 · 6 comments
Assignees

Comments

@MagdalenaZZ
Copy link

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.

@kltm
Copy link
Member

kltm commented Mar 17, 2022

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.
@tmushayahama

@kltm
Copy link
Member

kltm commented Mar 17, 2022

Who would be the best person to help @tmushayahama orient himself in with the UI so he can work on just this code?

@vanaukenk
Copy link

@tmushayahama
Note that the behavior I was describing on yesterday's software call is also described in the Alliance ticket:
https://agr-jira.atlassian.net/browse/KANBAN-124

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'.

@vanaukenk
Copy link

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:

image

The second shows that the evidence is not duplicated when the box for the MF slim term 'catalytic activity' is selected:

image

@lpalbou
Copy link
Contributor

lpalbou commented Mar 20, 2022

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):

PK activity under BP:
Screen Shot 2022-03-20 at 2 39 50 PM

PK activity under MF:
Screen Shot 2022-03-20 at 2 44 43 PM

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 ).

@tmushayahama @sierra-moxon

Hope this helps

@kltm
Copy link
Member

kltm commented Apr 14, 2023

These have been marked as Done on the Alliance side. If that sounds right, go ahead and close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

No branches or pull requests

5 participants