This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to perform pairwise correlation coefficent in r program for gene expression matrix

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 answers

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

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

~Chirag.

Log in to answer this question.