#!/usr/bin/env perl # # A generic loader of hive pipelines. # # Because all of the functionality is hidden in Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf # you can create pipelines by calling the right methods of HiveGeneric_conf directly, # so this script is just a commandline wrapper that can conveniently find modules by their filename. use strict; use warnings; use Bio::EnsEMBL::Hive::Utils ('script_usage', 'load_file_or_module'); sub main { my $file_or_module = shift @ARGV or script_usage(0); my $config_module = load_file_or_module( $file_or_module ); my $config_object = $config_module->new(); $config_object->process_options(); $config_object->run(); } main(); __DATA__ =pod =head1 NAME init_pipeline.pl =head1 SYNOPSIS init_pipeline.pl [-help | [ [-analysis_topup | -job_topup] ] =head1 DESCRIPTION init_pipeline.pl is a generic script that is used to create+setup=initialize eHive pipelines from PipeConfig configuration modules. =head1 USAGE EXAMPLES # get this help message: init_pipeline.pl # initialize a generic eHive pipeline: init_pipeline.pl Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf -password # see what command line options are available when initializing long multiplication example pipeline # (assuming your current directory is ensembl-hive/modules/Bio/EnsEMBL/Hive) : init_pipeline.pl PipeConfig/LongMult_conf -help # initialize the long multiplicaton pipeline by supplying not only mandatory but also optional data: # (assuming your current directory is ensembl-hive/modules/Bio/EnsEMBL/Hive/PipeConfig) : init_pipeline.pl LongMult_conf -password -first_mult 375857335 -second_mult 1111333355556666 =head1 OPTIONS -help : get automatically generated list of options that can be set/changed when initializing a particular pipeline -analysis_topup : a special initialization mode when (1) pipeline_create_commands are switched off and (2) only newly defined analyses are added to the database This mode is only useful in the process of putting together a new pipeline. -job_topup : another special initialization mode when only jobs are created - no other structural changes to the pipeline are acted upon. =head1 CONTACT Please contact ehive-users@ebi.ac.uk mailing list with questions/suggestions. =cut