Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
b323bbc0
Commit
b323bbc0
authored
Feb 28, 2016
by
Mathieu Giraud
Browse files
tests/should-vdj-to-tap.py, curly braces { } patterns
Will be used to test CDR3/JUNCTION detection.
parent
f16dcf0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
algo/tests/should-vdj-to-tap.py
View file @
b323bbc0
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment