Heatmap with custom gene labels annotated on the rows
1
0
Entering edit mode
5.3 years ago

Hi friends,

I would like to generate a heatmap something similar to the below image with custom genes. I am using heatmap.2 function in R.

What parameters should I play with to get the labels as in the image.

Heatmap-with-custom-annotation

differential-gene-expression RNAseq heatmap • 14k views
ADD COMMENT
1
Entering edit mode

Have you tried setting the parameter labRow to the value of a vector of rowNames where it contains the names?

..., labRow = rowNames, ...

https://www.rdocumentation.org/packages/gplots/versions/3.0.1.1/topics/heatmap.2

ADD REPLY
0
Entering edit mode

Thanks, Viz. As you mentioned I gave the specific gene names on the rowNames variable and assigned it to labRow. It is printing only those genes. But the gene names are overlapped. I am trying to fix it and it would be great to have gene name protrude with an arrow.

ADD REPLY
3
Entering edit mode
5.3 years ago
ATpoint 85k

I would check out ComplexHeatmap (the 3rd plot at the given link). Yes, it will be work to get your head around the concept of the package but it is well worth it. There is by best knowledge no heatmap package that is more customizable or comprehensive than this one.

ADD COMMENT
0
Entering edit mode

I am checking out the complex heatmap links. Looks interesting. Thanks for sharing the useful link.

ADD REPLY

Login before adding your answer.

Traffic: 2233 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6