From 21a5737a812a6811b7a551f1b76e8b6fee7720be Mon Sep 17 00:00:00 2001
From: Ridwan Amode <ridwan@ebi.ac.uk>
Date: Fri, 19 Feb 2016 14:46:25 +0000
Subject: [PATCH]  added MKG in location validation

---
 modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
index a788565881..ec6f65e2e9 100644
--- a/modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
+++ b/modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
@@ -609,7 +609,7 @@ sub parse_location_to_values {
   my $number_seps_regex = qr/\s+|,/;
   my $separator_regex = qr/(?:-|[.]{2}|\:|_)?/; # support -, .., : and _ as separators
   my $hgvs_nomenclature_regex = qr/(?:g\.)?/; # check for HGVS looking locations e.g. X:g.1-100
-  my $number_regex = qr/[0-9, E]+/xms;
+  my $number_regex = qr/[0-9, EMKG]+/xmsi;
   my $strand_regex = qr/[+-1]|-1/xms;
   
   my $regex = qr/^((?:\w|\.|_|-)+) \s* :? \s* $hgvs_nomenclature_regex ($number_regex)? $separator_regex ($number_regex)? $separator_regex ($strand_regex)? $/xms;
-- 
GitLab