how to perform pairwise correlation coefficent in r program for gene expression matrix
2
0
Entering edit mode
7.5 years ago

this is my data structure , columns are samples and rows are genes, i want to perform pearson correlation coeffienct b/w gene1&2, gene2&3,gene 3&4. i have total 108 genes from 57 samples

gene1   6.121202675 6.209983663 6.376870346 6.276983925
gene2   8.745523095 8.35388773  8.673598036 9.008937525
gene3   6.613542441 6.275194829 6.884437022 6.672146012
gene4   9.632601412 10.02780565 9.555238552 8.222576388
RNA-Seq ChIP-Seq R genome next-gen • 2.4k views
ADD COMMENT
2
Entering edit mode
7.5 years ago

help(cor), note that you'll need to transpose the matrix, since it compares columns.

ADD COMMENT
2
Entering edit mode
7.4 years ago
Chirag Parsania ★ 2.0k

ggpairs(log2(data+0.01)) can give you nice representation of your data as well.

~Chirag.

ADD COMMENT

Login before adding your answer.

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