ProcessGenomes_conf.pm
Go to the documentation of this file.
00001 
00002 =head1 LICENSE
00003 
00004 Copyright [2009-2016] EMBL-European Bioinformatics Institute
00005 
00006 Licensed under the Apache License, Version 2.0 (the "License");
00007 you may not use this file except in compliance with the License.
00008 You may obtain a copy of the License at
00009 
00010      http://www.apache.org/licenses/LICENSE-2.0
00011 
00012 Unless required by applicable law or agreed to in writing, software
00013 distributed under the License is distributed on an "AS IS" BASIS,
00014 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015 See the License for the specific language governing permissions and
00016 limitations under the License.
00017 
00018 =head1 CONTACT
00019 
00020   Please email comments or questions to the public Ensembl
00021   developers list at <dev@ensembl.org>.
00022 
00023   Questions may also be sent to the Ensembl help desk at
00024   <helpdesk@ensembl.org>.
00025 
00026 =head1 NAME
00027 
00028 Bio::EnsEMBL::MetaData::Pipeline::ProcessGenomes_conf
00029 
00030 =head1 DESCRIPTION
00031 
00032 Pipeline configuration to load a metadata database
00033 
00034 =head1 AUTHOR
00035 
00036 Dan Staines
00037 
00038 =cut
00039 
00040 package Bio::EnsEMBL::MetaData::Pipeline::ProcessGenomes_conf;
00041 
00042 use strict;
00043 use warnings;
00044 use base qw/Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf/;
00045 
00046 use Bio::EnsEMBL::ApiVersion;
00047 use POSIX qw(strftime);
00048 
00049 sub resource_classes {
00050   my ($self) = @_;
00051   return {
00052      'default' => { 'LSF' => '-q production-rh6' },
00053      'himem' =>
00054        { 'LSF' => '-q production-rh6 -M  16000 -R "rusage[mem=16000]"' }
00055   };
00056 }
00057 
00058 =head2 default_options
00059 
00060     Description : Implements default_options() interface method of Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf that is used to initialize default options.
00061 
00062 =cut
00063 
00064 sub default_options {
00065   my ($self) = @_;
00066   return {
00067     %{ $self->SUPER::default_options()
00068       },    # inherit other stuff from the base class
00069 
00070     pipeline_name => 'process_genomes',
00071     species       => [],
00072     division      => [],
00073     run_all       => 0,
00074     antispecies   => [],
00075     meta_filters  => {},
00076     force_update  => 0,
00077     contigs       => 1,
00078     variation     => 1,
00079     release       => software_version(),
00080     eg_release    => undef,
00081     release_date  => strftime( "%F", localtime ) };
00082 }
00083 
00084 # Force an automatic loading of the registry in all workers.
00085 sub beekeeper_extra_cmdline_options {
00086   my $self = shift;
00087   return "-reg_conf " . $self->o("registry");
00088 }
00089 
00090 sub pipeline_analyses {
00091   my ($self) = @_;
00092   return [ {
00093           -logic_name => 'GenomeFactory',
00094           -module => 'Bio::EnsEMBL::MetaData::Pipeline::GenomeFactory',
00095           -max_retry_count => 1,
00096           -input_ids       => [ {} ],
00097           -parameters      => {
00098                            info_user       => $self->o('info_user'),
00099                            info_host       => $self->o('info_host'),
00100                            info_pass       => $self->o('info_pass'),
00101                            info_port       => $self->o('info_port'),
00102                            info_dbname     => $self->o('info_dbname'),
00103                            release         => $self->o('release'),
00104                            eg_release      => $self->o('eg_release'),
00105                            release_date    => $self->o('release_date'),
00106                            species         => $self->o('species'),
00107                            antispecies     => $self->o('antispecies'),
00108                            division        => $self->o('division'),
00109                            run_all         => $self->o('run_all'),
00110                            meta_filters    => $self->o('meta_filters'),
00111                            chromosome_flow => 0,
00112                            variation_flow  => 0 },
00113           -flow_into =>
00114             { '2' => ['ProcessGenome'], '5' => ['ProcessCompara'] },
00115           -hive_capacity => 1,
00116           -meadow_type   => 'LOCAL', }, {
00117           -logic_name => 'ProcessGenome',
00118           -module => 'Bio::EnsEMBL::MetaData::Pipeline::ProcessGenome',
00119           -hive_capacity => 50,
00120           -wait_for      => ['GenomeFactory'],
00121           -parameters    => {
00122                            info_user    => $self->o('info_user'),
00123                            info_host    => $self->o('info_host'),
00124                            info_pass    => $self->o('info_pass'),
00125                            info_port    => $self->o('info_port'),
00126                            info_dbname  => $self->o('info_dbname'),
00127                            release      => $self->o('release'),
00128                            eg_release   => $self->o('eg_release'),
00129                            release_date => $self->o('release_date'),
00130                            force_update => $self->o('force_update'),
00131                            contigs      => $self->o('contigs'),
00132                            variation    => $self->o('variation') } }, {
00133           -logic_name => 'ProcessCompara',
00134           -module => 'Bio::EnsEMBL::MetaData::Pipeline::ProcessCompara',
00135           -hive_capacity => 50,
00136           -wait_for      => ['ProcessGenome'],
00137           -rc_name       => 'himem',
00138           -parameters    => {
00139                            info_user    => $self->o('info_user'),
00140                            info_host    => $self->o('info_host'),
00141                            info_pass    => $self->o('info_pass'),
00142                            info_port    => $self->o('info_port'),
00143                            info_dbname  => $self->o('info_dbname'),
00144                            release      => $self->o('release'),
00145                            eg_release   => $self->o('eg_release'),
00146                            release_date => $self->o('release_date'),
00147                            force_update => $self->o('force_update') } },
00148         { -logic_name => 'UpdateBools',
00149           -module => 'Bio::EnsEMBL::MetaData::Pipeline::UpdateBools',
00150           -hive_capacity => 1,
00151           -input_ids     => [ {} ],
00152           -wait_for      => [ 'ProcessGenome', 'ProcessCompara' ],
00153           -parameters    => {
00154                            info_user    => $self->o('info_user'),
00155                            info_host    => $self->o('info_host'),
00156                            info_pass    => $self->o('info_pass'),
00157                            info_port    => $self->o('info_port'),
00158                            info_dbname  => $self->o('info_dbname'),
00159                            release      => $self->o('release'),
00160                            eg_release   => $self->o('eg_release'),
00161                            force_update => $self->o('force_update') } }
00162   ];
00163 } ## end sub pipeline_analyses
00164 
00165 1;
00166