Convenient scripts for batch blast search on NIBB bias
Compatible with updated bias4 (April 1, 2014).
- ruby
- rake
- NCBI blast+ (not classical blastall)
Download batch-blast-bias
package from https://github.com/shujishigenobu/batch-blast-bias/archive/1.0.tar.gz and then extract it.
Or you can clone the latest version of batch-blast-bias
from github using git
command.
$ git clone git://github.com/shujishigenobu/batch-blast-bias.git
You can also download example.fasta
for practice from https://github.com/shujishigenobu/batch-blast-bias/downloads .
batch-blast-bias
requires conf.yml
, a configuration file. An example file is included in the package. It would be good idea to create your own conf.yml
from conf.yml.example
.
$ cp conf.yml.example conf.yml
Edit conf.yml
using your favorite editor. An example is as follows:
query: example.fasta
db: /bio/db/blast/db/swissprot
num_fasta_per_subfile: 100
batch_script_template: templates/run_blastx.sh.template
batch_script_template_sge: templates/sge.bias.small
$ rake build_batch_template
edit build_batch_template
if needed.
$ rake split_query
$ rake generate_batch_jobs
$ rake sge_submit_jobs
Now your jobs are queued. Monitor your jobs by SGE command like qstat
.
$ rake postchk_sge
$ rake combine_blast_results
$ rake finalize
Use scripts/monitor_progress.rb
(example)
$ ruby scripts/monitor_progress.rb
ORF_Dpul_131012.pep_1.fasta job1 100
ORF_Dpul_131012.pep_2.fasta job112 100
...
ORF_Dpul_131012.pep_658.fasta job621 100
ORF_Dpul_131012.pep_659.fasta job622 60
# 64300 / 65860 (97.63%)
Columns are 1) query name, 2) job ID and 3) number of completed queries.
Useful scripts:
scripts/rescue_killed_jobs.rb
- ``scripts/detect_failed_batch_scripts.rb`
Copyright 2012 Shuji Shigenobu.
Licensed under the MIT License