Dear all,
I have the following problem: I have my model (controlling for Batch, Age, Sex) and I am interested in the condition.
dds <- DESeqDataSetFromMatrix(countData = cts,
colData = colData,
design = ~ BATCH + AGE + SEX + CONDITION
Now I need to do some grouping the condition, following vignette with
dds$group <- factor(paste0(dds$genotype, dds$condition))
design(dds) <- ~ group
But doing it this way I remove the control for Batch, Age and Sex.
How can I control for all these factors and do the grouping as well?
Thank you very much!
Bine
Fyi, @bine, I have deleted that crosspost at biostars simply to keep information focused here in that thread. Please next time indicate crossposts by adding a link to the other community, that avoids double-effort, as often (not always) answers to these kinds of questions will be the same from different users/communities, thank you.