Question: Expression Matrix And Pearson'S Correlation Coefficient
gravatar for pixie@bioinfo
7.5 years ago by
Université Paris, Saclay
pixie@bioinfo1.4k wrote:

I have an expression matrix : Gene ids on 1st column followed by the expression values across control(first 3 ) and disease samples(last 3)

4325938 202.27 312.55 245.61 1.86 55.45 31.71
4330851 181.01 406.12 272.17 73.65 155.02 108.06

I want to code for finding the correlation values between the genes using Pearson correlation using numpy or scipy module in Python as given in the following reference:

scipy docs

I am not able to understand what is array x and array y here. What should be the parameter that I should pass to the modules in this case ? I have to take a row mean of the expression values for each gene and then pass ? Kindly Help..

ADD COMMENTlink modified 7.5 years ago by • written 7.5 years ago by pixie@bioinfo1.4k
gravatar for
7.5 years ago by
European Union wrote:


for every row of your matrix

  x is the array made of 6 case-control values

  for every row following x

     y is the array made of 6 case-control values

     compute correlation of x and y

     save result

  end loop over y

end loop over x
ADD COMMENTlink written 7.5 years ago by

Thank you so worked fine!

ADD REPLYlink written 7.5 years ago by pixie@bioinfo1.4k

Did you make an R script for this? Do you mind sharing it?

ADD REPLYlink written 4.7 years ago by Palgrave20
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1611 users visited in the last hour