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 13 months ago
by
Jean-Karim Heriche ♦

**18k**• written 13 months ago by mannoulag1 •**60**