Skip to content
Snippets Groups Projects
Commit 222a4fc0 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

added test database regular expression to detect species string

parent a48b2cf4
No related branches found
No related tags found
No related merge requests found
......@@ -469,6 +469,7 @@ while ( $sth->fetch() ) {
if ( !defined($species) ) {
if ($database =~ /compara_([a-z][a-z_]+[a-z])?_\d+_\d+/ or # EG case, e.g. ensembl_compara_fungi_18_71
$database =~ /ensembl[a-z]?_(?:compara|production|ontology)_/ or
$database =~ /_test_db_([a-z_]+)_([a-z])_/ or
$database =~ /([a-z][a-z_]+[a-z])_(?:core|funcgen|variation)_/)
{
$species = $1;
......
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