DESeq2 Multiple Conditions: Do I need a "reference"?
1
0
Entering edit mode
cnvspam ▴ 10
@cnvspam-23138
Last seen 4.1 years ago

I realize this question has probably been asked a million times but I cannot find a case that's similar to mine.

I have 8 conditions but no reference. These are different strains of the same organism. I want to perform a pairwise comparison of all 8 groups , totaling 28 unique comparisons (no A vs. A, but A vs. B, A vs. C, etc..)

Is this possible?

> coldata
          strain
A_S15     A
A_S23     A
A_S7      A
B_S12     B
B_S20     B
B_S4      B
C_S16     C
C_S24     C
C_S8      C
D_S1      D
D_S17     D
D_S9      D
E_S13     E
E_S21     E
E_S5      E
F_S14     F
F_S22     F
F_S6      F
G_S10     G
G_S18     G
G_S2      G
H_S11     H
H_S19     H
H_S3      H

> dds <- DESeqDataSetFromMatrix(countData=counts,colData=coldata, design= ~ strain)
> dds <- DESeq(dds)
> resultsNames(dds)
[1] "Intercept"          "strain_B_vs_A"  "strain_C_vs_A"
[4] "strain_D_vs_A" "strain_E_vs_A"  "strain_F_vs_A"
[7] "strain_G_vs_A"  "strain_H_vs_A"

So to achieve my 28 comparisons, should I re-reference the strain like this?

> dds$condition <- relevel(dds$condition, ref="B")

And are "strainBvsA" and "strainAvsB" equivalent or does the order matter?

Thank you.

deseq2 • 4.3k views
ADD COMMENT
3
Entering edit mode
Kevin Blighe ★ 3.9k
@kevin
Last seen 7 days ago
Republic of Ireland

No, you do not have to re-level the factor. You can easily conduct pairwise comparisons as exemplified here:

Kevin

ADD COMMENT
1
Entering edit mode

Thank you Kevin, always a delight to see your answers.

ADD REPLY

Login before adding your answer.

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