How to do correlation analysis using DESeq2?
1
0
Entering edit mode
zhaoy • 0
@zhaoy-23696
Last seen 3.5 years ago

I was trying to figure out how to perform Spearman rank test between expression value of a gene and a continuous outcome in DESeq2. One way I did was to extract the normalized count from counts(dds, normalized=TRUE), and then run cor.test in R. Alternatively, I put the continuous variable in the DESeq2 design formula and ran DESeq(dds). I could get the p and adjust p from the results.
It seems the latter approach could take advantage of the shrinkage estimator in DESeq2, and generate more significant genes. However, is there a way to get the Spearman correlation coefficient and p value from the DESeq2 output? Thanks!

deseq2 • 3.3k views
ADD COMMENT
1
Entering edit mode
@mikelove
Last seen 1 day ago
United States

We don't have a way to generate anything like a Spearman correlation in DESeq2.

You could alternatively use SAMseq, which has an implementation of Spearman designed specifically for RNA-seq count data.

See resp.type="Quantitative":

https://www.rdocumentation.org/packages/samr/versions/3.0/topics/SAMseq

ADD COMMENT
0
Entering edit mode

Thanks so much, Michael! Good to know that.

ADD REPLY

Login before adding your answer.

Traffic: 418 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6