Hi All,
I have made an heat map in R using heatmap function. The commands that I have used is:
d<-read.table("table.txt", header=T)
row.names(d)<-d$ID
d<-d[,2:8]
dm<-data.matrix(d)
pvals <- apply(dm, 1, function(x) wilcox.test(x~c(rep(0,5), rep(1,10)))$p.value)
heatmap(dm[pvals<0.05,])
I get a nice heatmap where the data that is only differential between the two groups at a pvalue of 0.01 is plotted.
Now the thing is, how can I extract the order of the rows IDs in which they have been plotted.
The ones that are high (blue) in one and low(red) in another one.
Thank you
I did try the code but im not getting the individual clusters rather im getting total list of all the genes ,is it i have to define the no of k in the pheatmap code ?
Im getting output but which one belongs to which cluster how do I interpret from that im getting something like this