line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bio::VertRes::Config::Recipes::Global; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: Setting up global config files |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
222052
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use Bio::VertRes::Config::Pipelines::Assembly; |
8
|
|
|
|
|
|
|
use Bio::VertRes::Config::Pipelines::Import; |
9
|
|
|
|
|
|
|
use Bio::VertRes::Config::Pipelines::Store; |
10
|
|
|
|
|
|
|
use Bio::VertRes::Config::Pipelines::AnnotateAssembly; |
11
|
|
|
|
|
|
|
extends 'Bio::VertRes::Config::Recipes::Common'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
override '_pipeline_configs' => sub { |
14
|
|
|
|
|
|
|
my ($self) = @_; |
15
|
|
|
|
|
|
|
my @pipeline_configs; |
16
|
|
|
|
|
|
|
push( |
17
|
|
|
|
|
|
|
@pipeline_configs, |
18
|
|
|
|
|
|
|
Bio::VertRes::Config::Pipelines::Import->new( |
19
|
|
|
|
|
|
|
database => $self->database, |
20
|
|
|
|
|
|
|
database_connect_file => $self->database_connect_file, |
21
|
|
|
|
|
|
|
config_base => $self->config_base, |
22
|
|
|
|
|
|
|
root_base => $self->root_base, |
23
|
|
|
|
|
|
|
log_base => $self->log_base, |
24
|
|
|
|
|
|
|
overwrite_existing_config_file => $self->overwrite_existing_config_file |
25
|
|
|
|
|
|
|
) |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
push( |
28
|
|
|
|
|
|
|
@pipeline_configs, |
29
|
|
|
|
|
|
|
Bio::VertRes::Config::Pipelines::Store->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
|
|
|
|
|
|
|
) |
37
|
|
|
|
|
|
|
); |
38
|
|
|
|
|
|
|
# push( |
39
|
|
|
|
|
|
|
# @pipeline_configs, |
40
|
|
|
|
|
|
|
# Bio::VertRes::Config::Pipelines::Assembly->new( |
41
|
|
|
|
|
|
|
# database => $self->database, |
42
|
|
|
|
|
|
|
# config_base => $self->config_base, |
43
|
|
|
|
|
|
|
# overwrite_existing_config_file => $self->overwrite_existing_config_file, |
44
|
|
|
|
|
|
|
# limits => {} |
45
|
|
|
|
|
|
|
# ) |
46
|
|
|
|
|
|
|
# ); |
47
|
|
|
|
|
|
|
# push( |
48
|
|
|
|
|
|
|
# @pipeline_configs, |
49
|
|
|
|
|
|
|
# Bio::VertRes::Config::Pipelines::AnnotateAssembly->new( |
50
|
|
|
|
|
|
|
# database => $self->database, |
51
|
|
|
|
|
|
|
# config_base => $self->config_base, |
52
|
|
|
|
|
|
|
# overwrite_existing_config_file => $self->overwrite_existing_config_file, |
53
|
|
|
|
|
|
|
# limits => {} |
54
|
|
|
|
|
|
|
# ) |
55
|
|
|
|
|
|
|
# ); |
56
|
|
|
|
|
|
|
return \@pipeline_configs; |
57
|
|
|
|
|
|
|
}; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
60
|
|
|
|
|
|
|
no Moose; |
61
|
|
|
|
|
|
|
1; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
__END__ |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=pod |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 NAME |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Bio::VertRes::Config::Recipes::Global - Setting up global config files |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 VERSION |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
version 1.133090 |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 SYNOPSIS |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Setting up global config files. Done once per database |
78
|
|
|
|
|
|
|
use Bio::VertRes::Config::Recipes::Global; |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
my $obj = Bio::VertRes::Config::Recipes::Global->new( database => 'abc' ); |
81
|
|
|
|
|
|
|
$obj->create; |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head1 AUTHOR |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Andrew J. Page <ap13@sanger.ac.uk> |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
This software is Copyright (c) 2013 by Wellcome Trust Sanger Institute. |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
This is free software, licensed under: |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
The GNU General Public License, Version 3, June 2007 |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=cut |