tximport ERROR : all(file.exists(files)) is not TRUE
1
0
Entering edit mode
@d82dd0af
Last seen 7 months ago
Japan

I am using Fedora35 to study expression level analysis.

I want to load the following file (Sample2condition.txt) with tximport.

enter image description here

So, I executed the command in the directory where the data file is located, using the following procedure.

$ s2c <- read.table("sample2condition.txt", header=T, sep="\t", stringsAsFactors=F)
$ s2c$group <- gsub(" ", "_", s2c$group) 

$ bfiles <- s2c$path
$ names(files) <- s2c$sample

$ txi <- tximport(files, type="rsem", txIn=F, txOut=F)

However, I get an error message saying "all(file.exists(files)) is not TRUE" and cannot proceed.

What is the problem?

Linux R tximport • 534 views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 3 hours ago
United States

This means that the files do not exist at the location you specified.

Some R basics:

getwd() # tells you R's working directory

list.files(".") # tells you what files are in a particular location

Just look at files and work out why the files aren't where you specified.

ADD COMMENT
0
Entering edit mode

Thank you for your answer.

I have tried the method you taught me.

>getwd()
>"/home/expression/STAR"

>list.files(".")
>"sample2condition.txt"

The error does not go away even though the necessary files are in the working directory as shown above.

ADD REPLY

Login before adding your answer.

Traffic: 236 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6