| 1 |
#!/usr/bin/env perl |
| 2 |
|
| 3 |
# Copyright (C) 2003, 2004, 2005, 2006, 2007 Stijn van Dongen |
| 4 |
# |
| 5 |
# You can redistribute and/or modify this program under the terms of the GNU |
| 6 |
# General Public License; either version 3 of the License or (at your option) |
| 7 |
# any later version. |
| 8 |
|
| 9 |
use strict; |
| 10 |
|
| 11 |
$" = ' '; |
| 12 |
|
| 13 |
my $do_help = 0; |
| 14 |
my $cline = "mclpipeline --parser=mcxdeblast --parser-tag=blast"; |
| 15 |
|
| 16 |
unless (grep { $_ =~ /^--ass-r[vei]?=/; } @ARGV) { |
| 17 |
$cline .= " --ass-r=max"; |
| 18 |
} |
| 19 |
|
| 20 |
$cline .= " @ARGV"; |
| 21 |
|
| 22 |
if (grep { $_ =~ /--(help|apropos)/; } @ARGV) { |
| 23 |
$do_help = 1; |
| 24 |
} |
| 25 |
elsif (!@ARGV) { |
| 26 |
$do_help = 1; |
| 27 |
$cline .= " --help"; |
| 28 |
} |
| 29 |
|
| 30 |
if ($do_help) { |
| 31 |
print <<_help_; |
| 32 |
mcxblastline wraps around the generic mclpipeline script. It fills in the name |
| 33 |
of the BLAST parser (mcxdeblast) and the tag ('blast') used to propagate |
| 34 |
mcxdeblast options through the pipeline to mcxdeblast itself. You can freely |
| 35 |
use all mclpipeline options other than --parser=<executable> and |
| 36 |
--parser-tag=<str>. |
| 37 |
_help_ |
| 38 |
} |
| 39 |
if (system $cline) { |
| 40 |
print "mcxblastline wrapper: pipeline failed\n"; |
| 41 |
print "cline: $cline\n"; |
| 42 |
exit(1); |
| 43 |
} |
| 44 |
if ($do_help) { |
| 45 |
print <<_help_; |
| 46 |
________________ |
| 47 |
The above options are generic pipeline options. You can pass any mcxdeblast |
| 48 |
option by inserting the 'blast' tag in front of that particular option. For |
| 49 |
example, the mcxdeblast --score=x option (where x is 'b' or 'e') should |
| 50 |
be passed to mcxblastline as --blast-score=x. |
| 51 |
|
| 52 |
The mcxdeblast --xo-dat option is special; it must *not* be prefixed, as it is |
| 53 |
shared with mclpipeline, as can be seen from the above listing. The mcxdeblast |
| 54 |
--xi-dat option should not be used, as it encapsulated by the mclpipeline --xi |
| 55 |
option. |
| 56 |
_help_ |
| 57 |
} |
| 58 |
|