This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Deseq - Should I Include Only The Samples Being Compared?

Hi,

In DESeq, If I have four samples - A, B, C, D - and only wish to compare A with B and C with D to test for differential expression, should I include all the samples in the analysis?

By this I mean, when performing the normalisation steps, will including the other 2 samples change how the data is normalised (given that the library sizes may be different for example)?

Thanks,

Jom.

deseq rna-seq

So you had 4 different treatments for basically the same samples?

Sorry, each sample is taken from a different part of the plant. A = leaves (from leaf morphology mutant plant), B = flowers (from mutant), C = flowers (wildtype), D = leaves (wildtype), . My aim is to test for genes in the leaf (mutant) sample which are upregulated over leaf (wt) and genes in the flower (mutant) sample upregulated over flower (wt). Ultimately, genes upregulated in the mutant (leaf and flower) over wildtype (leaf and flower) are the genes I'm interested in.

From that, it sounds like you're best off loading all of the samples and just using a GLM, which DESeq can handle. BTW, I hope you have replicates from these.

Question: Can I use contrast to compare say, just A to B once I load all of the samples into a R package?

1 answer

Realistically speaking, the library size change shouldn't be that drastic unless one of your samples is an outlier (e.g., you received very few reads from it, so it'll likely be useless anyway). The only benefit to including everything in the analysis from the get go is that you only load the count data once and will likely only have one script. You might as well try both ways and ensure that there's very little difference between them.

Log in to answer this question.