Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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


    • #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

      • seqadmin
        Choosing Between NGS and qPCR
        by seqadmin



        Next-generation sequencing (NGS) and quantitative polymerase chain reaction (qPCR) are essential techniques for investigating the genome, transcriptome, and epigenome. In many cases, choosing the appropriate technique is straightforward, but in others, it can be more challenging to determine the most effective option. A simple distinction is that smaller, more focused projects are typically better suited for qPCR, while larger, more complex datasets benefit from NGS. However,...
        10-18-2024, 07:11 AM
      • seqadmin
        Non-Coding RNA Research and Technologies
        by seqadmin




        Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

        Nobel Prize for MicroRNA Discovery
        This week,...
        10-07-2024, 08:07 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 11-01-2024, 06:09 AM
      0 responses
      13 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 10-30-2024, 05:31 AM
      0 responses
      16 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 10-24-2024, 06:58 AM
      0 responses
      24 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 10-23-2024, 08:43 AM
      0 responses
      52 views
      0 likes
      Last Post seqadmin  
      Working...
      X