Commit 9867966a authored by Vermaat's avatar Vermaat
Browse files

Recognize Ensembl ID by ENS prefix

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/branches/mobile-2013@732 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
parent 220f9806
......@@ -90,7 +90,7 @@ class Grammar():
Version = Suppress('.') + Number('Version')
# BNF: AccNo -> ([a-Z] Number `_')+ Version?
AccNo = NotAny(Literal('LRG_') | Literal('_')) + \
AccNo = NotAny(Literal('LRG_') | Literal('ENS')) + \
Combine(Word(alphas + '_') + Number)('RefSeqAcc') + \
Optional(Version)
......@@ -108,7 +108,7 @@ class Grammar():
LRGProteinID)
# BNF: EnsemblRef -> `_` ([a-Z]+ | Number)+ (`(' GeneSymbol `)')?
EnsemblRef = Suppress('_') + Combine(Word(alphas) + Number)('EnsemblId') + Optional(GeneSymbol)
EnsemblRef = Combine('ENS' + Word(alphas) + Number)('EnsemblId') + Optional(GeneSymbol)
# RefSeqAcc -> (GI | AccNo | UD | LRG) (`(' GeneSymbol `)')?
GenBankRef = (GI ^ AccNo ^ UD) + Optional(GeneSymbol)
......
Supports Markdown
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