Perl Script For Blast+
2
0
Entering edit mode
11.6 years ago
H@rry ▴ 30

Hi, how can I blast using perl script as I have whole database i.e subject with me and a single protein file is arranged in FASTA format. I have used Blast+ for the creation of database and have three file .psq, .pin, and phr, for the same and wish to obtain the results of all the query sequences in one file. Please suggest some script as I am new in perl.

thank you in advance.

perl blast+ bioperl • 4.5k views
ADD COMMENT
1
Entering edit mode
11.6 years ago
Daniel ★ 4.0k

You don't need to use perl (or any other language) for this, just call blast+ as it is

Tutorials like this will help: https://molevol.mbl.edu/wiki/index.php/BLAST_UNIX_Tutorial

ADD COMMENT
0
Entering edit mode

Thanks a ton..it works fine ...

ADD REPLY
1
Entering edit mode
11.6 years ago
vijay ★ 1.6k

You can use the system or the exec command. The basic syntax is as below. Please note that you keep the blast executable file in the same folder as your perl scripts.

system("blastn -query $inputfile -db $db-name -evalue $evalue -out output_filename");

ADD COMMENT

Login before adding your answer.

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