Question: filtering genes by pearson correlation

0

mannoulag1 •

**60**wrote:Hi biostars,

I did a pearson correlation to my data (expression matrix), and I keep only the correlation >0.8 . How can I obtain the sub expression matrix of only these highly correlated genes. Thank you

```
data<-t(matrix)
cor = cor(data, use="pairwise.complete.obs", method="pearson")
cor<-cor[abs(cor)>0.8]
```

ADD COMMENT
• link
•
modified 2.8 years ago
by
Jean-Karim Heriche ♦

**24k**• written 2.8 years ago by mannoulag1 •**60**