Commit b323bbc0 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

tests/, curly braces { } patterns

Will be used to test CDR3/JUNCTION detection.
parent f16dcf0a
......@@ -99,6 +99,13 @@ def should_pattern_to_regex(p):
if term.startswith('#'):
# (such as CDR3 / junction)
if term.startswith('{'):
term = term.replace('*','[*]').replace('!','#')
term = term.replace('{', '.*[{].*').replace('}', '.*[}]')
r += [term]
# deletion/insertion/deletion
# Note that '/' may be also in gene name, such as in IGKV1/OR-3*01
if term.count('/') == 2:
Markdown is supported
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