-
Notifications
You must be signed in to change notification settings - Fork 272
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
Replace legacy tracks with IGV #4188
Conversation
352912f
to
38c875e
Compare
3c33cc4
to
554e750
Compare
c2c16e8
to
6b11b77
Compare
e5c176d
to
75c40f9
Compare
return ( | ||
this.props.containerWidth - (this.shouldShowVAFPlot() ? 140 : 40) | ||
); | ||
} | ||
|
||
private computeMutationFrequencyBySample( |
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.
moved to GenomicOverviewUtils
@@ -198,4 +200,236 @@ describe('GenomicOverviewUtils', () => { | |||
); | |||
}); | |||
}); | |||
|
|||
describe('computeMutationFrequencyBySample()', () => { |
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.
tests moved from GenomicOverview.spec.tsx
@@ -92,3 +95,32 @@ export function sampleIdToIconData( | |||
|
|||
return lookupTable; | |||
} | |||
|
|||
export function computeMutationFrequencyBySample( |
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.
moved from GenomicOverview.tsx
75c40f9
to
9f92184
Compare
9f92184
to
8484bcd
Compare
@@ -118,6 +385,12 @@ export default class GenomicOverview extends React.Component< | |||
); | |||
} | |||
|
|||
componentWillReceiveProps(nextProps: Readonly<IGenomicOverviewProps>) { |
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 so it doesn't render if locus hasn't actually changed?
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.
Right. This is to prevent resetting zoom state on window resize. Hopefully this didn't introduce some unknown side effects.
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.
We should put a comment on this to explain
bffc44d
to
1c996f4
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.
Looks awesome! I think the main thing I noticed is:
- There's a short time where the component just shows up as blank. I'm guessing this is in the IGV component itself so might be hard to fix. It happens both when loading the page the first time and when clicking on a mutation
- There's a lot of whitespace: (1) between the first track and the chromosome track and (2) the chromosome track has a lot. Old representation was better about space use. Not sure if we can tweak this much more
1c996f4
to
f63865d
Compare
4904141
to
bb3433b
Compare
4ce2eff
to
2d9f30d
Compare
2d9f30d
to
bec913f
Compare
Looks like sample mutation data do not always get sorted properly. e2e tests actually caught this problem. Here is an example where sample mutation data don't match the sample order: https://deploy-preview-4188--cbioportalfrontend.netlify.app/patient?caseId=P04&studyId=lgg_ucsf_2014. Click on any mutation and you will see that sample id displayed in the tooltip doesn't match the sample icon/number shown on the left for that specific sample. This needs further debugging. The problem might be in the
We should not merge the PR before fixing the sorting issue. |
The sort function seems working fine. Looks like IGV does not always keep the sample order intact. Need to investigate further to see if it is possible to force the sample order in IGV. |
Looks like this is a know igv.js issue. I have left a comment there as well. Let's see if we can get a quick fix. igvteam/igv.js#1480 (comment) |
bec913f
to
2acba50
Compare
Sorting issue should be fixed now. |
2acba50
to
a953ac8
Compare
a953ac8
to
97e580c
Compare
65d8cbb
to
dc34ffa
Compare
Update screenshots Fix vaf tests Update circleci cache keys Fix another IGV track test Update cn segments tab screenshot
Fix cBioPortal/cbioportal#9311
Need to fix these before merging:
Should point to https://github.com/cBioPortal/igv.js fork instead of https://github.com/onursumer/igv.jsUse npm package directlyChecks