I would like to investigate DGE and DTE in my samples using the R packages DESeq2 and Fishpond/Swish, respectively. In my subject species, there are three phenotypes and for each of them, I have samples from 13 different tissues for a total of 267 samples. First, I would like to compare the three phenotypes considering all the samples from all the tissues. Then, I would also like to analyze the samples in order to highlight differentially expressed genes and transcripts between the three different phenotypes within each tissue.
In DESeq2, to compare the three phenotypes I set up the experimental design as follows:
design = ~ tissue + phenotype
dds <- DESeqDataSetFromTximport(txi.g, samps, design = design)
and then, after filtering and running DESeq
res1 <- results(dds, contrast = c("phenotype", "pheno1", "pheno2"), alpha = 0.05)
res2 <- results(dds, contrast = c("phenotype", "pheno1", "pheno3"), alpha = 0.05)
res3 <- results(dds, contrast = c("phenotype", "pheno2", "pheno3"), alpha = 0.05)
For the comparisons between the three phenotypes within each tissue I added the interaction term as follows:
design = ~ tissue + phenotype
dds <- DESeqDataSetFromTximport(txi.g, samps, design = design)
dds$group <- factor(paste0(dds$tissue, dds$phenotype))
design(dds) <- ~ group
and then, after filtering and running DESeq (e.g for one of the 13 tissues)
res1 <- results(dds, contrast = c("group", "tissue1pheno1", "tissue1pheno2"), alpha = 0.05)
res2 <- results(dds, contrast = c("group", "tissue1pheno1", "tissue1pheno3"), alpha = 0.05)
res3 <- results(dds, contrast = c("group", "tissue1pheno2", "tissue1pheno3"), alpha = 0.05)
Is this correct as I have done? I am more than satisfied with the results from DESeq2 so far. Now, I would like to perform the same analyses and comparisons in Swish for the DTE analysis. Do you have any recommendations on how I should proceed? I have been following the Swish tutorial, but I have a hard time understanding how to analyze the interactions and contrasts in this package.
Hi Michael,
I'm performing a very similar analysis with multiple comparisons (5 groups: 1 control group & 4 treatment - want to perform DTE against control).
From this post, I get the impression that I will have to subset each of the treatment groups with the control and then perform swish.
I wanted to ask, should I subset the data before or after running
scaleInfReps()
?Sorry for the delay in reply. After scaling you can subset. How many samples per group?