Skip to content

Commit fbacd35

Browse files
pichuancopybara-github
authored andcommitted
After this fix, #305 should be resolved. PiperOrigin-RevId: 317875659
1 parent a69fcd7 commit fbacd35

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scripts/run_deepvariant.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,16 @@
120120
}
121121

122122

123+
def _is_quoted(value):
124+
if value.startswith('"') and value.endswith('"'):
125+
return True
126+
if value.startswith("'") and value.endswith("'"):
127+
return True
128+
return False
129+
130+
123131
def _add_quotes(value):
124-
if isinstance(value, str) and value.startswith('"') and value.endswith('"'):
132+
if isinstance(value, str) and _is_quoted(value):
125133
return value
126134
return '"{}"'.format(value)
127135

@@ -172,7 +180,7 @@ def make_examples_command(ref, reads, examples, extra_args, **kwargs):
172180
"""
173181
command = [
174182
'time', 'seq 0 {} |'.format(FLAGS.num_shards - 1),
175-
'parallel --halt 2 --line-buffer', '/opt/deepvariant/bin/make_examples'
183+
'parallel -q --halt 2 --line-buffer', '/opt/deepvariant/bin/make_examples'
176184
]
177185
command.extend(['--mode', 'calling'])
178186
command.extend(['--ref', '"{}"'.format(ref)])

0 commit comments

Comments
 (0)