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
                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
              • seqadmin
                Current Approaches to Protein Sequencing
                by seqadmin


                Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
                04-04-2024, 04:25 PM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, Yesterday, 11:49 AM
              0 responses
              15 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-24-2024, 08:47 AM
              0 responses
              16 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-11-2024, 12:08 PM
              0 responses
              61 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-10-2024, 10:19 PM
              0 responses
              60 views
              0 likes
              Last Post seqadmin  
              Working...
              X