DESeq2 statistical model construction
1
0
Entering edit mode
save ▴ 20
@3d20f23f
Last seen 12 months ago
Italy

Hello, I am working with an RNAseq dataset composed of samples in two Conditions (Healthy, Sick) and then each group of samples is treated with three different treatments (T1, T2, T3). What I want to do is to compare treated samples between Conditions (e.g. T1 Sick vs T1 Healthy, T2 Sick vs T2 Healthy ...). In addition, I have a batch effect that I want to include in the model and I was thinking of using the following design.

  dds <- DESeqDataSetFromMatrix( matrix, coldata, design = ~  Batch +  Condition + Treatment + Condition:Treatment)

Then in results(), I specify the following to do the comparison T1 Sick vs T1 Healthy (setting Healthy as the reference level):

res <- results(dds, contrast = list("ConditionSick.TreatmentT1"))

Is it correct? Do you have any suggestions on this?

Another solution I had come up with is to subset the dataset and then do a different analysis for each treatment. Is it wrong?

Thanks in advance for your help!

DESeq2 • 448 views
ADD COMMENT
0
Entering edit mode
swbarnes2 ★ 1.3k
@swbarnes2-14086
Last seen 7 hours ago
San Diego

To compare one subset of samples to another, make a new column of colData that is 'condition_treatment', and use that ( + batch) as your design.

ADD COMMENT

Login before adding your answer.

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