Skip to content

Commit a81d629

Browse files
pichuancopybara-github
authored andcommitted
This change will address the real issue in #334, where the sample name for empty VCFs became default if we don't specify it.
PiperOrigin-RevId: 328370355
1 parent 664b9a0 commit a81d629

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

deepvariant/postprocess_variants.py

+5
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,11 @@ def main(argv=()):
10551055
if record is None:
10561056
logging.info('call_variants_output is empty. Writing out empty VCF.')
10571057
sample_name = dv_constants.DEFAULT_SAMPLE_NAME
1058+
if FLAGS.sample_name:
1059+
logging.info(
1060+
'--sample_name is set in postprocess_variant. Using %s as the '
1061+
'sample name.', FLAGS.sample_name)
1062+
sample_name = FLAGS.sample_name
10581063
variant_generator = iter([])
10591064
else:
10601065
sample_name = _extract_single_sample_name(record)

0 commit comments

Comments
 (0)