Commit 681a74a9 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

no need to use a hash of the species name when the species name is hard-coded

parent b0383f05
...@@ -101,13 +101,6 @@ sub run_script { ...@@ -101,13 +101,6 @@ sub run_script {
$cpass = $1; $cpass = $1;
} }
#populate species hash - source name is the hash key
my %species_names = (
HGNC => "human",
ZFIN_ID => "zebrafish",
MGI => "mouse"
);
my $vega_dbc; my $vega_dbc;
my $core_dbc; my $core_dbc;
...@@ -142,15 +135,15 @@ sub run_script { ...@@ -142,15 +135,15 @@ sub run_script {
-host => $host, -host => $host,
-user => $user); -user => $user);
$vega_dbc = $reg->get_adaptor($species_names{$source_name},"vega","slice"); $vega_dbc = $reg->get_adaptor($species_name,"vega","slice");
if(!defined($vega_dbc)){ if(!defined($vega_dbc)){
print "Could not connect to $species_names{$source_name} vega database using load_registry_from_db $host $user\n"; print "Could not connect to $species_name vega database using load_registry_from_db $host $user\n";
return 1; return 1;
} }
$vega_dbc = $vega_dbc->dbc; $vega_dbc = $vega_dbc->dbc;
$core_dbc = $reg->get_adaptor($species_names{$source_name},"core","slice"); $core_dbc = $reg->get_adaptor($species_name,"core","slice");
if(!defined($core_dbc)){ if(!defined($core_dbc)){
print "Could not connect to $species_names{$source_name} core database using load_registry_from_db $host $user\n"; print "Could not connect to $species_name core database using load_registry_from_db $host $user\n";
return 1; return 1;
} }
$core_dbc= $core_dbc->dbc; $core_dbc= $core_dbc->dbc;
......
Markdown is supported
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