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

Error trying to run HeatmapAnnotation() #913

Closed
Pio82 opened this issue Apr 29, 2022 · 2 comments
Closed

Error trying to run HeatmapAnnotation() #913

Pio82 opened this issue Apr 29, 2022 · 2 comments

Comments

@Pio82
Copy link

Pio82 commented Apr 29, 2022

I'm attempting to run a block for HeatmapAnnotation. I'm getting the error:

"Error in col2rgb(colors, alpha = TRUE : invalid RGB specification"
I've copied the code below:

ha_column = HeatmapAnnotation(df = df,
col = list(Diagnosis = c("Uterine endometrial" = "#DDCC77F", "Ovarian endometrioid" = "#0F7554", "Ovarian mucinous" = "#44AA99", "Colorectal mucinous" = "#882255",
"Pancreas mucinous" = "#AA4499",
"Stomach mucinous" = "#D695D0"),

Tumor.Normal = c("N" = "grey", "T" = "black"),

study = c("cgid" = "#332288", "tcga" = "#BD9AF7")))

I'm running rstudio 2022.02.2 Build 485 with R 4.2 on an Apple Mac Pro running macOS Monterey version 12.3.1.

Please advise what the problem might be. Many thanks in advance.

@RamRS
Copy link

RamRS commented May 2, 2022

Cross-posted and solved on Bioinfo SE: https://bioinformatics.stackexchange.com/q/19022/650

@jokergoo
Copy link
Owner

The color code "#DDCC77F" should be either "#DDCC77FF" or "#DDCC77".

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

3 participants