Question: Add Annotations as sidecolors in Heatmap
gravatar for biohacker_tobe
6 months ago by
biohacker_tobe40 wrote:

I have two seperate dataframes, from one of these I have already created a heatmap from the first dataframe, however I want to add a sidebar that indicates the type of family that a gene is actually associated to it.

Dataframe 1

BGC1     BGC2    Distance
BGC31     BGC34     0.6
BGC34     BGC45     0.7
BGC34     BGC53     0.2
BGC53     BGC31     0.8


BGC1     Association  
BGC31     Skin Cancer
BGC34     Skin Cancer     
BGC34     Lung Cancer     
BGC53     Liver Cancer

I'm looking to create something like this where each color represents a type of gene cluster associated to a specific gene class:

p3 <- heatmap.3(comat, scale = "none", trace = "none", col = color,  main="GCF Co-Occurrence Map"
                ,lhei=c(0.5,1),  keysize=0.5, cexRow = 0.60, cexCol = 0.65)

enter image description here

ggplot2 R • 128 views
ADD COMMENTlink modified 6 months ago • written 6 months ago by biohacker_tobe40

There is a recent awesome package for this by Guangchuang Yu to do this. Check here.

ADD REPLYlink written 6 months ago by venu6.7k

hey! this unfortunately does not allow me to map back my annotated gene clusters

ADD REPLYlink written 6 months ago by biohacker_tobe40
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2276 users visited in the last hour