Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • drdna
    Member
    • May 2012
    • 76

    #1

    DESeq question

    I'm trying to load data into R so that I can run DESeq and I am getting the following error:

    > datafile = system.file( "PK/extdata/PK_DESeq")
    > datafile
    [1] ""
    > PKCountTable = read.table( datafile, header=TRUE, row.names=1 )
    Error in read.table(datafile, header = TRUE, row.names = 1) :
    no lines available in input
    In addition: Warning message:
    In file(file, "rt") :
    file("") only supports open = "w+" and open = "w+b": using the former

    R seems to be having a problem finding the file even though it autofills the file path when I use tab. Note that when I retype datafile. It shows an empty path. Anyone have an idea what I am doing wrong?
  • Simon Anders
    Senior Member
    • Feb 2010
    • 995

    #2
    Any reason why you used the "system.file" function? You did read the explanation in the help page (and the vignette) before asking the question, right?

    Comment

    • drdna
      Member
      • May 2012
      • 76

      #3
      Thanks for the quick reply Simon. Yes I did read the vignette but it doesn't explain how to load non-example data into R. Unfortunately, I had never used R before so I tried to apply the vignette example to my own situation:

      The instructions in the http://bioconductor.org/packages/rel.../doc/DESeq.pdf document only shows how to load the sample data. Specifically, it shows:

      > datafile = system.file( "extdata/pasilla_gene_counts.tsv", package="pasilla" )

      followed by loading of the "datafile" into the countTable:

      > pasillaCountTable = read.table( datafile, header=TRUE, row.names=1 )".

      My assumption was that one needed to use the system.file command to define datafile for read.table. However, after looking up various resources for R, I have discovered that one can use the explicit file path for read.table. Once I got that figured out it was very straightforward and I was able to get my first analysis done within 10 minutes. Thanks for an excellent tool.

      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
      19 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, Yesterday, 10:48 AM
      0 responses
      18 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      36 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...