Unconfigured Ad

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

    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
        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by SEQadmin2


        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.


        Here are nine questions we think about, in roughly the order they matter, before...
        06-18-2026, 07:11 AM
      • SEQadmin2
        From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
        by SEQadmin2


        Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


        The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
        ...
        06-02-2026, 10:05 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 06-17-2026, 06:09 AM
      0 responses
      30 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-09-2026, 11:58 AM
      0 responses
      44 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      51 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      51 views
      0 reactions
      Last Post SEQadmin2  
      Working...