Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tirohia
    Member
    • Nov 2011
    • 47

    #1

    DESeq error that has me worried.

    So I'm reading in data like this:

    Code:
    datafile<-file.choose() # choose input file
    counttable = read.table( datafile,sep=",", header=TRUE, row.names=1 )
    head(counttable)
    I get the design working and proceed with the following:
    Code:
    pairedSamples = design$libType == "paired-end"
    countTable = counttable[ , pairedSamples ]
    condition = design$condition[ pairedSamples ]
    head(countTable)
    that last line returns:
    Code:
            untreated1 untreated2 untreated3 untreated4 untreated5 treated1 treated2 treated3 treated4 treated5
    gene5518002       2370        804       1621       1824       3571     2920     2228     4168     1197     1981
    gene5518003        624        439        710        967       1162     1076      748     1120      304      624
    gene5518004        284        104        356        627        644      301      284      487       64      348
    gene5518005         17         22         38         59         16       63       11       14       14       34
    gene5518007          0          2          0          6          0        4        0        4        0        0
    gene5518008        611        230        500        861        962      674      518     1130      201      806
    The problem occurs here:
    Code:
    cds <- newCountDataSet(countTable, conds)
    which returns:
    Error in round(countData) : Non-numeric argument to mathematical function

    This isn't a new error. If I do a bit of digging around the general consensus appears to be that for some reason countData is fitting the letters in the gene name and spitting the dummy.

    When I'm reading my table in though I specify row.names=1 specifically so that this sort of thing shouldn't happen. If I rename all my genes to purely numeric, i.e. get rid of the word gene, everything works fine.

    After reading http://seqanswers.com/forums/showthread.php?t=26598 it makes me suspect that my now numeric gene names might be being used as gene counts which would screw things up spectacularly. Given that I've removed the letters from the gene names and everything works, it implies that there's nothing wrong with the rest of my data.

    Coincidently, when I run through the viginette with the Pasilla data, the everything works fine, and there are letters in the gene names.

    Is anyone able to enlighten me as to what might be going wrong here?
  • gringer
    David Eccles (gringer)
    • May 2011
    • 845

    #2
    Does this also happen when you add 'stringsAsFactors = FALSE' to the table read function? It sounds a bit like a data formatting error.

    Comment

    • tirohia
      Member
      • Nov 2011
      • 47

      #3
      Yup. Adding that to the table read didn't change anything.

      My first thought was data formatting - given that it works fine for the pasilla viginette. After having removed all of the letters from the gene names though, it runs fine. Which makes me think there's nothing wrong with the rest of my data.

      Which means for some reason that I can't fathom, it's trying to use the first column as read counts rather than genenames. Or at least, i think that's what it's trying to do.

      Cheers
      Ben.

      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, 10-22-2026, 11:13 AM
      0 responses
      45 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 10:48 AM
      0 responses
      34 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      44 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      45 views
      0 reactions
      Last Post SEQadmin2  
      Working...