Hello,
I need some help creating a design for my dataset in DESeq2. I have RNA-Seq data from samples that have been treated with a Control, with LPS, with LPS followed by molecule A, or with LPS followed by molecule B. There are 5 subjects that have been treated with each condition. So my coldata is as follows:
Condition Subject
1 Control 1
2 LPS 1
3 LPS_A 1
4 LPS_B 1
5 Control 2
6 LPS 2
7 LPS_A 2
8 LPS_B 2
9 Control 3
10 LPS 3
11 LPS_A 3
12 LPS_B 3
13 Control 4
14 LPS 4
15 LPS_A 4
16 LPS_B 4
17 Control 5
18 LPS 5
19 LPS_A 5
20 LPS_B 5
I would like to identify genes in which the response to LPS is altered by Molecule A, but not by Molecule B. Therefore, I need to identify genes that are DE in the LPS group compared to Controls, and then identify which of those genes are further DE by A, but not by B. Since the same 5 individuals have been treated with each of the conditions, I would like to test within subjects.
Is it possible to test for this using a multifactorial model in DESeq2? If so, could someone please help me with the design term, and how to specify the contrasts?
As you use numbers as subject IDs: Make sure this column is a factor, and not interpreted as a number.
Thank you! That works perfectly.
I realize it would have been better if I also had data from just molecule A and molecule B without LPS so that it would have been factorial. But I have to work with what I'm given!