ensembl-hive  2.8.1
AAA_conf.pm
Go to the documentation of this file.
1 =head1 LICENSE
2 
3 See the NOTICE file distributed with this work for additional information
4 regarding copyright ownership.
5 
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 
18 =cut
19 
20 package Bio::EnsEMBL::Hive::Examples::QPT::PipeConfig::AAA_conf;
21 
22 use strict;
23 use warnings;
24 
25 use base ('Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf'); # All Hive databases configuration files should inherit from HiveGeneric, directly or indirectly
26 use Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf; # Allow this particular config to use conditional dataflow and INPUT_PLUS
27 
28 
29 
30 sub pipeline_create_commands {
31  my ($self) = @_;
32  return [
33  @{$self->SUPER::pipeline_create_commands}, # inheriting database and hive tables' creation
34 
35  # additional tables needed for long multiplication pipeline's operation:
36  $self->db_cmd('CREATE TABLE final_result (a_multiplier varchar(40) NOT NULL, b_multiplier varchar(40) NOT NULL, result varchar(80) NOT NULL, PRIMARY KEY (a_multiplier, b_multiplier))'),
37  ];
38 }
39 
40 
41 sub pipeline_analyses {
42  my ($self) = @_;
43  return [
44 
45  { -logic_name => 'call_BBB',
46  -module => 'Bio::EnsEMBL::Hive::RunnableDB::Dummy',
47  -input_ids => [
48  { 'a_multiplier' => '9650156169', 'b_multiplier' => '327358788' },
49  { 'a_multiplier' => '327358788', 'b_multiplier' => '9650156169' },
50  ],
51  -flow_into => {
52  '1->A' => $self->o('BBB_url').'?logic_name=call_CCC_or_DDD',
53  'A->1' => 'AAA_funnel',
54  },
55  },
56 
57  { -logic_name => 'AAA_funnel',
58  -module => 'Bio::EnsEMBL::Hive::RunnableDB::Dummy',
59  -flow_into => {
60  2 => '?table_name=final_result',
61  },
62  },
63  ];
64 }
65 
66 1;
67 
Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf
Definition: HiveGeneric_conf.pm:54