From a290c8958ba90fac4a58eabf2c3551a2dec5edb2 Mon Sep 17 00:00:00 2001 From: Alessandro Vullo <avullo@ebi.ac.uk> Date: Fri, 7 Apr 2017 11:20:28 +0100 Subject: [PATCH] Had problems with Zebrafish due to some entries having non-digit version. --- misc-scripts/xref_mapping/XrefParser/RefSeqCoordinateParser.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/misc-scripts/xref_mapping/XrefParser/RefSeqCoordinateParser.pm b/misc-scripts/xref_mapping/XrefParser/RefSeqCoordinateParser.pm index d5018e0528..412412d823 100644 --- a/misc-scripts/xref_mapping/XrefParser/RefSeqCoordinateParser.pm +++ b/misc-scripts/xref_mapping/XrefParser/RefSeqCoordinateParser.pm @@ -341,6 +341,7 @@ sub run_script { # If a best match was defined for the refseq transcript, store it as direct xref for ensembl transcript if ($best_id) { my ($acc, $version) = split(/\./, $id); + $version =~ s/\D//g; my $source_id = $mrna_source_id; $source_id = $ncrna_source_id if $acc =~ /^NR_/; $source_id = $pred_mrna_source_id if $acc =~ /^XM_/; -- GitLab