Entering edit mode
7.0 years ago
et.kugler
•
0
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
Instead of removing your gene names directly from your matrix, try to make row.names of these gene names before removing them.
e.g.,
Then remove the gene names column.
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.