How can I get Heatmap using dChip clustering..which is nice& easy to see patterns
1
0
Entering edit mode
@michael-watson-iah-c-378
Last seen 10.2 years ago
Hi Saurin I may be wrong, but it looks like your code calculates the euclidean distance between rows of 1-cor(), which is itself a distance matrix of sorts. Try: row.dist <- as.dist(1 - cor(t(esetSub2X))) col.dist <- as.dist(1 - cor(esetSub2X)) heatmap(esetSub2X, Colv=as.dendrogram(hclust(col.dist, method="average")), Rowv=as.dendrogram(hclust(row.dist, method="average"))) Mick -----Original Message----- From: Saurin Jani [mailto:saurin_jani@yahoo.com] Sent: 15 November 2004 23:28 To: Bioconductor Bioconductor Subject: [BioC] How can I get Heatmap using dChip clustering..which is nice& easy to see patterns Hi , How can I get dChip clustering on heatmap?..which is nice & easy to see patterns. I am using 1- cor(eset) but somehow its not working I am still getting diff. kind of clustering dendrogram. > d <- dist((1 - cor(esetSub2X)),method = "euclidean"); > dCol <- dist(t((1- cor(esetSub2X))),method = "euclidean"); > heatmap(esetSub2X,Colv= as.dendrogram(hclust(d,method = "complete")),Rowv = NA,col = rbg,cexRow = 1,cexCol = 1); Am I missing something? Any heatmap clustering is helpful. Thank you, Saurin __________________________________ The all-new My Yahoo! - Get yours free! _______________________________________________ Bioconductor mailing list Bioconductor@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/bioconductor
Clustering Clustering • 977 views
ADD COMMENT
0
Entering edit mode
SAURIN ★ 1.1k
@saurin-799
Last seen 10.2 years ago
Hi Mike, Thanks a lot, it works great now. I still have one quick question..can we display range of colors or side barrs or value on bottom of heatmap bar? thanks again, Saurin --- "michael watson (IAH-C)" <michael.watson@bbsrc.ac.uk> wrote: > Hi Saurin > > I may be wrong, but it looks like your code > calculates the euclidean > distance between rows of 1-cor(), which is itself a > distance matrix of > sorts. Try: > > row.dist <- as.dist(1 - cor(t(esetSub2X))) > col.dist <- as.dist(1 - cor(esetSub2X)) > heatmap(esetSub2X, > Colv=as.dendrogram(hclust(col.dist, > method="average")), > Rowv=as.dendrogram(hclust(row.dist, > method="average"))) > > Mick > > -----Original Message----- > From: Saurin Jani [mailto:saurin_jani@yahoo.com] > Sent: 15 November 2004 23:28 > To: Bioconductor Bioconductor > Subject: [BioC] How can I get Heatmap using dChip > clustering..which is > nice& easy to see patterns > > > Hi , > > How can I get dChip clustering on heatmap?..which is > nice & easy to see patterns. > > I am using 1- cor(eset) but somehow its not working > I > am still getting diff. kind of clustering > dendrogram. > > > d <- dist((1 - cor(esetSub2X)),method = > "euclidean"); > > dCol <- dist(t((1- cor(esetSub2X))),method = > "euclidean"); > > > heatmap(esetSub2X,Colv= > as.dendrogram(hclust(d,method = "complete")),Rowv = > NA,col = rbg,cexRow = 1,cexCol = 1); > > > Am I missing something? > > Any heatmap clustering is helpful. > > Thank you, > Saurin > > > > __________________________________ > > The all-new My Yahoo! - Get yours free! > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > __________________________________ Meet the all-new My Yahoo! - Try it today!
ADD COMMENT

Login before adding your answer.

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