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

Clicking "Expand Protein Complexes" has no effect #61

Open
pkalita-lbl opened this issue Dec 12, 2024 · 4 comments
Open

Clicking "Expand Protein Complexes" has no effect #61

pkalita-lbl opened this issue Dec 12, 2024 · 4 comments
Assignees
Labels
display high priority requires immediate attention

Comments

@pkalita-lbl
Copy link
Collaborator

Currently, in the latest version in main, clicking on the "Expand Protein Complexes" button has no effect (other than changing the button label to "Collapse Protein Complexes"). It looks like this was working as of version 1.0.1, but broke sometime after that.

Looking at GO-CAM 6606056e00002011, I would expect that clicking "Expand Protein Complexes" would change the label of the "B cell receptor complex" node to "CD79B, CD79A".

@pkalita-lbl
Copy link
Collaborator Author

There is an error in the browser console when clicking the button:

gocam-viz.tsx:395 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'map')
    at GoCamViz.createComplex (gocam-viz.tsx:395:31)
    at gocam-viz.tsx:324:31
    at Array.forEach (<anonymous>)
    at GoCamViz.renderGoCam (gocam-viz.tsx:318:24)
    at GoCamViz.toggleComplex (gocam-viz.tsx:569:14)
    at HTMLButtonElement.onClick (gocam-viz.tsx:754:57)

@tmushayahama
Copy link
Contributor

@pkalita-lbl thanks for catching this bug, I had totally forgotten that the new data model, there is no longer an id by GO root type i.e. BP, CC, MF, PCC, etc bcz back then it was hardcoded as there was only one of each. So this is line was giving the error

 const edges = activity.getEdges(ActivityNodeType.GoProteinContainingComplex)

So maybe for now a hack is to traverse from MF, we gatta have a proper data model later

@vanaukenk
Copy link

@tmushayahama
Testing this fix on noctua-dev, the expand and collapse functionality is working, but the lable presented in the expanded protein complex box is not correct. In this example it's saying there are two more members, but there aren't; there are only the five listed:

Image

http://noctua-dev.berkeleybop.org/workbench/noctua-visual-pathway-editor/?model_id=gomodel%3A67299f1a00000071

@vanaukenk vanaukenk moved this to Testing - noctua-dev in Pathway Viewer improvements and bug fixes Jan 23, 2025
@vanaukenk vanaukenk added the high priority requires immediate attention label Jan 23, 2025
@vanaukenk vanaukenk moved this from Testing - noctua-dev to Ready for Noctua production in Pathway Viewer improvements and bug fixes Jan 30, 2025
@vanaukenk
Copy link

The expand protein complexes functionality now displays the first three members when expanded and if there are more members, clicking on the complex highlights the appropriate entry in the right-hand table.

I anticipate that we will be revisiting this issue wrt the default number of protein complex members displayed, but we will go with this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display high priority requires immediate attention
Projects
Status: Ready for Noctua production
Development

No branches or pull requests

3 participants