Error in tximport(files, type = "kallisto", tx2gene = tx2gene, reader = read_tsv) : unused argument (reader = read_tsv)
1
0
Entering edit mode
3.6 years ago

I am having this error when running tximport. What the Error massage means?

txi <- tximport(files, type = "kallisto", tx2gene = tx2gene, reader = read_tsv) Error in tximport(files, type = "kallisto", tx2gene = tx2gene, reader = read_tsv) : unused argument (reader = read_tsv)

R • 2.0k views
ADD COMMENT
0
Entering edit mode
3.6 years ago
ATpoint 82k

It means that this option does not exist. From the manual (first hit when using a prominent search engine for "tximport reader"):

A change from version 1.2 to 1.4 is that the reader is not specified by the user anymore, but chosen automatically based on the availability of the readr package. Advanced users can still customize the import of files using the importer argument.

ADD COMMENT
0
Entering edit mode

Ok thanks, but, how to fix it "unused argument (reader = read_tsv)"

ADD REPLY
0
Entering edit mode

Remove that argument from the command you run, the reader is being it is autodetected. If the readr package is installed the tool will use it automatically, otherwise it will use something else.

ADD REPLY
0
Entering edit mode

Ok, I removed the argument. Now, it is giving me the following error.

txi <- tximport(files, type="kallisto", tx2gene=tx2gene) Error in tximport(files, type = "kallisto", tx2gene = tx2gene) : length(files) > 0 is not TRUE

The bellow is my proceeding codes;

samples <- read.table(file.path(dir, "sorted.txt"), header = TRUE) files <- file.path(dir, "kallisto", samples$run, "abundance.tsv") names(files) <- paste0("sample", 1:6) Error in names(files) <- paste0("sample", 1:6) : 'names' attribute [6] must be the same length as the vector [0] all(file.exists(files)) [1] TRUE

ADD REPLY

Login before adding your answer.

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