Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • PMRoberts
    Junior Member
    • Nov 2015
    • 1

    DESeq2 multi-factor design

    Hi all,

    I have just started using DESeq2 using a multi-factor approach. As I'm new to this (and to statistics), I was hoping to get feedback / corrections on what I think the analysis should look like:

    I have the following colData:
    Code:
    sample	genotype	treatment	library_batch
    S1	WT	vehicle	B1
    S2	WT	vehicle	B2
    S3	WT	vehicle	B1
    S4	WT	vehicle	B2
    S5	WT	Drug	B2
    S6	WT	Drug	B1
    S7	WT	Drug	B2
    S8	KO	vehicle	B1
    S9	KO	vehicle	B2
    S10	KO	vehicle	B1
    S11	KO	vehicle	B2
    S12	KO	Drug	B1
    S13	KO	Drug	B2
    S14	KO	Drug	B1
    S15	KO	Drug	B2
    Blocking for library batch effects, I am interested in finding the following DE genes:
    Q1) DE genes between vehicle-treated "WT" and "KO" (i.e. the 'baseline' difference);
    Q2) Genes that are DE following treatment within each genotype ("WT" and "KO");
    Q3) Genes that show a genotype-dependent response to treatment.

    Looking through the DESeq2 tutorials and form posts, Q1 and Q2 would probably be easiest addressed by created a 'genotype_treatment' factor and working with contrast:

    Code:
    colData$condition <- paste(colData$genotype, colData$treatment, sep="_")
    and using a design
    Code:
    design = ~ library_batch + condition
    to extract results as:
    Q1:
    Code:
    res1 <- results(dds, contrast=c("condition", "KO_vehicle", "WT_vehicle"))
    Q2.1:
    Code:
    res2wt <- results(dds, contrast=c("condition", "WT_Drug", "WT_vehicle"))
    Q2.2:
    Code:
    res2ko <- results(dds, contrast=c("condition", "KO_Drug", "KO_vehicle"))
    As for Q3, I would then repeat the analysis including an interaction term:

    Code:
    design = ~ library_batch + genotype*treatment
    to extract results as:

    Code:
    res3 <- results(dds, name="genotypeKO.treatmentvehicle")
    Is this correct? I was wondering if there is a way to do this without running 2 separeate analysis designs...?

    On a more general note, can anyone recommend a resource to get more familiar with these design formulas and what they 'mean'?
    Last edited by PMRoberts; 11-16-2015, 03:48 PM.
  • gringer
    David Eccles (gringer)
    • May 2011
    • 845

    #2
    Q1/2 looks very similar to what we've done with our RNASeq experiments. Mike Love seemed to think the approach was correct:

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Nine Things a Sample Prep Scientist Thinks About Before Sequencing
      by SEQadmin2


      I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.


      Here are nine questions we think about, in roughly the order they matter, before...
      06-18-2026, 07:11 AM
    • SEQadmin2
      From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
      by SEQadmin2


      Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


      The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
      ...
      06-02-2026, 10:05 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 06-17-2026, 06:09 AM
    0 responses
    31 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-09-2026, 11:58 AM
    0 responses
    96 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-05-2026, 10:09 AM
    0 responses
    117 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-04-2026, 08:59 AM
    0 responses
    109 views
    0 reactions
    Last Post SEQadmin2  
    Working...