Skip to content

Commit 868aefb

Browse files
committed
Output missing FORMAT/VAF values in non-trio samples, rather than random nonsense values
1 parent 8f54545 commit 868aefb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ Changes affecting specific commands:
133133
- Allow to set the `--pn` and `--pns` options separately for SNVs and indels and make
134134
the indel settings more strict by default
135135

136+
- Output missing FORMAT/VAF values in non-trio samples, rather than random nonsense values
137+
136138
* bcftools +variant-distance
137139

138140
- New option `-d, --direction` to choose the directionality: forward, reverse, nearest (the default)

plugins/trio-dnm2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* The MIT License
22
3-
Copyright (c) 2018-2022 Genome Research Ltd.
3+
Copyright (c) 2018-2023 Genome Research Ltd.
44
55
Author: Petr Danecek <[email protected]>
66
@@ -1375,6 +1375,7 @@ static void process_record(args_t *args, bcf1_t *rec)
13751375
else
13761376
for (i=0; i<nsmpl; i++) args->dnm_qual_int[i] = bcf_int32_missing;
13771377
for (i=0; i<nsmpl; i++) args->dnm_allele[i] = bcf_int32_missing;
1378+
for (i=0; i<nsmpl; i++) args->vaf[i] = bcf_int32_missing;
13781379
for (i=0; i<args->ntrio; i++)
13791380
{
13801381
if ( args->filter && !args->trio[i].pass ) continue;

0 commit comments

Comments
 (0)