batch blast programme
2
0
Entering edit mode
8.9 years ago
Eva_Maria ▴ 190

Hi every one I want to do a batch standalone blastn with this command

blastall -p blastp -d database.fasta -i aa.fasta -m 8 -e 1e-5 -o aa

I have more than 4000 inputs and I want out put respect to input name as I shown in the above command. How to do this?

perl balst • 1.9k views
ADD COMMENT
2
Entering edit mode
8.9 years ago
venu 7.1k

You can loop above command over each file. Search google for 'bash for loop'

ADD COMMENT
0
Entering edit mode

Start with this. Then look to parallelize using GNU parallel or any other similar hardware backed parallelization. Running 4000 files in a loop is a bit daunting for anything advanced, such as tweaking performance or debugging.

ADD REPLY
0
Entering edit mode

You are using blastall which belongs to the outdated version of BLAST. Consider using BLAST+ package.

ADD REPLY
1
Entering edit mode
8.9 years ago
Eva_Maria ▴ 190

thank you for your comments

I found a solution for this

I wrote a code as below and it works

FILES=/home/ashok/Desktop/blast_batch/a/*
for f in $FILES
do
 blastn -db da.fasta -query "$f" -evalue 1e-5 -outfmt 6 -out "$f".out
done
ADD COMMENT

Login before adding your answer.

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