Skip to content
Snippets Groups Projects
Commit 8ef3040c authored by Ian Longden's avatar Ian Longden
Browse files

allow isa check also. Xref system uses a dbadptor as base class so has a...

allow isa check also. Xref system uses a dbadptor as base class so has a different name but still isa
parent 0e9630d4
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,11 @@ sub new {
if( !defined $dbobj || !ref $dbobj ) {
throw("Don't have a db [$dbobj] for new adaptor");
}
if( ref($dbobj) =~ /DBAdaptor$/){
if($dbobj->isa('Bio::EnsEMBL::DBSQL::DBAdaptor')){
$self->db($dbobj);
$self->dbc($dbobj->dbc);
}
elsif( ref($dbobj) =~ /DBAdaptor$/){
$self->db($dbobj);
$self->dbc($dbobj->dbc);
}
......
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