Skip to content
Snippets Groups Projects
Commit 646d3d60 authored by Alessandro Vullo's avatar Alessandro Vullo Committed by Magali Ruffier
Browse files

Changes to deal with connection to EBI mirror.

parent 2536d0e0
No related branches found
No related tags found
No related merge requests found
......@@ -103,13 +103,10 @@ sub run_script {
print "Loading the Registry\n" if $verbose;
$registry->load_registry_from_multiple_dbs(
{
'-host' => 'ens-staging1',
'-host' => 'mysql-ensembl-mirror.ebi.ac.uk',
'-port' => 4240,
'-user' => 'ensro',
},
{
'-host' => 'ens-staging2',
'-user' => 'ensro',
}
);
$gene_adaptor = $registry->get_adaptor($species_name, 'core', 'Gene');
} elsif ($project eq 'ensemblgenomes') {
......
......@@ -71,13 +71,10 @@ sub run_script {
if ($project eq 'ensembl') {
$registry->load_registry_from_multiple_dbs(
{
'-host' => 'ens-staging1',
'-host' => 'mysql-ensembl-mirror.ebi.ac.uk',
'-port' => 4240,
'-user' => 'ensro',
},
{
'-host' => 'ens-staging2',
'-user' => 'ensro',
},
);
} elsif ($project eq 'ensemblgenomes') {
......
......@@ -50,11 +50,8 @@ sub run_script {
if ($project eq 'ensembl') {
$registry->load_registry_from_multiple_dbs(
{
'-host' => 'ens-staging1',
'-user' => 'ensro',
},
{
'-host' => 'ens-staging2',
'-host' => 'mysql-ensembl-mirror.ebi.ac.uk',
'-port' => 4240,
'-user' => 'ensro',
},
);
......
......@@ -88,13 +88,10 @@ sub run_script {
} else {
$registry->load_registry_from_multiple_dbs(
{
'-host' => 'ens-staging1',
'-host' => 'mysql-ensembl-mirror.ebi.ac.uk',
'-port' => 4240,
'-user' => 'ensro',
},
{
'-host' => 'ens-staging2',
'-user' => 'ensro',
},
);
$dba = $registry->get_DBAdaptor($species_name, 'core');
}
......
......@@ -138,13 +138,10 @@ sub run_script {
# Else, database should be on staging
$registry->load_registry_from_multiple_dbs(
{
-host => 'ens-staging1',
-host => 'mysql-ensembl-mirror.ebi.ac.uk',
'-port' => 4240,
-user => 'ensro',
},
{
-host => 'ens-staging2',
-user => 'ensro',
},
);
$core_dba = $registry->get_DBAdaptor($species_name,'core');
}
......@@ -163,13 +160,10 @@ sub run_script {
# Else database should be on staging
$registry->load_registry_from_multiple_dbs(
{
-host => 'ens-staging1',
-host => 'mysql-ensembl-mirror.ebi.ac.uk',
'-port' => 4240,
-user => 'ensro',
},
{
-host => 'ens-staging2',
-user => 'ensro',
},
);
$otherf_dba = $registry->get_DBAdaptor($species_name, 'otherfeatures') if !defined($ofhost);
if (defined $otherf_dba) { $otherf_dba->dnadb($core_dba); }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment