File Coverage

lib/Bio/VertRes/Config/Pipelines/Store.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1             package Bio::VertRes::Config::Pipelines::Store;
2              
3             # ABSTRACT: A class for generating the Store pipeline config file which archives data to nfs units
4              
5              
6 1     1   271977 use Moose;
  0            
  0            
7             use Bio::VertRes::Config::Pipelines::Common;
8             extends 'Bio::VertRes::Config::Pipelines::Common';
9              
10             has 'pipeline_short_name' => ( is => 'ro', isa => 'Str', default => 'stored' );
11             has 'module' => ( is => 'ro', isa => 'Str', default => 'VertRes::Pipelines::StoreLane' );
12             has 'toplevel_action' => ( is => 'ro', isa => 'Str', default => '__VRTrack_Storing__' );
13              
14             has '_limit' => ( is => 'ro', isa => 'Int', default => 100 );
15              
16             override 'to_hash' => sub {
17             my ($self) = @_;
18             my $output_hash = super();
19             $output_hash->{limit} = $self->_limit;
20             $output_hash->{vrtrack_processed_flags} = { qc => 1, stored => 0 };
21              
22             return $output_hash;
23             };
24              
25             __PACKAGE__->meta->make_immutable;
26             no Moose;
27             1;
28              
29             __END__
30              
31             =pod
32              
33             =head1 NAME
34              
35             Bio::VertRes::Config::Pipelines::Store - A class for generating the Store pipeline config file which archives data to nfs units
36              
37             =head1 VERSION
38              
39             version 1.133090
40              
41             =head1 SYNOPSIS
42              
43             A class for generating the Store pipeline config file
44             use Bio::VertRes::Config::Pipelines::Store;
45              
46             my $pipeline = Bio::VertRes::Config::Pipelines::Store->new(database => 'abc');
47             $pipeline->to_hash();
48              
49             =head1 AUTHOR
50              
51             Andrew J. Page <ap13@sanger.ac.uk>
52              
53             =head1 COPYRIGHT AND LICENSE
54              
55             This software is Copyright (c) 2013 by Wellcome Trust Sanger Institute.
56              
57             This is free software, licensed under:
58              
59             The GNU General Public License, Version 3, June 2007
60              
61             =cut