Unconfigured Ad

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

    #1

    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
              Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
              by SEQadmin2



              Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

              Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
              ...
              10-14-2026, 09:55 AM
            • SEQadmin2
              New Genomics Technologies Take Aim at Long-Standing Limits
              by SEQadmin2


              Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

              We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
              ...
              09-28-2026, 10:25 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Yesterday, 11:13 AM
            0 responses
            16 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, Yesterday, 10:48 AM
            0 responses
            17 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-15-2026, 10:52 AM
            0 responses
            35 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            42 views
            0 reactions
            Last Post SEQadmin2  
            Working...