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
d2ed31ac
Commit
d2ed31ac
authored
Mar 07, 2019
by
Mathieu Giraud
Browse files
should-vdj-to-tap.py: do not stop at regex errors
parent
4e5cc9f5
Pipeline
#66985
passed with stages
in 34 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
algo/tests/should-vdj-to-tap.py
View file @
d2ed31ac
...
...
@@ -170,9 +170,9 @@ def should_pattern_to_regex(p):
try
:
regex
=
re
.
compile
(
regex_pattern
)
except
:
except
e
:
sys
.
stderr
.
write
(
"Error. Invalid regex_pattern: "
+
regex_pattern
)
sys
.
exit
(
4
)
raise
e
if
args
.
verbose
:
print
...
...
@@ -304,11 +304,14 @@ def write_should_results_to_tap(should_results, f_tap):
ff
.
write
(
"1..%d
\n
"
%
len
(
should_results
))
for
tap_id
,
(
should
,
result
)
in
enumerate
(
should_results
):
tap_line
=
should_result_to_tap
(
should
,
result
,
tap_id
+
1
)
if
tap_line
is
not
None
:
if
args
.
verbose
or
'#!'
in
tap_line
:
print
tap_line
ff
.
write
(
tap_line
+
'
\n
'
)
try
:
tap_line
=
should_result_to_tap
(
should
,
result
,
tap_id
+
1
)
if
tap_line
is
not
None
:
if
args
.
verbose
or
'#!'
in
tap_line
:
print
tap_line
ff
.
write
(
tap_line
+
'
\n
'
)
except
:
sys
.
stderr
.
write
(
"! Error in running %s
\n
"
%
tap_id
)
...
...
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