Questions in Regards to LFC shrinkage in DESeq2
1
1
Entering edit mode
Gordon • 0
@083bbd83
Last seen 3 days ago
United States

Hi All,

I am wondering if this is the correct methodology to create Dseq results, particularly the code in regards to the utilization of apeglm Did I shrink l2fc again by using apeglm or instead just ignore that portion of the code, and instead just keep the Dseq(dds) portion?

Counts <- read.csv("1_raw_data.csv", header = TRUE, row.names = 1, sep = ",") 
Counts
condition <- factor (c("S","S","S","C","C","C")) 
coldata <- data.frame (row.names = colnames(Counts), condition)
coldata
counts2 <- round(Counts)
counts2
write.csv(counts2, file = "TEST.csv")
dds <- DESeqDataSetFromMatrix(countData = counts2, colData = coldata, design = ~condition)
dds <- DESeq(dds)
vsdata <- vst(dds, blind = FALSE)
res <- results(dds, name="condition_S_vs_C") 
res <- results(dds, contrast = c ("condition", "S", "C")) 
res
resLFC <- lfcShrink(dds, coef="condition_S_vs_C", type="apeglm") 
head(res)
deg <- subset(resLFC, padj<0.05)  
head(deg)
write.csv( deg,file = "TEST_dseq_results.csv")
Dseq2 RNASeqData apeglm • 299 views
ADD COMMENT
0
Entering edit mode
ATpoint ★ 4.5k
@atpoint-13662
Last seen 18 hours ago
Germany

The correct (that is recommended by the developer) way is summarized in the vignette, please have a look, or state more precisely what the problem is. https://bioconductor.org/packages/release/bioc/vignettes/DESeq2/inst/doc/DESeq2.html

Please also spell the tool correctly. DESeq2.

ADD COMMENT
0
Entering edit mode

I read the paper previously as well as: https://introtogenomics.readthedocs.io/en/latest/2021.11.11.DeseqTutorial.html

To clarify, is the notion of utilizing the conjunction of differential expression analysis (dds <- DESeqDataSetFromMatrix) and apeglm correct? or is one method prefered over the other in publication wise?

ADD REPLY

Login before adding your answer.

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