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

Patch to get_species_and_object_type(): If a database adaptor does not

have a corresponding 'species.stable_id_prefix' meta key it should not
be skipped completely.  Solves a problem with Eugene's yeast database.
parent 220229e7
No related branches found
No related tags found
No related merge requests found
......@@ -2428,8 +2428,13 @@ sub get_species_and_object_type {
my $species = $dba->species();
my $fetched_something = 0;
while ( $sth->fetch() ) {
$fetched_something = 1;
my $standard_prefix = 0;
foreach my $allowed_prefix (@allowed_prefixes) {
if (
substr( $prefix, 0, length($allowed_prefix) ) eq
......@@ -2453,6 +2458,12 @@ sub get_species_and_object_type {
}
if ( !$fetched_something ) {
# This database didn't have a matching
# 'species.stable_id_prefix' key in its meta table.
push( @nonstandard_prefix_species, $species );
}
} ## end foreach my $dba ( @{ $self->get_all_DBAdaptors...})
} ## end if ( !%stable_id_prefix)
......
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