Extract Deviance Residuals from DESeq2
0
1
Entering edit mode
3.7 years ago
chasem ▴ 50

I am trying to use RUVr with DESeq2. However, I am not sure how to extract the deviance residuals from the deseq model.

Does anyone know an equivalent method in deseq to the following code using edgeR:

From the RUVseq vignette

design <- model.matrix(~x, data=pData(set))
y <- DGEList(counts=counts(set), group=x)
y <- calcNormFactors(y, method="upperquartile")
y <- estimateGLMCommonDisp(y, design)
y <- estimateGLMTagwiseDisp(y, design)
fit <- glmFit(y, design)

res <- residuals(fit, type="deviance")

The last line is the point in question.

Thank you!

RNA-Seq DESeq2 glm • 1.2k views
ADD COMMENT

Login before adding your answer.

Traffic: 2313 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