Commit b323bbc0 authored by Mathieu Giraud's avatar Mathieu Giraud

tests/should-vdj-to-tap.py, 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('#'):
continue
# (such as CDR3 / junction)
if term.startswith('{'):
term = term.replace('*','[*]').replace('!','#')
term = term.replace('{', '.*[{].*').replace('}', '.*[}]')
r += [term]
continue
# 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