usebase('Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf');# All Hive databases configuration files should inherit from HiveGeneric, directly or indirectly
=head2 default_options
Description : Implements default_options() interface method of Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf that is used to initialize default options.
In addition to the standard things it defines three options:
o('capacity') defines how many files can be run in parallel
There are rules dependent on two options that do not have defaults (this makes them mandatory):
o('password') your read-write password for creation and maintenance of the hive database
o('inputfile') name of the inputfile where the commands are
=cut
sub default_options{
my($self)=@_;
return{
%{$self->SUPER::default_options()},# inherit other stuff from the base class
'pipeline_name'=>'ifile_syscmd',# name used by the beekeeper to prefix job names on the farm
'capacity'=>100,# how many commands can be run in parallel
};
}
=head2 pipeline_analyses
Description : Implements pipeline_analyses() interface method of Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf that defines the structure of the pipeline: analyses, jobs, rules, etc.
Here it defines two analyses:
* 'create_jobs' reads commands line-by-line from inputfile
Each job of this analysis will dataflow (create jobs) via branch #2 into 'run_cmd' analysis.
* 'run_cmd' actually runs the commands in parallel