File Coverage

lib/Bio/VertRes/Config/Pipelines/SpadesAssembly.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::SpadesAssembly;
2              
3             # ABSTRACT: A base class for generating an Assembly pipeline config file using spades
4              
5              
6              
7 1     1   130298 use Moose;
  0            
  0            
8             extends 'Bio::VertRes::Config::Pipelines::Assembly';
9              
10             has '_assembler' => ( is => 'ro', isa => 'Str', default => 'spades' );
11             has '_assembler_exec' => ( is => 'ro', isa => 'Str', default => '/software/pathogen/external/apps/usr/bin/spades.py' );
12             has '_optimiser_exec' => ( is => 'ro', isa => 'Str', default => '/software/pathogen/external/apps/usr/bin/spades.py' );
13             has '_max_threads' => ( is => 'ro', isa => 'Int', default => 2 );
14             has '_single_cell' => ( is => 'ro', isa => 'Bool', default => 0 );
15              
16             override 'to_hash' => sub {
17             my ($self) = @_;
18             my $output_hash = super();
19              
20             $output_hash->{data}{single_cell} = $self->_single_cell;
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::SpadesAssembly - A base class for generating an Assembly pipeline config file using spades
36              
37             =head1 VERSION
38              
39             version 1.133090
40              
41             =head1 SYNOPSIS
42              
43             A class for generating the Assembly pipeline config file using the velvet assembler
44             use Bio::VertRes::Config::Pipelines::SpadesAssembly;
45              
46             my $pipeline = Bio::VertRes::Config::Pipelines::SpadesAssembly->new(database => 'abc'
47             config_base => '/path/to/config/base',
48             limits => { project => ['project name']);
49             $pipeline->to_hash();
50              
51             =head1 AUTHOR
52              
53             Andrew J. Page <ap13@sanger.ac.uk>
54              
55             =head1 COPYRIGHT AND LICENSE
56              
57             This software is Copyright (c) 2013 by Wellcome Trust Sanger Institute.
58              
59             This is free software, licensed under:
60              
61             The GNU General Public License, Version 3, June 2007
62              
63             =cut