Hello,
I need to perform complex DESeq2 comparisons for mRNA sequencing data (I have biological replicates of each condition and subunit mentioned below).
I have two knock-down conditions (KD1 and KD2), and 1 scrambled RNA control condition (SCR). Within each condition, I have 4 subunits (1, 2, 3, 4) that each need to be compared to their corresponding whole-cell data (WC).
- Compare each subunit to its corresponding whole-cell within the condition.
- Use this data to compare across conditions (ex. KD1 subunit1_vs_WC compared against SCR subunit1_vs_WC).
Could someone provide more insight into how I could use the data from 1. to perform the comparisons in 2. ? I've already performed 1.
Thank you for your support.
Hi James,
Thank you for your response! Quick follow-up; if I structure my contrast as below, will it perform (A-B) - (C-D)?
res_diff <- results( dds, contrast = list( c("A", "B"), c("C", "D") ), listValues = c(1, -1) )
Full disclosure: I don't use
DESeq2
, and find the contrasts specification confusing. Because of that, I generally recommend usingresultsNames
to get the names of the coefficients and then specify the correct contrast using a numeric contrast vector. If we assume thatresultsNames(dds)
returns A,B,C,D, then it would be