Unconfigured Ad

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

    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.


            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.


              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
                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
              • SEQadmin2
                Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                by SEQadmin2



                Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                ...
                07-09-2026, 11:10 AM
              • SEQadmin2
                Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                by SEQadmin2



                Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                07-08-2026, 05:17 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 07-20-2026, 11:10 AM
              0 responses
              18 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-13-2026, 10:26 AM
              0 responses
              33 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-09-2026, 10:04 AM
              0 responses
              44 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-08-2026, 10:08 AM
              0 responses
              30 views
              0 reactions
              Last Post SEQadmin2  
              Working...