This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to subset dds object properly comparing two conditions

I have some data divided in 3 conditions: A,B,C. I would like to make a DE with only the first two condition, removing the samples with condition C. A possible solution I found is to solve the problem at the root, so removing the samples directly on the row data I am reading, but can it be dangerous ? (sorting may be corrupted). On the other hand, if I subset the dds object after the creation, I will have always three condition in my levels, since I created it considering all the samples, and some errors occurs.

What should I do ?

UPDATE: Using results() with contrasts parameter it's not an option for me, because for my understanding, Deseq() estimates statistics considering all samples. So I thought that would be an incorrect way to do my analysis.

r deseq2 bioconductor

Why do you need to discard samples with condition C ? (biological, technical reasons ?)

I actually read that deseq2 performs estimates for single genes, so they suggest to create the dds with all the samples and then to subset later. I found the answer in the vignette faq.

0 answers

No answers yet.

Log in to answer this question.