Hi guys,
I'm having trouble in figuring out the correct method in R to calculate statistically significant miRNA and mRNA target pairs based on pearsons correlation coefficients and p-value (p < 0.05).
My data looks like this:
miRNA logFC gene logFC
miR156d-3p -2.322077683 gene.17474899 0.34139474
miR156d-3p -2.322077683 gene.17436642 0.329760915
miR156d-3p -2.322077683 gene.17430283 -0.416809156
miR156d-3p -2.322077683 gene.17430250 -0.643149662
miR156d-3p -2.322077683 gene.17451144 -0.9889254
miR156j -10.06813372 gene.17473577 1.075675282
miR156j -10.06813372 gene.17437315 0.900629506
miR156j -10.06813372 gene.17425609 0.692140529
My desired output:
Gene name miRNA p-value correlation
gene.A miR396b 0.005196 -0.9999667
gene.B miR396a 0.005261 -0.999966659
Gene.N miR167 0.00658 -0.9999473
Looking forward to your response.
V
The correlation of what ? You need more than a pair of observation to compute a correlation...