Dear community I am writing to you because I have a problem with DESEq2 when I try to use lfcShrink. After that, it is not possible to continue with the analysis
This error started to happen when I run my analysis in Ubuntu 20.04.1 and use R 4.0.3, when I ran the same analysis in the previous version of R there was not a problem
The line:
> resShrunk <- lfcShrink(dds, contrast = c("condition", "3N_D", "20C_G2"), cooksCutoff=F)
An the error:
> resShrunk <- lfcShrink(dds, contrast = c("condition", "3N_D", "20C_G2"), cooksCutoff=F)
Error in lfcShrink(dds, contrast = c("condition", "3N_D", "20C_G2"), cooksCutoff = F) :
type='apeglm' shrinkage only for use with 'coef'
Thanks in advance
You can either use
coef
or you can switch back totype="normal'
which was the previous default value fortype
.The reason why it depends on the version, is that
type="normal"
was deprecated over two release cycles, and now is no longer default (this was printed as a message to the console for two releases, before the change was made). It performs worse than apeglm/ashr. Changes are documented here. See description of shrinkage estimators in the vignette for more details.Thank you so much for your help!
Now it is working properly
Best regards