Unconfigured Ad

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

    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
                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...
                Today, 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
              • SEQadmin2
                Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                by SEQadmin2


                With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                Introduction

                Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                05-22-2026, 06:42 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Yesterday, 06:09 AM
              0 responses
              16 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-09-2026, 11:58 AM
              0 responses
              37 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-05-2026, 10:09 AM
              0 responses
              43 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-04-2026, 08:59 AM
              0 responses
              49 views
              0 reactions
              Last Post SEQadmin2  
              Working...