Hello
First, I want to emphasize that reading his forum was already really extremely helpful
overcoming some of the issues I had initially grasping the concept of designs in Deseq2.
Nevertheless I am stuck now and could need some help:
I have the following experimental setup (each 3 replicates):
condition: TREATMENT vs CONTROL
tissue: A vs B
genotype: MUTANT vs WT
Now, I first wanted to find all the diferentially expressed genes for each of the condition (was asked by collaborator) , e.g.
A vs B in the wild-type and treated
A vs B in the wild-type and treated
and so on (it is as well a good point to compare with already published data).
For this I created groups to simplify the analysis e.g.
TREATMENT WT A, TREATMENT WT B, CONTROL WT A ,...
and run the analysis with the simple design: ~group
which gave me the following result names:
and so on.
Which I could then compare then in the fashion:
I am happy till here, but now comes the part which I am not sure how to analyze best.
If I want to figure out the interaction
I thought that I could first re-level the genotype to make the mutant the reference and get only the genes upregulated in the WT.
For the design I thought the proper manner would be:
For the 1st example
The thought was that I get the interaction between the genotype and the condition and can control for the tissue. But I am somehow on the wrong track:
How would I now extract for the previous described scenario (1 and 2) extract the list of diff. exp. genes with contrast?
First, I want to emphasize that reading his forum was already really extremely helpful
overcoming some of the issues I had initially grasping the concept of designs in Deseq2.
Nevertheless I am stuck now and could need some help:
I have the following experimental setup (each 3 replicates):
condition: TREATMENT vs CONTROL
tissue: A vs B
genotype: MUTANT vs WT
Now, I first wanted to find all the diferentially expressed genes for each of the condition (was asked by collaborator) , e.g.
A vs B in the wild-type and treated
A vs B in the wild-type and treated
and so on (it is as well a good point to compare with already published data).
For this I created groups to simplify the analysis e.g.
TREATMENT WT A, TREATMENT WT B, CONTROL WT A ,...
and run the analysis with the simple design: ~group
which gave me the following result names:
Code:
resultsNames(dds) [1] "Intercept" "groupTREATMENT.WT.A" "groupTREATMENT.WT.B"....
Which I could then compare then in the fashion:
Code:
cond1 <- results(dds, contrast=list("groupTREATMENT.WT.A","groupTREATMENT.WT.B"))
If I want to figure out the interaction
- [1] tissue A vs B + WT vs MUTANT in TREATMENT
[2] tissue A vs B + WT vs MUTANT in CONTROL
[3] TREATMENT vs CONTROL + WT vs MUTANT in tissue A
[4] TREATMENT vs CONTROL + WT vs MUTANT in tissue B
I thought that I could first re-level the genotype to make the mutant the reference and get only the genes upregulated in the WT.
Code:
dds$genotype <- relevel(dds$genotype, "MUTANT")
For the 1st example
Code:
~tissue + genotype + condition + genotype:tissue
Code:
resultsNames(dds) [1] "Intercept" "tissue_A_vs_B" "genotype_WT_vs_MUTANT" "condition_TREATMENT_vs_CONTROL" "tissueA.genotypeWT"
Comment