I am on a Mac using UNIX. I am trying to use the kallisto quant command on all files in a directory (instead of manually entering them). Because I'm running the analysis against the same index file, I first enter the following:
./kallisto index -i --index --make-unique index.fa
This successfully creates an index file. Then, I tried this:
for file in *.fasta; do kallisto quant --single -l 200 -s 0.1 -o $file-aligned
"$file"; done
While the $file-aligned folders are created, they're empty. I get an error that states that the index file is missing. So I assumed I would need to specify the index file in the command line. I then tried this:
for file in *.fasta; do kallisto quant -i index.fa --single -l 200 -s 0.1 -o
$file-aligned "$file"; done
I get an error that says "Error: incompatible indices. Found version 0, expected version 10.
I have now also tried the following:
for file in *.fasta; do ./kallisto quant -i index --single - 200 -s 0.01 -o
"${file}-aligned" "${file}";
but I get an error saying the index file is not found.
I am now running
or file in *.fasta; do ./kallisto quant -i index --single -l 200 -s 0.1 -o $file-aligned
"$file"; done
This sort of works. The index file error messages are gone, but it runs quant on the same file 10 times instead of each file once. If I run echo $file it spits back the file that my command is running repeatedly.
If I close terminal, start a new session and run the same command, I get
Error: file not found ""