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

annotations doesnt show and no error message #87

Open
mariamaseng opened this issue Apr 10, 2022 · 1 comment
Open

annotations doesnt show and no error message #87

mariamaseng opened this issue Apr 10, 2022 · 1 comment

Comments

@mariamaseng
Copy link

Thanks for an amazing package!

I want to annotate my heatmap, and are doing it this way:
anno = t(data.frame(df[,c("disease")]))
table(anno) #check that it is successfull and it is

ph = pheatmap(df, annotation = anno)
ph

My problem is that the annotations doesn't show and I am not getting any error message. Really appreciate help with this!

@KeelyDulmage
Copy link

Ah! I'm also having this problem! I've made hundreds of pheatmaps in my day with no issues so I feel a little crazy.
I checked that my heatmap column IDs are identical to my column annotation df rownames, but I don't see any annotation boxes on the figure.

Strangely, if I transpose my annotation df I don't get any errors either, which I definitely should!

p1 <- pheatmap(aanormdb3, color = viridis(15), annnotation_col = t(subsanno), show_rownames = F ) p1

Using 1.01.12 under R 4.2.0. Rstudio 2022.02.2 Build 485

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

2 participants