script/leel.pl untested

filter: Statementstmt 0.0% 0 / 26 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 39 CC 2 SCAR 11.5
CC
2
Cov
0%
BEGIN
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.1
1 #!/usr/bin/env perl
2 # PODNAME: leel.pl
3 # ABSTRACT: The Elite of the Phylogenomic Back-Translators
4  
5 use Modern::Perl '2011';
6  
7 use Getopt::Euclid qw(:vars);
8  
9 ## no critic (RequireLocalizedPunctuationVars)
10 BEGIN{
11 $ENV{Smart_Comments} = $ARGV_verbosity
12 ? join q{ }, map { '#' x (2 + $_) } 1..$ARGV_verbosity
13 : q{}
14 ;
15 }
16 ## use critic
17  
18 use Smart::Comments -ENV;
19 use Config::Any;
20  
21 use aliased 'Bio::MUST::Apps::Leel';
22  
23 # read configuration file
24 my $config = Config::Any->load_files( {
25 files => [ $ARGV_config ],
26 flatten_to_hash => 1,
27 use_ext => 1,
28 } );
29  
30 # build leel object
31 # Note: default args are propagated to all orgs
32 my $leel = Leel->new(
33 config => $config->{$ARGV_config},
34 infiles => \@ARGV_infiles,
35 );
36  
37 # use leel as factory for run_proc object
38 # Note: CLI parameters are introduced here
39 my %args;
40 $args{debug_mode} = $ARGV_verbosity > 5 ? 1 : 0;
41 $args{out_dir} = $ARGV_outdir if $ARGV_outdir;
42 $args{threads} = $ARGV_threads;
43 my $rp = $leel->run_proc(\%args);
44  
45 __END__