Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • yifangt
    Member
    • Feb 2011
    • 61

    EdgeR problem

    Hello,

    Tried using edgeR and met a problem that bugs me for a while, could not go further with edgeR following to the manual step-by-step.
    The experiment consists of four lanes of controls and three lanes of cold treatment to see the DE of the cold treatment.

    Here is my screen output following exactly the manual.

    Code:
    > raw.data <- read.delim(file="Cold-CK.csv")
    > names(raw.data)
    [1] "FeatureID" "s1FC36"    "s1FC77"    "s1FC79"    "s2FC77"    "s2FC36"   
    [7] "s2FC79"    "s3FC77"   
    > 
    > data <- raw.data[, 2:8]
    > rownames(data) <- raw.data[, 1]
    > group <- c(rep("CK", 4), rep("Cold", 3))
    > data <- DGEList(counts=data, group=group)
    Calculating library sizes from column totals.
    > dim(data)
    [1] 28775     7
    > 
    > data <- data[rowSums(1e+06*data$counts/expandAsMatrix(data$samples$lib.size, dim(data)) >1) >=3, ]
    Error in inherits(x, "data.frame") : 
      could not find function "expandAsMatrix"
    The expandAsMatrix function seems built-in. Not sure if any body has met this before. Any clue with this problem is greatly appreciated.

    Yifang
  • Gordon Smyth
    Member
    • Apr 2011
    • 91

    #2
    Hard to say what the problem is, because expandAsMatrix() certainly is an edgeR function, although not one that users usually need to call directly.

    I suggest that you try re-installing the current edgeR from Bioconductor. If that doesn't solve your problem, please ask for help on the Bioconductor mailing list. The edgeR maintainers regularly read and reply to that list, but much less often to SEQanswers. You'll need to include sessionInfo() output.

    Comment

    • Balat
      Member
      • May 2010
      • 36

      #3
      I am also getting the same error. I have downloaded the latest version of the software from the Bioconductor site.

      Comment

      • Balat
        Member
        • May 2010
        • 36

        #4
        It looks like the latest version of edgeR is built for R 2.13.0. I now don't get the error when I used the edgeR in the latest version of 'R'.

        Comment

        • Davis McC
          Member
          • May 2010
          • 16

          #5
          I cannot reproduce this error. I strongly suspect that you are not using edgeR version 2.2.5, which is the latest release. edgeR version 2.2.5 was released with Bioconductor 2.8. The previous release of edgeR did not contain the expandAsMatrix() function, so if you are using an older version then I would expect you to see this message.

          One trick with Bioconductor is that it installs the version of Bioconductor that corresponds to the version of R that you are running. The latest release of Bioconductor is 2.8, which aligns with R 2.13.

          Thus, to obtain the latest release of edgeR from Bioconductor with the biocLite() command you must be running R 2.13. If you are running R 2.12 and install using biocLite then you will get the version of edgeR from Bioconductor 2.7.

          This is why Gordon (and others!) will ask you to provide the output from sessionInfo() when you are reporting a possible bug. If we can't tell exactly what version of the software you are using then we have to guess at the cause of the problem. If we know exactly what versions of software you are using then we can pinpoint a bug and/or a solution to your problem much more easily.

          To reiterate Gordon's request: the Bioconductor mailing list is a better forum for this sort of question. It's a more dynamic community to respond. I feel SeqAnswers is better for more general discussion. But then that just might be me.

          HTH.

          Best wishes
          Davis

          Comment

          • yifangt
            Member
            • Feb 2011
            • 61

            #6
            edgeR: Error gone!

            Thanks, the error has gone after update the edgeR to 2.2.5 and R to 2.13.0.

            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, Today, 11:41 AM
            0 responses
            9 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-20-2026, 11:10 AM
            0 responses
            23 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-13-2026, 10:26 AM
            0 responses
            35 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-09-2026, 10:04 AM
            0 responses
            45 views
            0 reactions
            Last Post SEQadmin2  
            Working...