Hello:
I am using DESeq2 to analyze gene expression data (counts from Illumina sequencing).
I have samples from two different populations (A & B) reared in two environments (X & Y). I am interseted in the main effect of population, the main effect of rearing, and the interaction between the two and so have coded my design like so: ~ population + rearing + population:rearing.
I set my reference population to A and my reference rearing condition to X, but because of the nature of populations and treatments (which occur in the wild and are not lab/drug manipulations) these are somewhat arbitrary.
My question is that, if I understand correctly, when I look at the results for the population comparison doing the following:
resPop <- results(d, name="pop_B_vs_A")
I am only comparing the effect of population in the reference rearing condition, X.
Instead what I would like to do is examine the effect of population INDEPENDENT of rearing condition, or in other words, considering both rearing conditions simultaneously/average.
I've tried to read up on this, but haven't been able to find an example of how to code this (other than to simply run the model as ~pop).
Any guidance is much appreciated.
eva
yes, that's the average effect of rearing across populations.