Question: Error in DESeq analysis directory argument - No such file or directory
0
gravatar for AW
3 months ago by
AW0
AW0 wrote:

Hello,

I'm using DESeq2 for RNA-Seq data analysis. Everything looks great but I get an error about my directory at the final step even though I'm in the correct working directory

sampleCondition <- read.table(file=sampleFiles, header = TRUE, sep = "", row.names = 1)

sampleTable <- data.frame(sampleName = sampleFiles, fileName = sampleFiles, condition = samplecondition)

> getwd()
[1] "C:/Users/xyz/Downloads"

directory <- "/Users/xyz/Downloads/FeatureCounts.txt"
 ddsHTSeq <- DESeqDataSetFromHTSeqCount(sampleTable = sampleTable,directory = directory, design = ~condition)

Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
  cannot open file '/Users/xyz/Downloads/FeatureCounts.txt/0': No such file or directory

please help! I'm pretty sure the directory exists and that I am currently working in that directory (see getwd). Everything else in the analysis looks good

hts rna-seq deseq • 182 views
ADD COMMENTlink written 3 months ago by AW0

If sampleFiles are in the directory: "C:/Users/xyz/Downloads", try directory <- "C:\\Users\\xyz\\Downloads"?

ADD REPLYlink written 3 months ago by SMK1.8k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2024 users visited in the last hour