From eee9208eb76602e987376cd1a4bf531b792ab3d5 Mon Sep 17 00:00:00 2001
From: "J.F.J. Laros" <j.f.j.laros@lumc.nl>
Date: Wed, 18 Jun 2014 16:45:58 +0200
Subject: [PATCH] Added a dash ('-') as an allowed character in the gene name.

---
 mutalyzer/grammar.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/mutalyzer/grammar.py b/mutalyzer/grammar.py
index a8a987d1..0e65ec57 100644
--- a/mutalyzer/grammar.py
+++ b/mutalyzer/grammar.py
@@ -78,8 +78,11 @@ class Grammar():
     # BNF: ProtIso -> `_i' Number
     ProtIso = Suppress('_i') + Number('ProtIso')
 
+    # BNF: GeneName -> ([a-Z] | [0-9] | `-')+
+    GeneName = Word(alphanums + '-', min=1)
+
     # BNF: GeneSymbol -> `(' Name (TransVar | ProtIso)? `)'
-    GeneSymbol = Suppress('(') + Group(Name('GeneSymbol') + \
+    GeneSymbol = Suppress('(') + Group(GeneName('GeneSymbol') + \
                  Optional(TransVar ^ ProtIso))('Gene') + Suppress(')')
 
     # BNF: GI -> (`GI' | `GI:')? Number
-- 
GitLab