Entering edit mode
3.6 years ago
tirza.doniger
▴
10
I have time-series data - 4 time points - each has 9 replicates. I used the LRT in DESEQ2 to analyze the data. But it only compares all the time points to time zero. How can I compare all vs all time-points?
Thanks!
Tirza
ddsLRT <- DESeqDataSetFromMatrix(countData = merged_counts,
colData = colData,
design= ~ref + Quarter)
ddsLRT <- estimateSizeFactors(ddsLRT)
ddsLRT <- estimateDispersions(ddsLRT)
ddsLRT <- nbinomLRT(ddsLRT, reduced = ~ ref)
resLRT <- results(ddsLRT)
table(resLRT$padj < 0.1)
resultsNames(ddsLRT)
Thanks! That works. But how come these contrasts don't appear in the resultNames(ddsLRT)?
What if I want one condition vs multiple other conditions?
They do not have to be mentioned there.
There is more information via
?results
Then also check the examples given at the end of the output of
?results
.If you cannot find there what you need, then please consider creating a new variable that would permit you to achieve the desired contrasts.