DESeq2 1.6 Multifactorial Design: Covariates with more than two classes?
1
0
Entering edit mode
sumneuron • 0
@sumneuron-11227
Last seen 7.7 years ago

Hello,

I have two covariates in addition to condition, let's call them A and B. So I set the design as formula(~ A + B + condition) and I contrast on the level of condition.

Contrast can only distinguish between two factors (e.g WT v KO, single-read v paired-end). What if my covariate "B" has four factors (a,b,c,d).

So if I call

dds <- DESeqDataSetFromMatrix(countData = countdata, colData = colData, design = ~ A + B + condition)

Does DESeq and results take into account the four factors of B? Or is this overlooked?

If the case is the latter, how can I use all four?

Thanks

deseq2 multiple factor design multifactorial design • 1.2k views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 8 hours ago
United States

"Does DESeq and results take into account the four factors of B?"

Yes, DESeq2 takes into account all the levels of the factors in the design.

You can see that this is the case by looking at the coefficients produced, by calling resultsNames(dds).

That the results() function can be used to contrast pairs (or more) of the coefficients doesn't change this fact that all levels are used in the model.

ADD COMMENT
0
Entering edit mode

Also a comment: DESeq2 v1.6 is very out of date. It is from Fall 2014. You should update to the latest version of R and install the latest version of DESeq2 which is 1.12. If you work on a cluster and cannot update the version of R yourself, I'd recommend you contact the administrators to update the version of R, because it is necessary in computational genomics to have up-to-date software.

ADD REPLY

Login before adding your answer.

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