Skip to content

Commit

Permalink
This change will address the real issue in #334, where the sample nam…
Browse files Browse the repository at this point in the history
…e for empty VCFs became `default` if we don't specify it.

PiperOrigin-RevId: 328370355
  • Loading branch information
pichuan authored and copybara-github committed Aug 25, 2020
1 parent 664b9a0 commit a81d629
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deepvariant/postprocess_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,11 @@ def main(argv=()):
if record is None:
logging.info('call_variants_output is empty. Writing out empty VCF.')
sample_name = dv_constants.DEFAULT_SAMPLE_NAME
if FLAGS.sample_name:
logging.info(
'--sample_name is set in postprocess_variant. Using %s as the '
'sample name.', FLAGS.sample_name)
sample_name = FLAGS.sample_name
variant_generator = iter([])
else:
sample_name = _extract_single_sample_name(record)
Expand Down

0 comments on commit a81d629

Please sign in to comment.