Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aliceb
    Member
    • Jan 2010
    • 18

    #1

    DESeq2 with nested design?

    Hi all,

    Is is possible to use a nested model in DESeq2 or EdgeR??

    I have 3 treatments (evolution lines), but each treatment was performed in 4 replicate lines.

    My experimental design is as follows:

    TmtA x 4 replicate lines X 3 biological replicates sequenced in each replicate line
    TmtB x 4 replicate lines X 3 biological replicates sequenced in each replicate line
    TmtC x 4 replicate lines X 3 biological replicates sequenced in each replicate line

    This has given me a total of 36 libraries.

    My main interest is the difference between treatments, but I also want to take the independence of these 4 replicate lines into account while keeping them nested within their treatment. Is there an easy way to incorporate this in DESeqDataSeqFromMatrix (or similar, this is what I'm using now)?

    Thanks.

    Alice
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Nesting implies a mixed-effect model, so no, neither DESeq2 nor edgeR will support that. There's some limited support for that in limma through duplicateCorrelation, which you might be able to use.

    Having said that, you can simply use the nesting factor (I assume this is the "replicate line") as a blocking factor. In practice, this works quite well (the GLMs allow you to moderate dispersion anyway).

    Comment

    • aliceb
      Member
      • Jan 2010
      • 18

      #3
      Thanks for the quick response!

      Yes, I think I've tried that using: "design= ~ sel.line + sel.line:block"

      However, I'm worried that I'm not correctly setting up my design. I have also tried "design= ~ block + block:sel.line", but that didn't seem right.

      The troubling thing is that in both of the designs above, there is virtually no overlap between the significant genes identified in this and an unblocked run (using "design = ~ sel.line"). And when I look at the results of the first two scenarios above, I can see that they are driven by "blocks" more than sel.line (i.e. similar responses in blocks across sel.lines). Does that seem likely? Or am I setting this up wrong?

      I've attached my script here in case that's helpful.

      Thanks!
      Attached Files

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        You probably want either "~block+sel.line" or ~block*sel.line". I suspect the former will work better, but perhaps you have a number of block-specific interactions present. The former is what we would use for human experiments, where the patient to patient variability can be quite high and we don't have access to the within-block factor replicates that you have.

        Comment

        • aliceb
          Member
          • Jan 2010
          • 18

          #5
          Ah yes, that has much more overlap with the unblocked design than the other two.

          Thanks very much!

          Comment

          • Michael Love
            Senior Member
            • Jul 2013
            • 333

            #6
            I'd second Devon's suggestion of using "~ block + sel.line". Then use

            Code:
            results(dds, contrast=c("sel.line","GroupE","GroupD"))
            etc. to build results tables for comparisons of the three treatments.

            Comment

            • aliceb
              Member
              • Jan 2010
              • 18

              #7
              Ah, thank you! I knew I was missing something in the results

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                by SEQadmin2



                CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                Despite this, “CRISPR helped turn genome editing from a specialized technique into
                ...
                07-31-2026, 11:01 AM
              • SEQadmin2
                Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                by SEQadmin2


                Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                The systematic characterization of the human proteome has
                ...
                07-20-2026, 11:48 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Today, 10:05 AM
              0 responses
              2 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 08-13-2026, 12:22 PM
              0 responses
              31 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 08-11-2026, 10:35 AM
              0 responses
              24 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 08-06-2026, 07:41 AM
              0 responses
              38 views
              0 reactions
              Last Post SEQadmin2  
              Working...