When using lfcShrink() with type='apeglm', which is now the default method, you cannot specify a contrast. Instead, you have to set the value of the coef parameter, and its value must be one of the coefficients output by the following command:
resultsNames(dds)
If you want to use a contrast, then use the original shrinkage method by running:
res <- lfcShrink (dds, contrast =c("zone", "transition", "peripheral"), res = w_res, type = 'normal')
Also for questions about a specific function, before posting make sure you read over ?lfcShrink and try the examples. Also search the vignette for the function name and read sections that relate to the function.
When I put:
I get:
How do I use this for lfcShrink()?
This is your friend for all queries DESeq2-related: Quick start
Thanks :) This is really helpful
Also for questions about a specific function, before posting make sure you read over
?lfcShrink
and try the examples. Also search the vignette for the function name and read sections that relate to the function.