File Coverage

lib/Bio/VertRes/Config/Recipes/BacteriaAssemblyAndAnnotation.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::Recipes::BacteriaAssemblyAndAnnotation;
2             # ABSTRACT: Create the assembly and anntation files only, so no reference required, but for it to run you need to have done QC first
3              
4              
5 1     1   146893 use Moose;
  0            
  0            
6             extends 'Bio::VertRes::Config::Recipes::Common';
7             with 'Bio::VertRes::Config::Recipes::Roles::BacteriaRegisterStudy';
8              
9              
10             has 'assembler' => ( is => 'ro', isa => 'Str', default => 'velvet' );
11             has '_error_correct' => ( is => 'ro', isa => 'Bool', default => 0 );
12             has '_remove_primers' => ( is => 'ro', isa => 'Bool', default => 0 );
13             has '_pipeline_version' => ( is => 'ro', isa => 'Num', default => 2.1 );
14             has '_normalise' => ( is => 'ro', isa => 'Bool', default => 0 );
15             has '_kingdom' => ( is => 'ro', isa => 'Str', default => "Bacteria" );
16              
17              
18             override '_pipeline_configs' => sub {
19             my ($self) = @_;
20             my @pipeline_configs;
21             if($self->assembler eq 'spades')
22             {
23             $self->add_bacteria_spades_assembly_config(\@pipeline_configs);
24             }
25             else
26             {
27             $self->add_bacteria_velvet_assembly_config(\@pipeline_configs);
28             }
29             $self->add_bacteria_annotate_config(\@pipeline_configs);
30              
31             return \@pipeline_configs;
32             };
33              
34             __PACKAGE__->meta->make_immutable;
35             no Moose;
36             1;
37              
38             __END__
39              
40             =pod
41              
42             =head1 NAME
43              
44             Bio::VertRes::Config::Recipes::BacteriaAssemblyAndAnnotation - Create the assembly and anntation files only, so no reference required, but for it to run you need to have done QC first
45              
46             =head1 VERSION
47              
48             version 1.133090
49              
50             =head1 SYNOPSIS
51              
52             Register and QC a study
53             use Bio::VertRes::Config::Recipes::BacteriaAssemblyAndAnnotation;
54              
55             my $obj = Bio::VertRes::Config::Recipes::BacteriaAssemblyAndAnnotation->new(
56             database => 'abc',
57             limits => {project => ['Study ABC']}
58             );
59             $obj->create;
60              
61             =head1 AUTHOR
62              
63             Andrew J. Page <ap13@sanger.ac.uk>
64              
65             =head1 COPYRIGHT AND LICENSE
66              
67             This software is Copyright (c) 2013 by Wellcome Trust Sanger Institute.
68              
69             This is free software, licensed under:
70              
71             The GNU General Public License, Version 3, June 2007
72              
73             =cut