Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

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

    Comment


    • #3
      Thanks for the help.

      Comment


      • #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


        • #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


          • #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


            • #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

              • seqadmin
                Recent Advances in Sequencing Analysis Tools
                by seqadmin


                The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
                Yesterday, 07:48 AM
              • seqadmin
                Essential Discoveries and Tools in Epitranscriptomics
                by seqadmin




                The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
                04-22-2024, 07:01 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, Today, 06:57 AM
              0 responses
              9 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, Yesterday, 07:17 AM
              0 responses
              13 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 05-02-2024, 08:06 AM
              0 responses
              19 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-30-2024, 12:17 PM
              0 responses
              23 views
              0 likes
              Last Post seqadmin  
              Working...
              X