File Coverage

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