Multiple group analysis
2
0
Entering edit mode
John ▴ 30
@john-9676
Last seen 6.5 years ago

Hi,

Is it possible to do multiple group level analysis?

T1(6replication)

T2(6replication) 

T3(6replication)

T4(6replication)

I tried it but I could only see T6 vs T1. How can I check the other comparisons?

```{r DEseq2_analysis_t1_ld, include=FALSE}
ddsHTSeq<-DESeqDataSetFromHTSeqCount(sampleTable=sampleTable, directory=INDIR, design=~treatment)
dds<-DESeq(ddsHTSeq)
ddsNozero  <-  which(!mcols(dds)$allZero)
dds  <- dds[ddsNozero]
res<-results(dds)
res<-res[order(res$padj),]
```

> res
log2 fold change (MAP): treatment T6 vs T1 
Wald test p-value: treatment T6 vs T1 
DataFrame with 49044 rows and 6 columns

Thank you for the help.

J.

deseq2 • 2.5k views
ADD COMMENT
2
Entering edit mode
tony.fox2016 ▴ 40
@tonyfox2016-9796
Last seen 8.7 years ago

res2<-results(dds, contrast=c("treatment","T1", "T2"), test="Wald")

res3<-results(dds, contrast=c("treatment","T1", "T3"), test="Wald")

...

 

ADD COMMENT
1
Entering edit mode

Yes, and in this case, you could leave off the test="Wald" (because DESeq() was run without setting test="LRT")

ADD REPLY
0
Entering edit mode

What does LRT stand for??

ADD REPLY
0
Entering edit mode

The fastest way to learn about functions and there arguments is to check the manual pages for each function. For example:

?DESeq

or 

?results

has lots of detailed information, and on top of that you can check the vignette:

vignette("DESeq2")

ADD REPLY
0
Entering edit mode

Thank you! It means likelihood ratio test!

ADD REPLY
0
Entering edit mode

LRT= Likelihood Ratio Test

ADD REPLY
0
Entering edit mode
John ▴ 30
@john-9676
Last seen 6.5 years ago

Thank you so much. 

@Michael, is that because test="Wald" is the default? 

ADD COMMENT
0
Entering edit mode
Yes
ADD REPLY

Login before adding your answer.

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