File Coverage

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