Skip to content

Commit

Permalink
Fixing the empty shard issue for call_variant for real.
Browse files Browse the repository at this point in the history
Unit test will be fixed in a separate change.

PiperOrigin-RevId: 194849626
  • Loading branch information
pichuan authored and Pi-Chuan Chang committed May 1, 2018
1 parent cf2ae1e commit 12f9e67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deepvariant/call_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ def call_variants(examples_filename,
logging.warning('Unable to read any records from %s. Output will contain '
'zero records.', examples_filename)
io_utils.write_tfrecords([], output_file)
return
elif example_format != 'raw':
raise ValueError('The TF examples in {} has image/format \'{}\' '
'(expected \'raw\') which means you might need to rerun '
Expand Down

0 comments on commit 12f9e67

Please sign in to comment.