File Coverage

lib/Bio/VertRes/Config/Recipes/BacteriaSnpCallingUsingSmalt.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::BacteriaSnpCallingUsingSmalt;
2             # ABSTRACT: Standard snp calling pipeline for bacteria
3              
4              
5 1     1   138619 use Moose;
  0            
  0            
6             use Bio::VertRes::Config::Pipelines::QC;
7             use Bio::VertRes::Config::Pipelines::SmaltMapping;
8             use Bio::VertRes::Config::Pipelines::SnpCalling;
9             use Bio::VertRes::Config::RegisterStudy;
10             extends 'Bio::VertRes::Config::Recipes::Common';
11             with 'Bio::VertRes::Config::Recipes::Roles::RegisterStudy';
12             with 'Bio::VertRes::Config::Recipes::Roles::Reference';
13             with 'Bio::VertRes::Config::Recipes::Roles::CreateGlobal';
14             with 'Bio::VertRes::Config::Recipes::Roles::BacteriaSnpCalling';
15              
16             has 'additional_mapper_params' => ( is => 'ro', isa => 'Maybe[Str]' );
17             has 'mapper_index_params' => ( is => 'ro', isa => 'Maybe[Str]' );
18              
19             override '_pipeline_configs' => sub {
20             my ($self) = @_;
21             my @pipeline_configs;
22            
23             $self->add_qc_config(\@pipeline_configs);
24            
25             push(
26             @pipeline_configs,
27             Bio::VertRes::Config::Pipelines::SmaltMapping->new(
28             database => $self->database,
29             database_connect_file => $self->database_connect_file,
30             config_base => $self->config_base,
31             root_base => $self->root_base,
32             log_base => $self->log_base,
33             overwrite_existing_config_file => $self->overwrite_existing_config_file,
34             limits => $self->limits,
35             reference => $self->reference,
36             reference_lookup_file => $self->reference_lookup_file,
37             additional_mapper_params => $self->additional_mapper_params,
38             mapper_index_params => $self->mapper_index_params
39             )
40             );
41            
42             # Insert BAM Improvment here
43            
44             $self->add_bacteria_snp_calling_config(\@pipeline_configs);
45            
46             return \@pipeline_configs;
47             };
48              
49             __PACKAGE__->meta->make_immutable;
50             no Moose;
51             1;
52              
53             __END__
54              
55             =pod
56              
57             =head1 NAME
58              
59             Bio::VertRes::Config::Recipes::BacteriaSnpCallingUsingSmalt - Standard snp calling pipeline for bacteria
60              
61             =head1 VERSION
62              
63             version 1.133090
64              
65             =head1 SYNOPSIS
66              
67             Standard snp calling pipeline for bacteria. Register study, QC, map with smalt, snp call
68             use Bio::VertRes::Config::Recipes::BacteriaSnpCallingUsingSmalt;
69              
70             my $obj = Bio::VertRes::Config::Recipes::BacteriaSnpCallingUsingSmalt->new(
71             database => 'abc',
72             limits => {project => ['Study ABC']},
73             reference => 'ABC',
74             reference_lookup_file => '/path/to/refs.index',
75             additional_mapper_params => '',
76             mapper_index_params => ''
77             );
78             $obj->create;
79              
80             =head1 AUTHOR
81              
82             Andrew J. Page <ap13@sanger.ac.uk>
83              
84             =head1 COPYRIGHT AND LICENSE
85              
86             This software is Copyright (c) 2013 by Wellcome Trust Sanger Institute.
87              
88             This is free software, licensed under:
89              
90             The GNU General Public License, Version 3, June 2007
91              
92             =cut