Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sindrle
    Senior Member
    • Aug 2013
    • 266

    #1

    edgeR with uneven groups

    Hi!
    I have two groups:

    Healthy=26
    Diabetic=22

    > colnames(design)
    [1] "(Intercept)" "DiseaseDiabetic"
    [3] "DiseaseHealthy:Patients2" "DiseaseDiabetic:Patients2"
    [5] "DiseaseHealthy:Patients3" "DiseaseDiabetic:Patients3"
    [7] "DiseaseHealthy:Patients4" "DiseaseDiabetic:Patients4"
    [9] "DiseaseHealthy:Patients5" "DiseaseDiabetic:Patients5"
    [11] "DiseaseHealthy:Patients6" "DiseaseDiabetic:Patients6"
    [13] "DiseaseHealthy:Patients7" "DiseaseDiabetic:Patients7"
    [15] "DiseaseHealthy:Patients8" "DiseaseDiabetic:Patients8"
    [17] "DiseaseHealthy:Patients9" "DiseaseDiabetic:Patients9"
    [19] "DiseaseHealthy:Patients10" "DiseaseDiabetic:Patients10"
    [21] "DiseaseHealthy:Patients11" "DiseaseDiabetic:Patients11"
    [23] "DiseaseHealthy:Patients12" "DiseaseDiabetic:Patients12"
    [25] "DiseaseHealthy:Patients13" "DiseaseDiabetic:Patients13"
    [27] "DiseaseHealthy:TreatmentAfterTreatment" "DiseaseDiabetic:TreatmentAfterTreatment"

    > fit <- glmFit(d,design)
    Error in glmFit.default(y = y$counts, design = design, dispersion = dispersion, :
    Design matrix not of full rank. The following coefficients not estimable:
    DiseaseDiabetic:Patients12 DiseaseDiabetic:Patients13

    How can I adjust for uneven groups?

    Thanks!
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    You're trying to test with patients that don't exist (since there are only 11 diabetic patients, you can't look for a DiseaseDiabetic:Patients12 interaction). Presumably you mistyped the design formula (it looks like you used ~Disease:Patients + Disease + Disease:Treatment, which doesn't really make sense given your experiment).

    Comment

    • sindrle
      Senior Member
      • Aug 2013
      • 266

      #3
      Thats exactly what I did, because I dont understand the command...

      design <- model.matrix(~Disease+Disease:Patients+Disease:Treatment)

      I will google some. I dont understand the difference between really basic aspects. i.e. "*" vs "+" vs ":" vs "~".

      I have fiddled around a bit, Ill try some more..


      For future people struggling with the same read this:

      Last edited by sindrle; 10-22-2013, 01:58 PM.

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        Originally posted by sindrle View Post
        I will google some. I dont understand the difference between really basic aspects. i.e. "*" vs "+" vs ":" vs "~".
        Ah, yeah, that'll cause some issues then. Have a look at a few tutorials like this one (or even just the "details" section of "help(lm)" in R) to get a better feel about what these things are actually doing.

        Comment

        • sindrle
          Senior Member
          • Aug 2013
          • 266

          #5
          Thanks!
          I dont even understand why I should read up on linear regression.. Wow, I have alot to learn!

          To sum up the fix for uneven groups:

          Delete alle columns with only zeros i.e.

          design <- design[,-24]

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #6
            FYI, once you've read up on linear models, you'll know why "design <- design[,-c(24,26)]" will fix the error but still not answer the actual biological question you want to ask

            Comment

            • sindrle
              Senior Member
              • Aug 2013
              • 266

              #7
              Oh man, I look forward to that!

              But hold on.. Is this incorrect then?

              fit <- glmFit(d,design)

              #Genes responding to Treatment in healthy patients
              ExHealthy <- glmLRT(fit, coef="DiseaseHealthy:TreatmentTreatment")

              #Genes responding to Treatment in diabetic patients
              ExDiabetics <- glmLRT(fit, coef="DiseaseDiabetic:TreatmentTreatment")

              #Genes responding to Treatment in any group
              ExAny <- glmLRT(fit, coef=25:26)

              #Genes responding differently to Treatment in diabetic vs normals
              ExAny <- glmLRT(fit, contrast=c)

              I dont know what "contrast" does.. Googling that aswell.

              My brain is boiling, must sleep some hours..
              Last edited by sindrle; 10-22-2013, 05:28 PM.

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                by SEQadmin2



                CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                Despite this, “CRISPR helped turn genome editing from a specialized technique into
                ...
                07-31-2026, 11:01 AM
              • 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

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 08-03-2026, 10:13 AM
              0 responses
              21 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-31-2026, 02:55 AM
              0 responses
              35 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-24-2026, 12:17 PM
              0 responses
              25 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-23-2026, 11:41 AM
              0 responses
              21 views
              0 reactions
              Last Post SEQadmin2  
              Working...