Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coralgirl
    Junior Member
    • Nov 2011
    • 6

    #1

    DESeq Count Tables Prep

    Hi,

    I'm new to almost all of this - R, DESeq, bioinformatics etc... (obviously a bench biologist).

    I've been given a count table from an alignment run with a custom Perl script that is a tab delimited text file. The header includies the ContigID title, and each sample name, and then each row contains the contig number, and the counts for each sample.

    How do I use this as the count file for DESeq? Can I import it as a tab delim. txt file, or do I have to change it into a file that is readable by DESeq?

    I just want to be able to get to the point where I can walk through the DESeq vignette on R with my own data.

    Thanks
  • coralgirl
    Junior Member
    • Nov 2011
    • 6

    #2
    An addition to my post:

    So I've uploaded the txt file successfully as a read.table, and uploaded library(DESeq) and am now trying to get my file to be the countsTable, and this is where I'm running into problems. My R code:

    > countsTable <- counts( myFile )
    Error in function (classes, fdef, mtable) :
    unable to find an inherited method for function "counts", for signature "data.frame"

    How do I make my read.table file (i.e. the uploaded tab delim. txt file) to act as the countsTable?

    Thanks

    Comment

    • kopi-o
      Senior Member
      • Feb 2008
      • 319

      #3
      Have you tried the newCountDataSet() function? It should work if your file that you imported with read.table() is in the correct format, which it may very well be from your description. You're not supposed to use the counts() function in this case - I think that's just a way to extract counts from a pre-existing CountDataSet object, which you don't have.

      Comment

      • coralgirl
        Junior Member
        • Nov 2011
        • 6

        #4
        Ok - so I tried the newCountDataSet() function with the imported read.table() and I received the following error:
        Error in round(countData) : Non-numeric argument to mathematical function

        This is everything that I've input so far:
        > fullmoonDN <- read.table("filelocation",header=TRUE,sep="\t")
        > conds <- factor( c("AM0008","AM0009") )
        > cds <- newCountDataSet( fullmoonDN, conds )
        Error in round(countData) : Non-numeric argument to mathematical function
        > #show the first 5 rows
        > fullmoonDN[1:5,]
        X AM0008 AM0009
        1 EZ031385 3045 3218
        2 EZ019649 12679 9190
        3 EZ010289 800 28050
        4 EF202590 816 3108
        5 EZ010226 633 459

        Is there something wrong with how my txt file is laid out? I did not have any text input for the first column name, and it automatically put an X (I tried with having the first column name as Contig_ID, and I came up with the same result). I'm not sure what I'm doing wrong here. Thoughts?

        Comment

        • kopi-o
          Senior Member
          • Feb 2008
          • 319

          #5
          Try to add "row.names=1" to the read.table command. That will make the first column into row names instead of entries in a column. The newCountDataSet() function excepts only numerical values in the input.

          Comment

          • coralgirl
            Junior Member
            • Nov 2011
            • 6

            #6
            That worked perfectly. Thank you!

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