-
Notifications
You must be signed in to change notification settings - Fork 318
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
Lollipop plots in group comparison page shows mutations for two or more groups #4392
Lollipop plots in group comparison page shows mutations for two or more groups #4392
Conversation
20b4ea6
to
c2c5fe2
Compare
daf9f10
to
7f2cfe9
Compare
packages/cbioportal-frontend-commons/src/components/SVGAxis.tsx
Outdated
Show resolved
Hide resolved
packages/cbioportal-frontend-commons/src/components/SVGAxis.tsx
Outdated
Show resolved
Hide resolved
packages/react-mutation-mapper/src/component/lollipopPlot/LollipopPlotNoTooltip.tsx
Outdated
Show resolved
Hide resolved
}); | ||
|
||
readonly profiledSamplesCount = remoteData({ | ||
await: () => [this.allSamples, this.coverageInformation], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@inodb @onursumer i don't understand why the denominator is all samples here. that's all samples in ALL studies which are present here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the idea here is to display the frequency of this mutation in the entire cohort. So, we need to find all samples profiled for this gene.
packages/react-mutation-mapper/src/component/lollipopPlot/LollipopPlotNoTooltip.tsx
Outdated
Show resolved
Hide resolved
src/pages/staticPages/tools/mutationMapper/MutationMapperToolStore.ts
Outdated
Show resolved
Hide resolved
@@ -1060,6 +1068,24 @@ export default abstract class ComparisonStore | |||
}, | |||
}); | |||
|
|||
@computed get genesWithMaxFrequency(): AlterationEnrichmentRow[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is taken from another incomplete PR, but I think the function name is not ideal. We are returning an array of AlterationEnrichmentRow
and calling it genesWithMaxFrequency
Implement issue cBioPortal/GSoC#88