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

Add higher granularity CNA charts on Study View #4706

Merged
merged 12 commits into from
Sep 1, 2023

Conversation

7xuanlu
Copy link
Contributor

@7xuanlu 7xuanlu commented Aug 21, 2023

Fix cBioPortal/cbioportal#10257 and part of cBioPortal/cbioportal#6759

  • Adding CNA discrete profile to gene specific charts dropdown
  • Main piece - plot visibility and filtering
  • Necessary changes to show user selection
  • Download functionality
  • Showing it in manage Charts
  • Check if comparison is working (excluding group NA for the time being)
  • Changes to include it in Virtual study description and Group name
  • Saving and fetching form user preferences

@7xuanlu 7xuanlu requested a review from kalletlak August 21, 2023 21:24
@7xuanlu 7xuanlu self-assigned this Aug 21, 2023
@7xuanlu 7xuanlu force-pushed the discrete-molecular-data-counts branch from f318eb2 to 0665599 Compare August 24, 2023 15:01
src/pages/studyView/StudyViewPageStore.ts Outdated Show resolved Hide resolved
src/pages/studyView/StudyViewPageStore.ts Outdated Show resolved Hide resolved
src/pages/studyView/StudyViewPageStore.ts Outdated Show resolved Hide resolved
src/pages/studyView/StudyViewPageStore.ts Show resolved Hide resolved
src/pages/studyView/StudyViewPageStore.ts Outdated Show resolved Hide resolved
@kalletlak kalletlak marked this pull request as ready for review August 24, 2023 20:50
@@ -204,6 +213,20 @@ export class StudySummaryTab extends React.Component<
props.promise = this.store.getGenericAssayChartDataCount(
chartMeta
);
} else if (
Copy link
Collaborator

Choose a reason for hiding this comment

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

weird that gene specific chart should be exclusive with, say "generic assay chart". Perhaps it's just semantics but we should improve the name then.

Copy link
Member

Choose a reason for hiding this comment

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

We have another if block for generic assay chart

Copy link
Collaborator

Choose a reason for hiding this comment

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

how much effort would it take to refactor/break up this switch statement (which then has the internal if else statement. it's just way too long and complicated.

Copy link
Member

Choose a reason for hiding this comment

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

This will take time as it impacts all type of charts. I prefer to it as part of another PR.

@@ -5816,12 +5933,12 @@ export class StudyViewPageStore
)
.uniq()
.value();
if (newChart.datatype === 'STRING') {
if (newChart.datatype === DataType.STRING) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

@alisman
Copy link
Collaborator

alisman commented Aug 30, 2023

@kalletlak Found one little issue with mapping CNA to label values. Probably painful : (

image

@kalletlak
Copy link
Member

Details

It is resolved now

@@ -325,6 +348,20 @@ export class StudySummaryTab extends React.Component<
props.promise = this.store.getGenericAssayChartDataCount(
chartMeta
);
} else if (
Copy link
Collaborator

Choose a reason for hiding this comment

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

when a chart type has subtypes (requiring these if/else statements), we should detect subtype here and then pass to helper function, which will use another switch statement or lookup table

{
    [chartSubType]: (...)=>props
}

@inodb inodb merged commit f6077d8 into cBioPortal:master Sep 1, 2023
@inodb inodb changed the title Discrete molecular data counts Add gene specific CNA charts on Study View Sep 5, 2023
@inodb inodb changed the title Add gene specific CNA charts on Study View Add higher granularity CNA charts on Study View Sep 5, 2023
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.

Adding CNA discrete gene charts to study view
5 participants