# Example of configuration file used by Bio::EnsEMBL::Registry::load_all
# method to store/register all kind of Adaptors.

use strict;
use Bio::EnsEMBL::Utils::ConfigRegistry;
use Bio::EnsEMBL::DBSQL::DBAdaptor;
use Bio::EnsEMBL::Compara::DBSQL::DBAdaptor;

my @aliases;

#Register everything from a particular release
#Bio::EnsEMBL::Registry->load_registry_from_url(
#  'mysql://USER@HOST/VERSION');

#ensembl compara database
new Bio::EnsEMBL::Compara::DBSQL::DBAdaptor(
    -host => 'HOST',
    -user => 'USER',
    -pass => 'PASS',
    -port => PORT,
    -species => 'comparaMaster',
    -dbname => 'kb3_ensembl_compara_master');

@aliases = ('compara_master');

Bio::EnsEMBL::Utils::ConfigRegistry->add_alias(
    -species => "comparaMaster",
    -alias => \@aliases);

#specific core database
new Bio::EnsEMBL::DBSQL::DBAdaptor(
    -host => 'HOST',
    -user => 'USER',
    -port => PORT,
    -species => 'otolemur_garnettii', 
    -group => 'core',
    -dbname => 'kb3_bushbaby_core');

@aliases = ('bushbaby');

Bio::EnsEMBL::Utils::ConfigRegistry->add_alias(
    -species => "otolemur_garnettii",
    -alias => \@aliases);
