Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LanaG
    Junior Member
    • Dec 2010
    • 3

    #1

    attempt to apply non-function while trying DEseq vignette sample data

    Hi,
    I installed the DEseq version 1.0.6 from the repository to my mac, and am trying to use the example provided in the vignettes:



    library("DESeq")
    countsTable <- read.delim(system.file("extra/TagSeqExample.tab", package="DESeq"), header=TRUE, stringsAsFactors=TRUE, row.names="gene")
    conds <- factor(c("T", "T", "T", "Tb", "N", "N"))
    cds <- newCountDataSet( countsTable, conds )
    cds <- estimateSizeFactors( cds )
    cds <- estimateVarianceFunctions( cds )
    res <- nbinomTest( cds, "T", "N")

    every command seemed to work until it hits nbinomTest(), where I get an error: attempt to apply non-function. However when I type help(nbinomTest), the documentation of this function does pop up. Does anyone experience the same problem?

    Also, when I checked what the variable cds is after applying estimateVarianceFunctions( cds ), I get the following output, is this normal???

    Thank you so much!

    > cds
    CountDataSet (storageMode: environment)
    assayData: 18760 features, 6 samples
    element names: counts
    protocolData: none
    phenoData
    sampleNames: T1a, T1b, ..., N2 (6 total)
    varLabels and varMetadata description:
    condition: NA
    sizeFactor: NA
    featureData: none
    experimentData: use 'experimentData(object)'
    Annotation:
  • Simon Anders
    Senior Member
    • Feb 2010
    • 995

    #2
    No clue what went wrong here, but maybe try again using the current release version of DESeq: http://www.bioconductor.org/packages...tml/DESeq.html

    Comment

    • LanaG
      Junior Member
      • Dec 2010
      • 3

      #3
      Now I downloaded the newest DESeq 1.2.1. I have the same error again! But this time it occurs at estimateVarianceFunctions( cds ), even before nbionomTest(). What is wrong??

      Comment

      • RSK
        Junior Member
        • Jun 2009
        • 9

        #4
        Ok, so I am having the same exact issue (on my mac), just with nbinomTest() and scvPlot(). I just downloaded the current version.

        I would appreciate any insight.

        Thanks!

        Comment

        • RSK
          Junior Member
          • Jun 2009
          • 9

          #5
          The issue in my case seems to be only specific to the mac environment, when I run the sample on my Linux box, the issue goes away and everything works very smoothly.

          Comment

          • Wolfgang Huber
            Senior Member
            • Aug 2009
            • 109

            #6
            Dear LanaG and RSK,

            can you send the output of
            sessionInfo()
            One possibility is that the various R add-on packages on your computers are 'out of sync' and need to be all updated. (It's very unlikely a general issue of Mac vs Linux.)

            If possible, please also always include a complete transcript of what you did (like LanaG in her first post), and the output of
            traceback()

            Best wishes
            Wolfgang
            Wolfgang Huber
            EMBL

            Comment

            • duygu
              Junior Member
              • Aug 2011
              • 4

              #7
              any solution

              Hi,
              I am running into the same problem. Does anybody figure out how to resolve it ? Is it specific to Mac environment ? I appreciate any comments, ideas.

              Thank you.
              Duygu

              This is how the code looks like:

              counts <- read.table("All_regions.collapsed.txt", header = TRUE)
              > conds <- c("e8","e9","e10","e10")
              > cds <- newCountDataSet( counts[,1:4], as.factor(conds) )
              > cds <- estimateSizeFactors( cds )
              > cds <- estimateVarianceFunctions( cds )
              Error: attempt to apply non-function

              And this is how the traceback looks like:

              traceback()
              14: predict.locfit(fit, x[is.finite(x)])
              13: predict(fit, x[is.finite(x)])
              12: safepredict(fit, log(q))
              11: pmax(safepredict(fit, log(q)) - xim * q, 1e-08 * q)
              10: cds@rawVarFuncs[[cond]](q)
              9: FUN("e10"[[1L]], ...)
              8: lapply(replicated, function(cond) cds@rawVarFuncs[[cond]](q))
              7: object@rawVarFuncs[[rvfName]](c(1.5, 3.5, 7.3))
              6: validityMethod(object)
              5: identical(x, TRUE)
              4: anyStrings(validityMethod(object))
              3: validObject(cds)
              2: `rawVarFuncTable<-`(`*tmp*`, value = c("e10", "_max", "_max"))
              1: estimateVarianceFunctions(cds)

              Comment

              • Simon Anders
                Senior Member
                • Feb 2010
                • 995

                #8
                Maybe something is strange with your count data. Could you please save you count table and your count dataset to a file (with
                Code:
                save( counts, cds, file="foo.rda" )
                and send me the file by email? Then I can have a look.

                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
                  ...
                  Yesterday, 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, Today, 10:52 AM
                0 responses
                8 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, Yesterday, 05:39 AM
                0 responses
                17 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-13-2026, 09:56 AM
                0 responses
                15 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-09-2026, 11:14 AM
                0 responses
                27 views
                0 reactions
                Last Post SEQadmin2  
                Working...