How to pull specific comparisons for DEGs in DESeq2? Trying to understand setting contrasts after the model matrix and results lists.
0
0
Entering edit mode
3 hours ago
atan • 0

Is there a way to get DEG results from a specific subset of comparisons without subsetting the samples prior to running the DESeq model?

I'm working with an RNAseq dataset that came from an experiment with a multifactorial design: two timepoints, two temperatures, and two drugs. The full model and contrasts give me the following list of results:

dds <- DESeqDataSetFromMatrix(gcounts, colData = colData, 
                          design = formula(~ drug * temp * timepoint))
ddsR <- DESeq(dds, minReplicatesForReplace = Inf)
res <- results(ddsR, contrast = c(0, 1, 0, 0, 0, 0, 0, 0)) #example

#[1] "Intercept"
#[2] "drug_B_vs_A"
#[3] "temp_18_vs_14"
#[4] "timepoint_24h_vs_0h"
#[5] "drugB.temp18"
#[6] "drugB.timepoint24h"
#[7] "temp18.timepoint24h"
#[8] "drugB.temp18.timepoint24hpi"

I'm trying to understand whether there's a way to get results like: a comparison of DEGs in temp18 and temp14 at 0h only, irrespective of their differences at 24h. 0h is currently set as the baseline for this factor.

Is there a way to do that by using the results(ddss, contrast = (x,x,x,x,x,x)) line? (some combination of 0, 1, and -1?) Or would I need to subset samples and run models on those smaller sample sets?

DEG RNAseq DESeq2 • 39 views
ADD COMMENT

Login before adding your answer.

Traffic: 3659 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6