I have RNA-seq data from several conditions where I have deteremined differentially expressed genes using DESeq2 and I'd now like to perform gene set enrichment analysis on the log2FC values from these comparisons. My question is whether I should use the shrunken log fold changes from "lfcShrink()" function or use the raw log2FC values?
I think you should use the shrunken LFCs as it took into account the variance of the changes.
For more information, refer to this vignette to find details on moderated LFCs: https://www.bioconductor.org/packages/devel/bioc/vignettes/DESeq2/inst/doc/DESeq2.html