Seqanswers Leaderboard Ad

Collapse

Announcement

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

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

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


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


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


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


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


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

              • 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
              • seqadmin
                Strategies for Sequencing Challenging Samples
                by seqadmin


                Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
                03-22-2024, 06:39 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, 04-11-2024, 12:08 PM
              0 responses
              25 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-10-2024, 10:19 PM
              0 responses
              29 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-10-2024, 09:21 AM
              0 responses
              25 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-04-2024, 09:00 AM
              0 responses
              52 views
              0 likes
              Last Post seqadmin  
              Working...
              X