Thank you for your reply. I now have my counts by transcript for each sample. So I'd like to use DESeq2 to make comparisons between my samples and my controls. I have a dataset including 2 variables, pH (8 values) and strains consortium (5 values) all in triplicate. My ColDesign for Deseq2 looks like this :
I would like to answer two questions: 1- For a given strains consortium do I have gene expression differences at any pH point compared to my control pH point (J1) ? 2- For a given pH point, do I have gene expression differences between my strains consortium compared to the control consortium (straincontrol) ?
1- I would like to have for straincontrol :
pHJ1_vs_pH6.45 pHJ1_vs_pH6.26 pHJ1_vs_pH6.00 pHJ1_vs_pH5.73 pHJ1_vs_pH5.37 pHJ1_vs_pH5.02
pHJ1_vs_pH4.6
For strain1 :
pHJ1_vs_pH6.45 pHJ1_vs_pH6.26 pHJ1_vs_pH6.00 pHJ1_vs_pH5.73 pHJ1_vs_pH5.37 pHJ1_vs_pH5.02
pHJ1_vs_pH4.6
And those comparisons for each of the strains.
2- I would like to have for pH J1 :
straincontrol_vs_strain2 straincontrol_vs_strain3 straincontrol_vs_strain4 straincontrol_vs_strain5
For pH 4.6 :
straincontrol_vs_strain2 straincontrol_vs_strain3 straincontrol_vs_strain4 straincontrol_vs_strain5
And those comparisons for each of the pH points.
I would like then generate one heatmap per pH comparison and per strain comparison since in each one I compare the samples to the same control. It would generate 13 heatmaps (8 with the pH and 5 with the strains consortium).
it is possible with DESeq2 to block one of the 2 variables, for example comparing for the consortium of strain1 the differents pH points to the control pH or should I split my data set to keep only the results of counts of genes corresponding to the consortium of strain1 and use DESeq2 with a single variable, the pH?
I tried differents designs such as :
dds <- DESeqDataSetFromTximport(txi, colData=colDesign, design= ~strain+pH)
dds <- DESeqDataSetFromTximport(txi, colData=colDesign, design= ~strain+pH+strain:pH)
but it doesn't give me the comparisons I want.