diff --git a/misc-scripts/xref_mapping/XrefParser/BaseParser.pm b/misc-scripts/xref_mapping/XrefParser/BaseParser.pm index 5fc8ef6a3f1fe33b834c9d79f23e1c52d72fd450..db3c923fe46aa5d61cde7a3c16aa54a4ea76556e 100644 --- a/misc-scripts/xref_mapping/XrefParser/BaseParser.pm +++ b/misc-scripts/xref_mapping/XrefParser/BaseParser.pm @@ -1832,6 +1832,8 @@ sub get_taxonomy_from_species_id{ sub get_direct_xref{ my ($self,$stable_id,$type,$link) = @_; + $type = lc($type); + my $sql = "select general_xref_id from ${type}_direct_xref d where ensembl_stable_id = ? and linkage_xref= ?"; my $direct_sth = $dbi->prepare($sql);