File Coverage

lib/Bio/VertRes/Config/Recipes/BacteriaRnaSeqExpressionUsingSmalt.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::BacteriaRnaSeqExpressionUsingSmalt;
2             # ABSTRACT: Standard snp calling pipeline for bacteria
3              
4              
5 1     1   164203 use Moose;
  0            
  0            
6             use Bio::VertRes::Config::Pipelines::QC;
7             use Bio::VertRes::Config::Pipelines::SmaltMapping;
8             use Bio::VertRes::Config::Pipelines::RnaSeqExpression;
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::BacteriaRnaSeqExpression';
15              
16             has 'protocol' => ( is => 'ro', isa => 'Str', default => 'StrandSpecificProtocol' );
17              
18             has 'additional_mapper_params' => ( is => 'ro', isa => 'Maybe[Str]' );
19             has 'mapper_index_params' => ( is => 'ro', isa => 'Maybe[Str]' );
20              
21             override '_pipeline_configs' => sub {
22             my ($self) = @_;
23             my @pipeline_configs;
24            
25             $self->add_qc_config(\@pipeline_configs);
26            
27             push(
28             @pipeline_configs,
29             Bio::VertRes::Config::Pipelines::SmaltMapping->new(
30             database => $self->database,
31             database_connect_file => $self->database_connect_file,
32             config_base => $self->config_base,
33             root_base => $self->root_base,
34             log_base => $self->log_base,
35             overwrite_existing_config_file => $self->overwrite_existing_config_file,
36             limits => $self->limits,
37             reference => $self->reference,
38             reference_lookup_file => $self->reference_lookup_file,
39             additional_mapper_params => $self->additional_mapper_params,
40             mapper_index_params => $self->mapper_index_params
41             )
42             );
43            
44             $self->add_bacteria_rna_seq_expression_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::BacteriaRnaSeqExpressionUsingSmalt - Standard snp calling pipeline for bacteria
60              
61             =head1 VERSION
62              
63             version 1.133090
64              
65             =head1 SYNOPSIS
66              
67             RNA seq expression with SMALT
68             use Bio::VertRes::Config::Recipes::BacteriaRnaSeqExpressionUsingSmalt;
69              
70             my $obj = Bio::VertRes::Config::Recipes::BacteriaRnaSeqExpressionUsingSmalt->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             protocol => 'StrandSpecificProtocol'
78             );
79             $obj->create;
80              
81             =head1 AUTHOR
82              
83             Andrew J. Page <ap13@sanger.ac.uk>
84              
85             =head1 COPYRIGHT AND LICENSE
86              
87             This software is Copyright (c) 2013 by Wellcome Trust Sanger Institute.
88              
89             This is free software, licensed under:
90              
91             The GNU General Public License, Version 3, June 2007
92              
93             =cut