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

add gene annotation for Heatmap #13

Open
zh-zhang1984 opened this issue Aug 9, 2021 · 1 comment
Open

add gene annotation for Heatmap #13

zh-zhang1984 opened this issue Aug 9, 2021 · 1 comment
Assignees
Labels
Feature New feature or request

Comments

@zh-zhang1984
Copy link

Thank you for your excellent package for single cell visualization, However I encounter a feature that is not included in the package for plot_heatmap function. Is that possible to added annotation bar for genes (row annotation).

Screen Shot 2021-08-09 at 8 18 19 AM

@zh-zhang1984 zh-zhang1984 added the Feature New feature or request label Aug 9, 2021
@zh-zhang1984
Copy link
Author

I think the returned object of plot_heatmap is a

[1] "HeatmapList"
attr(,"package")
[1] "ComplexHeatmap" 

and thus I want to use the following code to add row annotation:

plot_heatmap(
  dataset = Neutrophil_seurat, 
  markers = BiocMarker$GeneSym,
  sort_var = c("Neutrophil_Type","Condition"),
  anno_var = c("Neutrophil_Type","Condition"),
  anno_colors = list(
    "Set2",# RColorBrewer palette
    c("red","orange","yellow","purple","blue","green"), # color vector
                     "Reds",
    c("blue","white","red"), # Three-color gradient
    "Greens"))+rowAnnotation(BiocFun=rowAnnot)
 Error: The heatmap object should not be processed by draw().

But it reported error. Could you provide some hints to solve the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants