So, I have a directory:
Pipeline
- database: contains the custom blast database
- scripts
- genomes
- output
I want my local blast.sh script ( in the script folder) to take all the *.fna of the genomes folder and put results in the output folder.
So i specified the following:
for F in ../genomes/*.fna
do
blastn -query $F -db ../database/blastdb/dbGOI.fasta -outfmt 5 -out ../output/${F%.*}.xml
done
But when I run this, all of my output .xml files are in the genome folder and I do not know why since I specified that in the code.
Am I missing something?
You are probably missing specifying correct relative path for the output. You could explicitly provide full path for
-out
specification.but this says, go one folder above, into output and put it there?