Entering edit mode
5.9 years ago
Sam
▴
150
Hello
for gene-gene pearson correlation analysis with p-value I used this code but it gave me the correlation between samples.
any help about this?
correlation_pvalueDat1=corAndPvalue(data,method="pearson",use="p")
my data format :
Geneid 1-FPKM 2-FPKM 3-FPKM 1-T-GB3-FPKM 1-T-GM58-FPKM 1-T-MB43-FPKM 34-O-GB3-FPKM 34-O-GM58-FPKM 34-O-MB43-FPKM 34-T-GB3-FPKM 34-T-GM58-FPKM 34-T-MB43-FPKM
A00218.v2.0 0 0 0 0 0 0.090523725 0 0 0 0 0 0
A00223.v2.0 0 1.09881251 0 0 0.578112669 0.337275538 0.625452544 1.409278785 0.204600602 0 0.051926075 0
A00226.v2.0 0 0 0 0 0 0 0 0 0 0 0 0
Check this for Cor function
thanks for your reply but I need the gene/gene correlation, should I change my matrix?
Transpose your data. Follow this link
I think this filter is useful for after getting correlation of genes :)
You have to create your matrix, samples as rows and Genes as columns.
Lets say you have matrix "A" like this:
Using
cor
function