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

Fix bugs in survival types table and add median survival columns #3452

Merged
merged 5 commits into from
Oct 16, 2020

Conversation

adamabeshouse
Copy link
Contributor

@adamabeshouse adamabeshouse commented Oct 12, 2020

numPatients: _.sumBy(
patientSurvivals[prefix],
s =>
+(
Copy link
Collaborator

Choose a reason for hiding this comment

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

what does that plus operator do?

Copy link
Collaborator

Choose a reason for hiding this comment

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

seems weird adding a boolean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

plus converts true to 1 and false to 0

Copy link
Collaborator

Choose a reason for hiding this comment

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

I feel like we should avoid this kind of wizardry/coercion in favor of + (s ? 1 : 0)

@adamabeshouse adamabeshouse changed the title Fix bugs in survival types table Fix bugs in survival types table and add median survival columns Oct 13, 2020
@adamabeshouse
Copy link
Contributor Author

@cBioPortal/product could you please take a look at this one?

@jjgao
Copy link
Member

jjgao commented Oct 15, 2020

The table overlaps with the plot when there are many columns. I am not sure how to address this though...

image

@alisman
Copy link
Collaborator

alisman commented Oct 15, 2020

@jjgao i think the only thing to do is to make the table horizontally scrollable. that is if we don't want to push the chart rightward. which i don't think we want to do. that raises our favorite issue of whether scrollbar can be on bottom (runs risk that user isn't aware of hidden columns)

Adam Abeshouse added 5 commits October 16, 2020 10:48
Signed-off-by: Adam Abeshouse <abeshoua@mskcc.org>
Signed-off-by: Adam Abeshouse <abeshoua@mskcc.org>
Signed-off-by: Adam Abeshouse <abeshoua@mskcc.org>
Signed-off-by: Adam Abeshouse <abeshoua@mskcc.org>
Signed-off-by: Adam Abeshouse <abeshoua@mskcc.org>
@adamabeshouse adamabeshouse merged commit 996b10f into cBioPortal:master Oct 16, 2020
@adamabeshouse adamabeshouse deleted the 7952-surv-probs branch October 16, 2020 19:10
@inodb inodb added the bug label Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants