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
                Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                by SEQadmin2



                Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                ...
                10-14-2026, 09:55 AM
              • SEQadmin2
                New Genomics Technologies Take Aim at Long-Standing Limits
                by SEQadmin2


                Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                ...
                09-28-2026, 10:25 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Yesterday, 11:13 AM
              0 responses
              19 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, Yesterday, 10:48 AM
              0 responses
              18 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              36 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              42 views
              0 reactions
              Last Post SEQadmin2  
              Working...