3 # A generic script for creating eHive pipelines from PipeConfig module files (see below for docs)
8 # Finding out own path in order to reference own components (including own modules):
10 use File::Basename ();
12 $ENV{
'EHIVE_ROOT_DIR'} ||= File::Basename::dirname( File::Basename::dirname( Cwd::realpath($0) ) );
13 unshift @INC, $ENV{
'EHIVE_ROOT_DIR'}.
'/modules';
16 use Getopt::Long qw(:config pass_through no_auto_abbrev);
26 my $deprecated_option = {};
31 'analysis_topup!' => \$deprecated_option->{
'analysis_topup'}, # always on
32 'job_topup!' => \$deprecated_option->{
'job_topup'}, # never, use seed_pipeline.pl
33 'tweak|SET=s@' => \$tweaks,
34 'DELETE=s' => sub { my ($opt_name, $opt_value) = @_; push @$tweaks, $opt_value.
'#'; },
35 'SHOW=s' => sub { my ($opt_name, $opt_value) = @_; push @$tweaks, $opt_value.
'?'; },
40 pod2usage({-exitvalue => 0, -verbose => 2});
43 if($deprecated_option->{
'job_topup'}) {
44 die
"-job_topup mode has been discontinued. Please use seed_pipeline.pl instead.\n";
46 if($deprecated_option->{
'analysis_topup'}) {
47 die
"-analysis_topup has been deprecated. Please note this script now *always* runs in -analysis_topup mode.\n";
51 my $file_or_module = shift @ARGV or die
"ERROR: Must provide a PipeConfig name on the command-line\n";
68 init_pipeline.pl <config_module_or_filename> [<options_for_this_particular_pipeline>]
72 init_pipeline.pl is a
generic script that is used to initialise eHive pipelines (i..e create and setup the database) from PipeConfig configuration modules.
76 # get this help message:
79 # initialise a generic eHive pipeline:
82 # initialise the long multiplicaton pipeline by supplying not only mandatory but also optional data:
83 # (assuming your current directory is ensembl-hive/modules/Bio/EnsEMBL/Hive/PipeConfig) :
84 init_pipeline.pl LongMult_conf -password <yourpassword> -first_mult 375857335 -second_mult 1111333355556666
90 =item --hive_force_init <0|1>
92 If set to 1, forces the (re)creation of the eHive database even
if a previous version of it is present in the server.
94 =item --hive_no_init <0|1>
96 If set to 1, does not
run the pipeline_create_commands section of the pipeline. Useful to
"top-up" an existing database.
98 =item --hive_debug_init <0|1>
100 If set to 1, will show the objects (analyses, data-flow rules, etc) that are parsed from the PipeConfig file.
102 =item --tweak <string>
104 Apply tweaks to the pipeline. See tweak_pipeline.pl
for details of tweaking syntax
108 Delete pipeline parameter (shortcut
for tweak DELETE)
112 Show pipeline parameter (shortcut
for tweak SHOW)
116 Show
this help message
122 See the NOTICE file distributed with
this work
for additional information
123 regarding copyright ownership.
125 Licensed under the Apache License, Version 2.0 (the
"License"); you may not use
this file except in compliance with the License.
126 You may obtain a copy of the License at
130 Unless required by applicable law or agreed to in writing, software distributed under the License
131 is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
132 See the License
for the specific language governing permissions and limitations under the License.
136 Please subscribe to the eHive mailing list: http: