Commit 2e9487e9 authored by Ian Longden's avatar Ian Longden
Browse files

add default alias of the species name when adding a DBAdaptor

parent 7fe63560
......@@ -271,6 +271,11 @@ sub get_all_db_adaptors{
sub add_DBAdaptor{
my ($class, $species, $group, $adap) = @_;
if(!($class->alias_exists($species))){
$class->add_alias($species,$species);
}
$species = $class->get_alias($species);
$registry_register{$species}{$group}{'_DB'} = $adap;
......
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