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

Set a limit for whole genome copy number segment viewer #3715

Merged
merged 1 commit into from Apr 23, 2021

Conversation

onursumer
Copy link
Member

@@ -99,41 +121,57 @@ export default class CNSegments extends React.Component<
return study ? study.referenceGenome : DEFAULT_GENOME;
}

get selectionInfo() {
if (!this.isSampleCountWithinThreshold) {
return 'Too many samples for copy number segmentation view, make a selection on Summary tab first.';
Copy link
Member

@inodb inodb Apr 20, 2021

Choose a reason for hiding this comment

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

Suggested change
return 'Too many samples for copy number segmentation view, make a selection on Summary tab first.';
return `Too many samples (>${this.isSampleCountWithinThreshold}) for copy number segmentation view, make a selection on Summary tab first.`;

maybe good to indicate how many are too many

Copy link
Member

@inodb inodb left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM - one minor comment re the message of too many samples

@inodb inodb added the performance This PR is related to a performance issue label Apr 23, 2021
@inodb inodb merged commit e0464ae into cBioPortal:master Apr 23, 2021
@onursumer onursumer deleted the cn-segments-cap branch July 2, 2021 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-product-review performance This PR is related to a performance issue
Projects
None yet
2 participants