Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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

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


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

      Comment


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


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


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

            • seqadmin
              Non-Coding RNA Research and Technologies
              by seqadmin




              Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

              Nobel Prize for MicroRNA Discovery
              This week,...
              10-07-2024, 08:07 AM
            • seqadmin
              Recent Developments in Metagenomics
              by seqadmin





              Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
              09-23-2024, 06:35 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Today, 06:35 AM
            0 responses
            7 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, Yesterday, 02:44 PM
            0 responses
            7 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 10-11-2024, 06:55 AM
            0 responses
            15 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 10-02-2024, 04:51 AM
            0 responses
            111 views
            0 likes
            Last Post seqadmin  
            Working...
            X