-
Notifications
You must be signed in to change notification settings - Fork 318
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
Study view km plot optimization #4520
Conversation
4e9a4b0
to
b4d52a0
Compare
Thanks @dippindots - this looks great! Maybe a few tweaks to the text and ordering here:
It might make sense to highlight the entire bin when mousing over (so one horizontal line). Currently, it highlights points and it's a little hard to see that it's showing an interval: Additional comments from Niki:
|
} | ||
|
||
export function getLineDataFromScatterData(data: ScatterData[]): any[] { | ||
let chartData: any[] = []; |
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 it would be simple enough to type this.
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.
@dippindots can we type this?
@dippindots lets bring this up at standup today to figure out what's next. |
Fix cBioPortal/cbioportal#9988
Fix cBioPortal/cbioportal#8378
Changes proposed in this pull request:
Keep old implementation for comparison page/comparison tab survival plot
Only apply binning when the sample size is larger than the threshold (default
![image](https://user-images.githubusercontent.com/15748980/235279253-77b8ca79-e15a-41ea-aaba-f6cfa006fb83.png)
1000
, we can change this into a configurable value later)Logic for binning: flooring month to integer (e.g. flooring
100.2
or100.4
to100
) and count any events or censored data that get aggregatedAdd information into tooltip to show the count for events and censored
Other comments:
Time of event: 46-47 months
->Events during [46,47) months
. Use brackets/parenthesis notation here depending on how you are binning: https://stackoverflow.com/a/4396303Patients with an event:
Censored patients:
% event free at end of months (46 months)
->% event free at interval end:
Patients at risk at interval end:
Follow-up ticket:
cBioPortal/icebox#483