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

Update function logScalePossible for generic assay negative data #5084

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

TJMKuijpers
Copy link
Contributor

This PR fixes the bug describe in this issue.

Now, when we select generic assay data with negative values, the logScalePossible does return false whereas before it would always return true.

Before:
image
Now:
image

@TJMKuijpers TJMKuijpers self-assigned this Jan 14, 2025
Copy link

netlify bot commented Jan 14, 2025

Deploy Preview for cbioportalfrontend ready!

Name Link
🔨 Latest commit 49aeb9a
🔍 Latest deploy log https://app.netlify.com/sites/cbioportalfrontend/deploys/67876d90cb1f560008ae3841
😎 Deploy Preview https://deploy-preview-5084.preview.cbioportal.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@TJMKuijpers TJMKuijpers marked this pull request as ready for review January 15, 2025 08:25
@TJMKuijpers TJMKuijpers changed the title Update logScalePossible for generic assay negative data Update function logScalePossible for generic assay negative data Jan 15, 2025
@TJMKuijpers TJMKuijpers requested a review from inodb January 15, 2025 15:31
@TJMKuijpers
Copy link
Contributor Author

@inodb if you want to recreate the issue on the public portal, this would be the steps:
Go to study gbm_cptac_2021 -> query ERBB2 -> go to plot, switch y axis to “mRNA expression FPKM UQ”, note that the “log scale” is not checked -> switch to “Z score of mRNA expression” -> switch back to “mRNA expression FPKM UQ”, note that the “log scale” is now checked -> switch to “Protein level - Phospoprotein abundance ratio”, now the chart fails.

I think the interesting part here is that this only occurs when you have select mRNA first.

@alisman alisman merged commit 6908c32 into cBioPortal:master Jan 15, 2025
12 of 15 checks passed
olzhasmukayev pushed a commit to olzhasmukayev/cbioportal-frontend that referenced this pull request Jan 16, 2025
…oPortal#5084)

* Update logScalePossible for generic assay negative data

* make sure that return type is always boolean

* Add test for negative and positive data of type number
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.

Plots tab bug: chart fails to render when generic assay data has negative values
2 participants