-
Notifications
You must be signed in to change notification settings - Fork 315
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
Gene coverage filter in Patient View mutation and CNA tables #2717
Gene coverage filter in Patient View mutation and CNA tables #2717
Conversation
f2ded70
to
a696a43
Compare
9f519af
to
900f8ef
Compare
src/pages/patientView/clinicalInformation/PatientViewPageStore.ts
Outdated
Show resolved
Hide resolved
a696a43
to
273f5cd
Compare
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.
nice!
2231201
to
d539713
Compare
273f5cd
to
b8c5b84
Compare
d539713
to
f237ced
Compare
814b10f
to
9b10cea
Compare
As discussed in PR #2746 I added the conditional rendering of the filter menu icon.
|
@@ -0,0 +1,19 @@ | |||
import SampleManager from "./SampleManager"; |
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.
seems like these first two imports are not used
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.
Unused imports removed.
sampleToGenePanelId:{[sampleId:string]:string}, | ||
genePanelIdToEntrezGeneIds:{[genePanelId:string]:number[]} | ||
):boolean { | ||
return !! _.find(entrezGeneIds, entrezGeneId => { |
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.
_.some is a little easier to read and returns boolean
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.
Good point. Updated code.
1bd1a9d
to
3ee4a3c
Compare
df1ec87
to
c36136d
Compare
c36136d
to
5ebb68e
Compare
5ebb68e
to
110051c
Compare
110051c
to
665c28e
Compare
85122e6
to
14cb671
Compare
@@ -0,0 +1,5 @@ | |||
div.lazy-mobx-table { |
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.
why do we do this?
@@ -226,6 +227,34 @@ export default class PatientViewPage extends React.Component<IPatientViewPagePro | |||
} | |||
}); | |||
|
|||
@autobind |
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.
should be tagged @action since it mutates
@@ -226,6 +227,34 @@ export default class PatientViewPage extends React.Component<IPatientViewPagePro | |||
} | |||
}); | |||
|
|||
@autobind | |||
private onFilterGenesMutationTable(option:GeneFilterOption):void { |
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.
} | ||
|
||
@autobind | ||
private onFilterGenesCopyNumberTable(option:GeneFilterOption):void { |
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.
@@ -843,6 +853,24 @@ export class PatientViewPageStore { | |||
return mergeMutationsIncludingUncalled(this.mutationData, this.uncalledMutationData); | |||
} | |||
|
|||
@computed get mergedMutationDataIncludingUncalledFilteredByGene():Mutation[][] { | |||
if (this.mutationTableGeneFilterOption === GeneFilterOption.ALL_SAMPLES) { |
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.
could use a comment
Note: this branch builds on top of branch
patientview_genepanel_table_integration
and the PR is to this branch for the reason of reviewing the code. This PR is therefore in draft mode.What? Why?
As defined in RFC45 information on gene panels will be integrated in the PatientView component. Central problem with gene panels in patient view is the ambiguous interpretation of missing mutations in the mutation and copynumber tables. In these tables mutations in samples are represented as numbered sample icons in respective rows of each table. Absense of mutations and CNA's in the tables is indicated by:
There is a use case where the user is only interested in investigating only those mutations that were profiled in all samples of a patient (has no '?' icons). At the moment the user has to idenitfy these mutations by eye among the other mutation rows in the table.
Fix
Note: mutation and CNA genomic tracks will be updated depending on the gene filter setting. This feature will be implemented in a followup PR.
Preview