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

Only allow expression profiles from tcga pancan in plots tab #4409

Merged
merged 2 commits into from
Nov 15, 2022

Conversation

alisman
Copy link
Collaborator

@alisman alisman commented Nov 4, 2022

Filter out expression profiles when rule for sharing profiles is not met. This is for multi-study queries in which expression data is not normalized and shouldn't be compared (unless part of same group)

image

} else {
return profiles.filter(
p =>
p.molecularAlterationType !=
Copy link
Member

Choose a reason for hiding this comment

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

Is != on purpose?

Suggested change
p.molecularAlterationType !=
p.molecularAlterationType !==

@inodb inodb changed the title Do not allow expression profiles in results view unless studies are "… Only allow expression profiles from tcga pancan in plots tab Nov 11, 2022
@alisman alisman force-pushed the noExpression branch 2 times, most recently from 2cba915 to e368d1b Compare November 11, 2022 19:48
return profiles.filter(
p =>
![
AlterationTypeConstants.MRNA_EXPRESSION,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@inodb i think it's best to exclude rather than include because if we introduce new profiles they will inadvertantly be excluded. Of course, this is temporary. If we're serious about this we actually need to model this in data.

Copy link
Member

Choose a reason for hiding this comment

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

sounds good

AlterationTypeConstants.MICRO_RNA_EXPRESSION,
AlterationTypeConstants.PROTEIN_LEVEL,
AlterationTypeConstants.RNA_EXPRESSION,
AlterationTypeConstants.MICRO_RNA_EXPRESSION,
Copy link
Member

Choose a reason for hiding this comment

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

the last AlterationTypeConstants.MICRO_RNA_EXPRESSION is duplicate

src/pages/resultsView/ResultsViewPageStore.ts Outdated Show resolved Hide resolved
Co-authored-by: Onur Sumer <s.onur.sumer@gmail.com>
@alisman alisman merged commit 276f385 into cBioPortal:master Nov 15, 2022
@alisman alisman deleted the noExpression branch November 15, 2022 00:44
dippindots pushed a commit to dippindots/cbioportal-frontend that referenced this pull request Feb 21, 2023
…tal#4409)

* Do not allow expression profiles in results view unless studies are "comparable"

* Fix if/else condition

Co-authored-by: Onur Sumer <s.onur.sumer@gmail.com>

Co-authored-by: Onur Sumer <s.onur.sumer@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants