Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Golsheed
    Member
    • Oct 2014
    • 49

    #1

    nested mixed model in DESeq2

    Hi,

    I was wondering whether I could use a nested mixed model in DESeq2? Specifically, the model I have in mind has two fixed effects A and B, and a random effect C nested in B. I was wondering whether the following could work?
    design = ~ A + B + (1| C %in% B)
    I'd appreciate any help or comment.

    Thanks,
    Golsheed
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    DESeq2 (as well as edgeR) doesn't support mixed-effect models.

    Comment

    • Golsheed
      Member
      • Oct 2014
      • 49

      #3
      Thanks for the help.

      Comment

      • Golsheed
        Member
        • Oct 2014
        • 49

        #4
        Could you please comment on the design formula, regardless of the DESeq2? I'm having a bit of a hard time verifying if it's correct. My model has two fixed effects A and B, and a random effect C nested in B. I was wondering whether the following could work?
        formula = ~ A + B + (1| C %in% B)

        Thanks!

        Comment

        • Golsheed
          Member
          • Oct 2014
          • 49

          #5
          Could you please comment on the design formula, regardless of the DESeq2? I'm having a bit of a hard time verifying if it's correct. My model has two fixed effects A and B, and a random effect C nested in B. I was wondering whether the following could work?
          formula = ~ A + B + (1| C %in% B)

          Thanks!

          Comment

          • Michael Love
            Senior Member
            • Jul 2013
            • 333

            #6
            limma has functionality called duplicateCorrelation() for arrays or for samples. See this reference and the help file for the function in limma.

            Smyth, G. K., Michaud, J., and Scott, H. (2005). The use of within-array replicate spots
            for assessing differential expression in microarray experiments. Bioinformatics 21(9),
            2067–2075.
            http://bioinformatics.oxfordjournals...tent/21/9/2067

            Otherwise, this is more of a question for a mixed effects modeling package like lme4 -- which has glm support including the NB: glmer.nb() -- or for R-help.

            Comment

            • Golsheed
              Member
              • Oct 2014
              • 49

              #7
              Thanks a lot, Michael. I really appreciate your help. We're actually doing some part of our analysis with limma, so it's great to know that it supports mixed models. I'll look into it, as you suggested!

              I actually used the glmer.nb() function to fit my data but am still not sure about the formula.

              Suppose that the dependetn variable is Counts, and I have X1 and X2 as fixed effects, while X3 is a random effect and nested in X3. Specifically, X2 has two levels (L1 and L2), with 2 levels of X3 happening in (or belonging to) L1 and 8 levels of X3 belonging to L2. I'm guessing the naive way to model this is

              Count ~ X1+ X2+ (1|X2/X3),

              is that correct? But the random effect term (i.e., (1|X2/X3)) treats X2 as a random effect, by default, while I want X2 to be a fixed effect. So I was wondering whether the following would suffice to capture what I have in mind?
              Count ~ X1+ X2+ (1|X3)

              Thanks a bunch,
              Golsheed





              Originally posted by Michael Love View Post
              limma has functionality called duplicateCorrelation() for arrays or for samples. See this reference and the help file for the function in limma.

              Smyth, G. K., Michaud, J., and Scott, H. (2005). The use of within-array replicate spots
              for assessing differential expression in microarray experiments. Bioinformatics 21(9),
              2067–2075.
              http://bioinformatics.oxfordjournals...tent/21/9/2067

              Otherwise, this is more of a question for a mixed effects modeling package like lme4 -- which has glm support including the NB: glmer.nb() -- or for R-help.

              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
              21 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...