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

Fix uniprot PTM crash when centain fields are missing in uniprot data #4034

Merged
merged 1 commit into from
Nov 10, 2021

Conversation

leexgh
Copy link
Member

@leexgh leexgh commented Nov 5, 2021

Fix: cBioPortal/cbioportal#9033

From Uniprot api doc, there are some option value in the model:
https://www.ebi.ac.uk/proteins/api/doc/#!/features/getByAccession
image
But based on my testing, evidences could be missing too, for example: https://www.ebi.ac.uk/proteins/api/features/P06276?categories=PTM
image

So we change description, molecule and evidences in UniprotFeature to optional, as well as description and evidence in UniprotTopology to optional.

@leexgh leexgh force-pushed the 9033-fix-uniprot-ptm branch 2 times, most recently from 35bf7bb to f583036 Compare November 9, 2021 07:23
@leexgh leexgh requested a review from onursumer November 9, 2021 07:24
Copy link
Member

@onursumer onursumer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@leexgh leexgh force-pushed the 9033-fix-uniprot-ptm branch from f583036 to 2b516fe Compare November 10, 2021 16:25
@leexgh leexgh force-pushed the 9033-fix-uniprot-ptm branch from 2b516fe to 19ecb46 Compare November 10, 2021 16:37
@alisman alisman merged commit 0fca00c into cBioPortal:master Nov 10, 2021
@dippindots dippindots added the bug label Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mutations tab crashes if enable Uniprot PTM
4 participants