Skip to content
Snippets Groups Projects
Commit 0ad40ad3 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Only join with seq_region and coord_system in generic_fetch() if this is

a multi-species database.

API passes unit tests.
parent b9b4b092
No related branches found
No related tags found
No related merge requests found
......@@ -374,7 +374,8 @@ sub generic_fetch {
# Hack for feature types that needs to be restricted to species_id (in
# coord_system).
if ( $self->isa('Bio::EnsEMBL::DBSQL::BaseFeatureAdaptor')
if ( $self->is_multispecies()
&& $self->isa('Bio::EnsEMBL::DBSQL::BaseFeatureAdaptor')
&& !$self->isa('Bio::EnsEMBL::DBSQL::UnmappedObjectAdaptor') )
{
push @tabs, [ 'seq_region', 'sr' ], [ 'coord_system', 'cs' ];
......
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