Correlating all pairs of genes in a gene expression matrix?
1
0
Entering edit mode
Dan Bolser ▴ 40
@dan-bolser-3089
Last seen 9.6 years ago
Hi, Once I have loaded an x by y gene expression matrix (x genes by y time points), how do I get a matrix of gene-gene correlation? I'm looking for a speedy method rather than the method with the latest greatest clustering algorithm... although the latter would be great ;-) Thanks for any help, Dan. -- Chat to R users in your area now! irc://irc.freenode.net/#R [[alternative HTML version deleted]]
Clustering Clustering • 823 views
ADD COMMENT
0
Entering edit mode
Thomas Girke ★ 1.7k
@thomas-girke-993
Last seen 7 days ago
United States
You can use the cor() function like this: ## Some example data set y <- matrix(rnorm(50), 10, 5, dimnames=list(paste("g", 1:10, sep=""), paste("t", 1:5, sep=""))) ## Create correlation matrix c <- cor(t(y), method="spearman"); ## Convert to distances d <- as.dist(1-c) On Thu, May 07, 2009 at 05:27:21PM +0100, Dan Bolser wrote: > Hi, > > Once I have loaded an x by y gene expression matrix (x genes by y time > points), how do I get a matrix of gene-gene correlation? > > I'm looking for a speedy method rather than the method with the latest > greatest clustering algorithm... although the latter would be great ;-) > > > Thanks for any help, > Dan. > > > -- > Chat to R users in your area now! > irc://irc.freenode.net/#R > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor >
ADD COMMENT

Login before adding your answer.

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