Dear EDGER support team,
I have a single factor experiment with the 5 different samples having three replicates each.
group <- factor(c("a","a","a","b","b","b","c","c","c","d","d","d","e","e","e"))
Using a GLM based approach, and using TreatDGE function, I am trying to obtain the Differentially expressed genes. The following two kinds of comparisons are of interest to me:
1. (b vs a), (c vs a), (d vs a), (e vs a)
2. (c vs b), (e vs d)
For the 1st type of comparison, I was using this:
tr <- treatDGE(fit, coef=2, lfc=1) (b vs a)
tr <- treatDGE(fit, coef=3, lfc=1) (c vs a)
tr <- treatDGE(fit, coef=4, lfc=1) (d vs a)
tr <- treatDGE(fit, coef=5, lfc=1) (e vs a)
Is this correct?
How can I make use of the "contrast" argument of the TreatDGE function for these comparisons.
And how to do the second kind of comparisons? I read the TreatDGE function information provided, but not able to decide on how to use it correctly.
Thanks in advance for the help!
Candida
The specification of the contrasts looks good to me. Your code will still work without the problematic replicate from group E (though, whether or not it makes sense to remove that replicate is another matter). Make sure that you have also removed the corresponding column in the count matrix.
Thanks Aaron,
Yes I have removed the corresponding column in the count matrix.
Thanks for the help!
Candida