CLIPSeqTools/App.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
usage_error
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # POD documentation - main docs before the code
2  
3 =head1 NAME
4  
5 CLIPSeqTools::App - Main CLIPSeqTools application with tools for analysis of CLIP-Seq libraries.
6  
7 =head1 SYNOPSIS
8  
9 CLIPSeqTools::App is the main CLIPSeqTools application with tools for analysis of CLIP-Seq libraries.
10  
11 =head1 DESCRIPTION
12  
13 CLIPSeqTools::App consists of tools that employ basic and more advanced
14 analysis on CLIP-Seq datasets. The offered tools vary from simpler ones
15 such as the nucletide composition of reads to more complex ones such as
16 Nmer enrichment within the CLIP-Seq reads.
17  
18 =head1 EXAMPLES
19  
20 =cut
21  
22  
23 package CLIPSeqTools::App;
24 $CLIPSeqTools::App::VERSION = '1.0.0';
25  
26 # Make it an App and load plugins
27 use MooseX::App qw(Config Color BashCompletion Man);
28  
29  
30 #######################################################################
31 ####################### Load External modules #####################
32 #######################################################################
33 use Modern::Perl;
34  
35  
36 #######################################################################
37 ########################## Global options #########################
38 #######################################################################
39 option 'verbose' => (
40 is => 'rw',
41 isa => 'Bool',
42 cmd_aliases => 'v',
43 default => 0,
44 documentation => 'print progress lines and extra information.',
45 );
46  
47  
48 #######################################################################
49 ######################## Interface Methods ########################
50 #######################################################################
51 sub usage_error {
52 my ($self, $error_msg) = @_;
53  
54 my $class = ref($self) || $self;
55 my $meta = $class->meta;
56  
57 MooseX::App::Message::Envelope->new(
58 $meta->command_message(
59 header => $error_msg,
60 type => "error",
61 ),
62 $meta->command_usage_command($meta),
63 )->run;
64  
65 exit 1;
66 }
67  
68 1;