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

How to define colors for clinical features that use continuous values #1053

Open
PoisonAlien opened this issue Sep 23, 2024 Discussed in #1051 · 1 comment
Open

How to define colors for clinical features that use continuous values #1053

PoisonAlien opened this issue Sep 23, 2024 Discussed in #1051 · 1 comment

Comments

@PoisonAlien
Copy link
Owner

Discussed in #1051

Originally posted by juferban September 21, 2024
Hi,

I tried to add clinicalFeatures to my oncoplot that are continuous variables. While I manage to do it, I cannot figure out how to change the color scheme. I tried using the numericAnnoCol and assign a different scheme name but none of the approaches I tried seem to affect the color shceme used
I tried using a list that has a key = value pair where the key is the name of the clinicalFeature and the value is the name of the color scheme to use. I tried different ways to add the color scheme name, like using the name it self or returning the rColorBrewer scheme object.
The only way I managed to use the colors I want was by precomputing the colors and adding my precomputed clinicalFeature_color column as my clinical Feature. This approach work fine with the exception that the legend now interpret the data as discrete.

Any suggestion on how to apply my desired color scheme to the clinicalFeature when they values are numeric?
The annotationColor variable works fine for the discrete variables.

Thanks

@PoisonAlien
Copy link
Owner Author

Hi,

Thanks for the issue. I am looking into it and I will update it soon.

PoisonAlien added a commit that referenced this issue Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant