What I will do is as following.

heat<- heatmap.2(ht,Rowv=TRUE,Colv=...., main="297 genes with high fold
change")
rownames(ht)[heat$rowInd]

>
This should give you the gene list from the bottom to the up.

Cheers,
Di


 b$rowInd[1:20]
 [1]  12   6  36  26  22  11   5   1  42   7  27  64  84  97 100  51  79
65  76  87
> lab.HSA0[ b$rowInd[1:20]]




On Fri, Jan 22, 2010 at 4:20 AM, Juan Lin <julin@aecom.yu.edu> wrote:

> Hi dear all
>
> I am using the heatmap.2 function in the gplots package to draw a heatmap
> of
> 297 gene list. The plot looks very nice. But  since the rows(genes) were
> reordered along with the dendrogram, is there any way to output this
> reordered gene list from heatmap.2()?
>
>
>
> The code I used is as below:
>
>
>
> heatmap.2(ht,Rowv=TRUE,Colv=FALSE,
>
> dendrogram= "row",
>
> labRow=rownames(ht),
>
> distfun = dist,
>
> hclustfun = hclust,
>
> key=TRUE,
>
> keysize=1,
>
> lhei=c(0.5,4.5),
>
> trace="none",
>
> density.info="none",
>
> margins=c(3,8),
>
> col=rev(redgreen(256)),
>
> main="297 genes with high fold change"
>
> )
>
> Many thanks!
>
> Juan
>
> -----------------------------
>
> Juan Lin
>
> Faculty Associate
>
> Department of Epidemiology and Population Health
>
> Albert Einstein College of Medicine
>
>
>
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
>

	[[alternative HTML version deleted]]

