Skip to content

Commit

Permalink
Merge pull request #365 from Ensembl/feature/division_lookup
Browse files Browse the repository at this point in the history
extract correct dbtype and version across naming conventions
  • Loading branch information
tgrego committed Feb 15, 2019
2 parents 6205df3 + fbecac9 commit c128a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc-scripts/stable_id_lookup/populate_stable_id_lookup.pl
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ sub process_dbs {

foreach my $db (@dbs) {

if ( $db =~ /([\w\_]+)_(core|otherfeatures)_([\d\_\w]+)/ )
if ( $db =~ /([a-z]+_[a-z0-9]+(?:_[a-z0-9]+)?_([a-z]+)(?:_\d+)?)_(\d+)_\w+/ )
{
my ( $species, $dbtype, $dbversion ) = ( $1, $2, $3 );
print "SPECIES: $species\tDBTYPE $dbtype\tDBVERSION: $dbversion\n";
Expand Down

0 comments on commit c128a35

Please sign in to comment.