Comparison of comparisons with edgeR
1
0
Entering edit mode
3.4 years ago

Suppose you have four experimental conditions for your RNA-seq:

-Resistant species inoculated by a pathogen,

-Resistant species control,

-Susceptible species inoculated by a pathogen,

-Suceptible species control,

each with three replicates. Your RNA-seq samples look like the following:

R1, R2, R3, RC1, RC2, RC3, S1, S2, S3, SC1, SC2, SC3

And you use edgeR for the analysis. You can carry out easily pairwise comparisons such as:

my.contrasts <- makeContrasts(RvsRC, SvsSC, RvsS, RCvsSC, levels=design)

But, what I really want to test is the comparison (RvsRC)vs(SvsSC), a comparison of comparisons to see the actual effect of the pathogen. How can I proceed?

Thanks!

RNA-Seq edgeR gene expression • 994 views
ADD COMMENT
0
Entering edit mode

Thank you both!!! :)

I have opted of following the 3.3.4 section of edgeR manual with the design:

species_design <- model.matrix(~species+exposure+species:exposure, data=targets)

Assuming Inoculated versus Control in Resistant species as baseline.

   (Intercept) speciesS exposureInoculated speciesS:exposureInoculated

1            1              0         1                        0

2            1              0         1                        0

3            1              0         1                        0

4            1              0         1                        0

5            1              0         0                        0

6            1              0         0                        0

7            1              0         0                        0

8            1              1         1                        1

9            1              1         1                        1

10           1              1         1                        1

11           1              1         1                        1

12           1              1         0                        0

13           1              1         0                        0

14           1              1         0                        0

To see the different response between Resistant and Susceptible to the pathogen infection, I have set:

qlf <- glmQLFTest(fit.sp, coef=4)

Do you think it makes sense?

ADD REPLY
1
Entering edit mode
3.4 years ago

If you want to find out the degree to which gene expression changes are different for pathogen exposure in resistant versus susceptible species, you can introduce an interaction term into the regression formula of edgeR.

~ species + exposure + species:exposure

Your question is similar to that of section 3.3.4 in the edgeR user manual.

ADD COMMENT
1
Entering edit mode

Alternatively you can simply encode it full-factorial as R, RC, S, SC, say we call this "group" and then use ~0+group, so you could test the interaction as Interaction = (S - SC) - (R - SC). The user guide has examples on interactions as said above.

ADD REPLY

Login before adding your answer.

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