Closed:deseq2 remove batch effect and one-way anova at one time
0
0
Entering edit mode
Nicola • 0
@nicola-19912
Last seen 5.0 years ago

Hi,

I am using DESeq2 to perform RNA seq analysis of time series experiments, like an ANOVA, but I also find there is obvious batch effect in my data.

Now,I would like to generate a single p-value that indicates difference among the time after removal of batch effect.

And this is my coldata below:

condition   batch

2h1 2h one 2h2 2h one 2h3 2h one 2h4 2h two 2h5 2h two 2h6 2h two 4h1 4h one 4h2 4h one 4h3 4h one 4h4 4h two 4h5 4h two 4h6 4h two 6h1 6h one 6h2 6h one 6h3 6h one 6h4 6h two 6h5 6h two 6h6 6h two 8h1 8h one 8h2 8h one 8h3 8h one 8h4 8h two 8h5 8h two 8h6 8h two 10h1 10h one 10h2 10h one 10h3 10h one 10h4 10h two 10h5 10h two 10h6 10h two 12h1 12h one 12h2 12h one 12h3 12h one 12h4 12h two 12h5 12h two 12h6 12h two

and I run my code like this:

dds <- DESeqDataSetFromMatrix(countData = Data, colData, design= ~~batch+condition) dds = DESeq(dds, test = "LRT", reduced = ~ 1+batch) estimating size factors estimating dispersions gene-wise dispersion estimates mean-dispersion relationship final dispersion estimates fitting model and testing results(dds) log2 fold change (MLE): condition w78 vs w104 LRT p-value: '~ batch + condition' vs '~ 1 + batch' DataFrame with 54446 rows and 6 columns baseMean log2FoldChange lfcSE stat pvalue padj <numeric> <numeric> <numeric> <numeric> <numeric> <numeric> ENSMUSG00000000001.4 1049.9401894 0.08067067 0.07007668 6.682485 0.245345266 0.39261103

So Is it correct ?

Thanks in advance.

deseq2 • 60 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 916 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