line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bio::VertRes::Config::Recipes::BacteriaRegisterAndQCStudy; |
2
|
|
|
|
|
|
|
# ABSTRACT: Register and QC a study |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
273650
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use Bio::VertRes::Config::Pipelines::QC; |
7
|
|
|
|
|
|
|
use Bio::VertRes::Config::RegisterStudy; |
8
|
|
|
|
|
|
|
extends 'Bio::VertRes::Config::Recipes::Common'; |
9
|
|
|
|
|
|
|
with 'Bio::VertRes::Config::Recipes::Roles::BacteriaRegisterStudy'; |
10
|
|
|
|
|
|
|
with 'Bio::VertRes::Config::Recipes::Roles::Reference'; |
11
|
|
|
|
|
|
|
with 'Bio::VertRes::Config::Recipes::Roles::CreateGlobal'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has 'assembler' => ( is => 'ro', isa => 'Str', default => 'velvet' ); |
14
|
|
|
|
|
|
|
has '_error_correct' => ( is => 'ro', isa => 'Bool', default => 0 ); |
15
|
|
|
|
|
|
|
has '_remove_primers' => ( is => 'ro', isa => 'Bool', default => 0 ); |
16
|
|
|
|
|
|
|
has '_pipeline_version' => ( is => 'ro', isa => 'Num', default => 2.1 ); |
17
|
|
|
|
|
|
|
has '_normalise' => ( is => 'ro', isa => 'Bool', default => 0 ); |
18
|
|
|
|
|
|
|
has '_kingdom' => ( is => 'ro', isa => 'Str', default => "Bacteria" ); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
override '_pipeline_configs' => sub { |
22
|
|
|
|
|
|
|
my ($self) = @_; |
23
|
|
|
|
|
|
|
my @pipeline_configs; |
24
|
|
|
|
|
|
|
$self->add_bacteria_qc_config(\@pipeline_configs); |
25
|
|
|
|
|
|
|
if($self->assembler eq 'spades') |
26
|
|
|
|
|
|
|
{ |
27
|
|
|
|
|
|
|
$self->add_bacteria_spades_assembly_config(\@pipeline_configs); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
else |
30
|
|
|
|
|
|
|
{ |
31
|
|
|
|
|
|
|
$self->add_bacteria_velvet_assembly_config(\@pipeline_configs); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
$self->add_bacteria_annotate_config(\@pipeline_configs); |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
return \@pipeline_configs; |
36
|
|
|
|
|
|
|
}; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
39
|
|
|
|
|
|
|
no Moose; |
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=pod |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 NAME |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Bio::VertRes::Config::Recipes::BacteriaRegisterAndQCStudy - Register and QC a study |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 VERSION |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
version 1.133090 |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 SYNOPSIS |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Register and QC a study |
57
|
|
|
|
|
|
|
use Bio::VertRes::Config::Recipes::BacteriaRegisterAndQCStudy; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
my $obj = Bio::VertRes::Config::Recipes::BacteriaRegisterAndQCStudy->new( |
60
|
|
|
|
|
|
|
database => 'abc', |
61
|
|
|
|
|
|
|
limits => {project => ['Study ABC']}, |
62
|
|
|
|
|
|
|
reference => 'ABC', |
63
|
|
|
|
|
|
|
reference_lookup_file => '/path/to/refs.index'); |
64
|
|
|
|
|
|
|
$obj->create; |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 AUTHOR |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Andrew J. Page <ap13@sanger.ac.uk> |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This software is Copyright (c) 2013 by Wellcome Trust Sanger Institute. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This is free software, licensed under: |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
The GNU General Public License, Version 3, June 2007 |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=cut |