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
a56d25b8
Commit
a56d25b8
authored
Aug 05, 2004
by
Ian Longden
Browse files
SNP fix
parent
31fc3ca2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
14 deletions
+20
-14
modules/Bio/EnsEMBL/DBSQL/ProxyAdaptor.pm
modules/Bio/EnsEMBL/DBSQL/ProxyAdaptor.pm
+20
-14
No files found.
modules/Bio/EnsEMBL/DBSQL/ProxyAdaptor.pm
View file @
a56d25b8
...
...
@@ -49,6 +49,8 @@ use strict;
use
vars
qw($AUTOLOAD @ISA)
;
use
Bio::EnsEMBL::DBSQL::
BaseAdaptor
;
use
Bio::EnsEMBL::Utils::
Exception
qw(throw)
;
use
Bio::EnsEMBL::
Registry
;
my
$reg
=
"
Bio::EnsEMBL::Registry
";
@ISA
=
qw(Bio::EnsEMBL::DBSQL::BaseAdaptor)
;
...
...
@@ -117,22 +119,26 @@ sub AUTOLOAD {
return
$adaptor
->
$method
(
@args
);
}
#
# The request could not be filled by the primary adaptor
# try the same request using all of the attached databases
#
my
@databases
=
values
%
{
$self
->
db
()
->
get_all_db_adaptors
()};
foreach
my
$adaptor
(
@databases
)
{
#Try to get the appropriate adaptor from the database
# my $get_adaptor = "get_" . $self->{'_proxy_type'};
# if($database->can($get_adaptor)) {
#Try to invoke the request on the database's adaptor
# my $adaptor = eval "\$database->$get_adaptor";
if
(
$adaptor
->
can
(
$method
))
{
return
$adaptor
->
$method
(
@args
);
foreach
my
$db
(
@databases
)
{
my
$snp
=
$reg
->
get_adaptor
(
$db
->
species
,
$db
->
group
,"
lite
");
if
(
defined
(
$snp
)){
if
(
$snp
->
can
(
$method
))
{
return
$snp
->
$method
(
@args
);
}
}
$snp
=
$reg
->
get_adaptor
(
$db
->
species
,
$db
->
group
,"
ProxySNP
");
if
(
defined
(
$snp
)){
if
(
$snp
->
can
(
$method
))
{
return
$snp
->
$method
(
@args
);
}
}
}
#none of the attached adaptors could fulfill the request either
...
...
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