Question: gene names in "Heatmap" function
0
gravatar for et.kugler
2.2 years ago by
et.kugler0
et.kugler0 wrote:

Hi, I am using "ComplexHeatmap" package for clustering differentially expressed genes. I'm building a matrix from my dataset without the names of the genes since it's a character and not numeric variable. After the heat map is created, how do I add the names of the genes??

Thanks very much

complexheatmap • 798 views
ADD COMMENTlink written 2.2 years ago by et.kugler0
2

Instead of removing your gene names directly from your matrix, try to make row.names of these gene names before removing them.

e.g.,

row.names(matrix) <- matrix$gene.names

Then remove the gene names column.

ADD REPLYlink modified 2.2 years ago • written 2.2 years ago by Benn6.9k

if you have a matrix of DEGs with expression values in the columns just load it in R with rownames=1 then the gene names will be your row names and you will be able to have them in your heatmap.

ADD REPLYlink written 2.2 years ago by ivivek_ngs4.8k
Please log in to add an answer.

Help
Access

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