Tximport error with Salmon data
1
0
Entering edit mode
3.8 years ago

When I run this line of code:

txi <- tximport(files, type="salmon", tx2gene=tx2gene[,c("tx_id", "ensgene")], countsFromAbundance="lengthScaledTPM", ignoreTxVersion = TRUE)

I get this error:

Error in tximport(files, type = "salmon", tx2gene = tx2gene[, c("tx_id",  : 
  length(files) > 0 is not TRUE

Why is it saying this error?

RNA-Seq Salmon R • 2.0k views
ADD COMMENT
0
Entering edit mode

Your files vector/list doesn't have any elements.

ADD REPLY
0
Entering edit mode

This is what I put:

files <- file.path(samples, "quant.sf")
ADD REPLY
0
Entering edit mode
samples <- list.files(path = "./data", full.names = T, pattern="salmon$")
ADD REPLY
1
Entering edit mode
3.8 years ago
Ram 43k

Look at samples and files. They should be non-empty. If they are empty, you're doing something wrong.

ADD COMMENT
0
Entering edit mode

Thank you, you are correct. They are empty

ADD REPLY

Login before adding your answer.

Traffic: 3277 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