ensembl-hive  2.5
Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf Class Reference
+ Inheritance diagram for Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf:

Public Member Functions

public default_options ()
 
public pipeline_create_commands ()
 
public pipeline_wide_parameters ()
 
public resource_classes ()
 
public pipeline_analyses ()
 
public beekeeper_extra_cmdline_options ()
 
public hive_meta_table ()
 
public pre_options ()
 
public dbconn_2_url ()
 
public pipeline_url ()
 
public db_cmd ()
 
public print_debug ()
 
public process_pipeline_name ()
 
public default_pipeline_name ()
 
public process_options ()
 
public overridable_pipeline_create_commands ()
 
public is_analysis_topup ()
 
public run_pipeline_create_commands ()
 
public add_objects_from_config ()
 
public useful_commands_legend ()
 
- Public Member Functions inherited from Bio::EnsEMBL::Hive::DependentOptions
public new ()
 
public use_cases ()
 
public load_cmdline_options ()
 
public root ()
 
public is_fully_substituted_string ()
 
public is_fully_substituted_structure ()
 
public hash_leaves ()
 
public o ()
 
public substitute ()
 
public merge_from_rules ()
 
public process_options ()
 

Detailed Description

Synopsis

# Example 1: specifying only the mandatory option:
init_pipeline.pl Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf -password <mypass>
# Example 2: specifying the mandatory options as well as overriding some defaults:
init_pipeline.pl Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf -host <myhost> -dbname <mydbname> -password <mypass>

Description

    Generic configuration module for all Hive pipelines with loader functionality.
    All other Hive PipeConfig modules should inherit from this module and will probably need to redefine some or all of the following interface methods:

          default_options:                  returns a hash of (possibly multilevel) defaults for the options on which depend the rest of the configuration

          pipeline_create_commands:         returns a list of strings that will be executed as system commands needed to create and set up the pipeline database

          pipeline_wide_parameters:         returns a hash of pipeline-wide parameter names and their values

          resource_classes:                 returns a hash of resource class definitions

          pipeline_analyses:                returns a list of hash structures that define analysis objects bundled with definitions of corresponding jobs, rules and resources

          beekeeper_extra_cmdline_options   returns a string with command line options that you want to be passed to the beekeeper.pl

    When defining anything except the keys of default_options() a call to $self->o('myoption') can be used.
    This call means "substitute this call for the value of 'myoption' at the time of configuring the pipeline".
    All option names mentioned in $self->o() calls within the five interface methods above can be given non-default values from the command line.

    Please make sure you have studied the pipeline configuraton examples in Bio::EnsEMBL::Hive::PipeConfig before creating your own PipeConfig modules.

Definition at line 54 of file HiveGeneric_conf.pm.

Member Function Documentation

◆ add_objects_from_config()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::add_objects_from_config ( )
    Description : The method that uses the Hive/EnsEMBL API to actually create all the analyses, jobs, dataflow and control rules and resource descriptions.
    Caller      : init_pipeline.pl or any other script that will drive this module.
 
Code:
click to view

◆ beekeeper_extra_cmdline_options()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::beekeeper_extra_cmdline_options ( )
    Description : Interface method that should return a string with extra parameters that you want to be passed to beekeeper.pl
 
Code:
click to view

◆ db_cmd()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::db_cmd ( )
    Description :  Returns a db_cmd.pl-based command line that should execute by any supported driver (mysql/pgsql/sqlite)
 
Code:
click to view

◆ dbconn_2_url()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::dbconn_2_url ( )
    Description :  A convenience method used to stringify a connection-parameters hash into a 'pipeline_url' that beekeeper.pl will undestand
 
Code:
click to view

◆ default_options()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::default_options ( )
    Description : Interface method that should return a hash of option_name->default_option_value pairs.
                  Please see existing PipeConfig modules for examples.
 
Code:
click to view

◆ default_pipeline_name()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::default_pipeline_name ( )

Undocumented method

Code:
click to view

◆ hive_meta_table()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::hive_meta_table ( )

Undocumented method

Code:
click to view

◆ is_analysis_topup()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::is_analysis_topup ( )

Undocumented method

Code:
click to view

◆ overridable_pipeline_create_commands()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::overridable_pipeline_create_commands ( )

Undocumented method

Code:
click to view

◆ pipeline_analyses()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::pipeline_analyses ( )
    Description : Interface method that should return a list of hashes that define analysis bundled with corresponding jobs, dataflow and analysis_ctrl rules and resource_id.
                  Please see existing PipeConfig modules for examples.
 
Code:
click to view

◆ pipeline_create_commands()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::pipeline_create_commands ( )
    Description : Interface method that should return a list of command lines to be run in order to create and set up the pipeline database.
                  Please see existing PipeConfig modules for examples.
 
Code:
click to view

◆ pipeline_url()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::pipeline_url ( )

Undocumented method

Code:
click to view

◆ pipeline_wide_parameters()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::pipeline_wide_parameters ( )
    Description : Interface method that should return a hash of pipeline_wide_parameter_name->pipeline_wide_parameter_value pairs.
                  The value doesn't have to be a scalar, can be any Perl structure now (will be stringified and de-stringified automagically).
                  Please see existing PipeConfig modules for examples.
 
Code:
click to view

◆ pre_options()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::pre_options ( )

Undocumented method

Code:
click to view

◆ print_debug()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::print_debug ( )

Undocumented method

Code:
click to view

◆ process_options()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::process_options ( )
    Description : The method that does all the parameter parsing magic.
                  It is two-pass through the interface methods: first pass collects the options, second is intelligent substitution.
    Caller      : init_pipeline.pl or any other script that will drive this module.
    Note        : You can override parsing the command line bit by providing a hash as the argument to this method.
                  This hash should contain definitions of all the parameters you would otherwise be providing from the command line.
                  Useful if you are creating batches of hive pipelines using a script.
 
Code:
click to view

◆ process_pipeline_name()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::process_pipeline_name ( )

Undocumented method

Code:
click to view

◆ resource_classes()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::resource_classes ( )
    Description : Interface method that should return a hash of resource_description_id->resource_description_hash.
                  Please see existing PipeConfig modules for examples.
 
Code:
click to view

◆ run_pipeline_create_commands()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::run_pipeline_create_commands ( )

Undocumented method

Code:
click to view

◆ useful_commands_legend()

public Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf::useful_commands_legend ( )

Undocumented method

Code:
click to view

The documentation for this class was generated from the following file: