File Coverage

lib/Bio/VertRes/Config/Recipes/EukaryotesSnpCallingUsingSmalt.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::EukaryotesSnpCallingUsingSmalt;
2             # ABSTRACT: Standard snp calling pipeline for bacteria
3              
4              
5 1     1   149617 use Moose;
  0            
  0            
6             use Bio::VertRes::Config::Pipelines::SmaltMapping;
7             extends 'Bio::VertRes::Config::Recipes::Common';
8             with 'Bio::VertRes::Config::Recipes::Roles::RegisterStudy';
9             with 'Bio::VertRes::Config::Recipes::Roles::Reference';
10             with 'Bio::VertRes::Config::Recipes::Roles::CreateGlobal';
11             with 'Bio::VertRes::Config::Recipes::Roles::EukaryotesSnpCalling';
12             with 'Bio::VertRes::Config::Recipes::Roles::EukaryotesMapping';
13              
14              
15             has 'additional_mapper_params' => ( is => 'ro', isa => 'Str', default => '-r 0 -x -y 0.8');
16             has 'mapper_index_params' => ( is => 'ro', isa => 'Str', default => '-k 13 -s 2' );
17              
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_eukaryotes_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::EukaryotesSnpCallingUsingSmalt - 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 eukaryotes.
68             use Bio::VertRes::Config::Recipes::EukaryotesSnpCallingUsingBwa;
69              
70             my $obj = Bio::VertRes::Config::Recipes::EukaryotesSnpCallingUsingBwa->new(
71             database => 'abc',
72             limits => {project => ['Study ABC']},
73             reference => 'ABC',
74             reference_lookup_file => '/path/to/refs.index'
75             );
76             $obj->create;
77              
78             =head1 AUTHOR
79              
80             Andrew J. Page <ap13@sanger.ac.uk>
81              
82             =head1 COPYRIGHT AND LICENSE
83              
84             This software is Copyright (c) 2013 by Wellcome Trust Sanger Institute.
85              
86             This is free software, licensed under:
87              
88             The GNU General Public License, Version 3, June 2007
89              
90             =cut