Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl
Commits
2e9487e9
Commit
2e9487e9
authored
Feb 07, 2005
by
Ian Longden
Browse files
add default alias of the species name when adding a DBAdaptor
parent
7fe63560
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/Bio/EnsEMBL/Registry.pm
modules/Bio/EnsEMBL/Registry.pm
+5
-0
No files found.
modules/Bio/EnsEMBL/Registry.pm
View file @
2e9487e9
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment