-
Notifications
You must be signed in to change notification settings - Fork 231
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
Fix bugs in survival types table and add median survival columns #3452
Conversation
numPatients: _.sumBy( | ||
patientSurvivals[prefix], | ||
s => | ||
+( |
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.
what does that plus operator do?
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 weird adding a 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.
plus converts true to 1 and false to 0
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 feel like we should avoid this kind of wizardry/coercion in favor of + (s ? 1 : 0)
1ea8866
to
f0cf29d
Compare
@cBioPortal/product could you please take a look at this one? |
f0cf29d
to
b0ff2ba
Compare
@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) |
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>
b0ff2ba
to
10d96c8
Compare
Fixes cBioPortal/cbioportal#7952
Link1
Link2