-
Notifications
You must be signed in to change notification settings - Fork 307
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
Add property to define custom sample type colors in patient view #4704
Add property to define custom sample type colors in patient view #4704
Conversation
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.
is there a way to generate these hex codes and types instead of hard-coding a fixed amount?
scss has methods to merge and alter colors, we could use those to create a scale or we could create a js function that creates the colors based on the number of custom sample types there are? |
As discussed in the standup yesterday, the colors can now be configured along with the custom sample types in a backend. See example in PR description |
2fde18f
to
3890eeb
Compare
5faae30
to
b546134
Compare
@BasLee @pvannierop into and I think that the costum color configuration should always win out for any sample type, whether existing or custom. E.g. if I configure primary:yellow, it should override the default for that type (it doesn't now). The name of the configuration property |
|
https://www.cbioportal.org/patient?studyId=msk_impact_2017&caseId=P-0000015 Doesn't respect default for type=met here (should be red) |
230f222
to
a247933
Compare
Fixed in a247933 |
a247933
to
8be8177
Compare
Extend the legend colors of sample types in the patient view by configuring custom sample types with a backend property.
Depends on: cBioPortal/cbioportal#10336.
Example of a patient view timeline with a sample of type ctDNA
Configure custom sample types and their colors in the patient view using a new property
skin_patient_view_custom_sample_types
like: