Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
1b2c1039
Commit
1b2c1039
authored
Oct 21, 2004
by
Ian Longden
Browse files
sub alias_exists added. returns 1 if it exists else 0
parent
d317d92f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
modules/Bio/EnsEMBL/Registry.pm
modules/Bio/EnsEMBL/Registry.pm
+21
-2
No files found.
modules/Bio/EnsEMBL/Registry.pm
View file @
1b2c1039
...
...
@@ -567,11 +567,10 @@ sub add_alias{
=head2 get_alias
Arg [1] : name of the possible alias to get species for
Arg [2] : if set will not throw if not found.
Example : Bio::EnsEMBL::Registry->get_alias("Human");
Description: get proper species name.
Returntype : species name
Exceptions :
if not found and second argument
Exceptions :
none
=cut
...
...
@@ -584,6 +583,26 @@ sub get_alias{
return
$registry_register
{'
_ALIAS
'}{
$key
};
}
=head2 alias_exists
Arg [1] : name of the possible alias to get species for
Arg [2] : if set will not throw if not found.
Example : Bio::EnsEMBL::Registry->get_alias("Human");
Description: does the species name exist.
Returntype : 1 if exists else 0
Exceptions : none
=cut
sub
alias_exists
{
my
(
$class
,
$key
)
=
@_
;
if
(
defined
(
$registry_register
{'
_ALIAS
'}{
$key
})){
return
1
;
}
return
0
;
}
=head2 change_access
Will change the username and password for a set of databases.
...
...
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