DB/SeqFeature/Store/berkeleydb3.pm: fix errors so it compiles (issue #284)
[bioperl-live.git] / maintenance / ncbi_blast_switches.pl
blobc5053b29ce751bc53fa244e9161e7f28231a3e42
1 #!/usr/bin/perl
3 # This script determines all the valid command line switches
4 # from the four main NCBI BLAST tools, and produces Perl code
5 # to put into Bio/Tools/Run/StandAloneBlast.pm
7 # Torsten Seemann
8 # 27 June 2006
11 my @exe = qw(blastall blastpgp rpsblast bl2seq);
13 for my $exe (@exe) {
14 open(HELP, "$exe - |") or die $!;
15 my @switch;
16 while (<HELP>) {
17 next unless m/^\s*-(\w)\s/;
18 push @switch, $1;
20 close(HELP);
21 print "\t\@",uc($exe),"_PARAMS = qw(", join(q{ }, sort @switch), ");\n";