I tried to perform tximport against the result files of salmon,
but it seems not properly be performed.
library("tximport")
srr <- paste0("SRR", 3670977:3670992)
file_salmon_options <- file.path("analysis/salmon_options", srr, "quant.sf")
names(file_salmon_options) <- srr
txi.salmon_options <- tximport(
file_salmon_options, type="salmon", txOut=TRUE)
# reading in files with read_tsv
# 1 Error in readBin(bootCon, "integer", n = expected.n) :
# invalid 'n' argument
The job of salmon is performed with the option "--numBootstraps 100",
and I think this part might be related to the error,
because the error is related to a metadata file (meta_info.json),
which is saved in the directory containing the result of salmon,
and specifying the option changes the value of "num_bootstraps" as 100.
https://github.com/mikelove/tximport/blob/8373c95d36fd342f2f53598ef6bc984021a982b2/R/infReps.R#L75
Could you confirm that this error is reproduced in your environment?
The script of the salmon I performed is this:
#!/bin/bash
srrs=({77..92})
for srr in ${srrs[@]}; do
tools/salmon-latest_linux_x86_64/bin/salmon \
quant \
-i data/transcripts_index_salmon \
-p 4 \
-l A \
--numBootstraps 100 \
--seqBias \
--gcBias \
--posBias \
-r data/SRR36709${srr}.fastq.gz \
-o analysis/salmon_options/SRR36709${srr}
done
Hi, @mikelove
I tried to perform tximport against the result files of salmon, but it seems not properly be performed.
The job of salmon is performed with the option "--numBootstraps 100", and I think this part might be related to the error, because the error is related to a metadata file (meta_info.json), which is saved in the directory containing the result of salmon, and specifying the option changes the value of "num_bootstraps" as 100. https://github.com/mikelove/tximport/blob/8373c95d36fd342f2f53598ef6bc984021a982b2/R/infReps.R#L75
Could you confirm that this error is reproduced in your environment?
The script of the salmon I performed is this:
and the results of salmon I performed is here↓ https://www.dropbox.com/s/qw495oagjj5wb8l/analysis.zip?dl=0
The result of sessionInfo is as follows.