Entering edit mode
megapode32559
•
0
@megapode32559-23129
Last seen 4.7 years ago
dds <- DESeqDataSetFromMatrix(countData = cts,
colData = coldata,
design= ~ batch + condition)
# dds <- estimateSizeFactors(dds)
dds <- DESeq(dds)
resultsNames(dds) # lists the coefficients
res <- results(dds, name="condition_trt_vs_untrt")
# or to shrink log fold changes association with condition:
res <- lfcShrink(dds, coef="condition_trt_vs_untrt", type="apeglm")
In the above code, if dds <- estimateSizeFactors(dds)
is uncommented, I see the results are different. How does it affect the results? Thanks.