Concatenate the rownames in heat map
0
0
Entering edit mode
9.2 years ago

i need help please

i m trying to create a heat map of deferentially expressed genes i have something like this:

gene Id        Function

cuff.121        NAC100

cuff.122        peroxidase 44

cuff.123        defensin 1

I want to put the 2 columns (gene Id and function) as the rowname, i tried these commands however the final look was not good enough (so compact) and i wanted to have 2 separated blocks for the rowname

r <-read.csv("response to stimulus.csv",header = T,sep = ";",dec = ".")

R1<-r[,1]

R2<-r[,2]

rnames<-paste (S1, S2, sep = "  ")

mat_data <- data.matrix(r[,4:ncol(r)])

rownames(mat_data) <-rnames

my_dist <- daisy(mat_data, metric="euclidean", stand=FALSE) 

nwk_tree <- as.phylo(hclust(my_dist, method="complete"), hang =-1)
RNA-Seq • 1.6k views
ADD COMMENT
0
Entering edit mode

How does it look like and what do you want? Do you have examples?

ADD REPLY

Login before adding your answer.

Traffic: 4181 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