Skip to content

Commit 37cf779

Browse files
committed
Do not flag paternal genotyping errors as de novo mutations.
Specifically, when father's chrX genotype is 0/1 and mother's 0/0, 0/1 in the child will not be marked as DNM.
1 parent 4014f7e commit 37cf779

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ Changes affecting specific commands:
109109
substrings to avoid unexpected spurious matches (i.e. internally add ^ and $ to all
110110
field names)
111111

112+
* bcftools +trio-dnm2
113+
114+
- Do not flag paternal genotyping errors as de novo mutations. Specifically, when father's
115+
chrX genotype is 0/1 and mother's 0/0, 0/1 in the child will not be marked as DNM.
116+
112117
* bcftools view
113118

114119
- Add new `-A, --trim-unseen-allele` option to remove the unseen allele <*> or <NON_REF>

plugins/trio-dnm2.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,12 @@ static void init_tprob_mprob_chrXX(args_t *args, int fi, int mi, int ci, double
567567

568568
*denovo_allele = ca!=fa && ca!=fb && ca!=ma && ca!=mb ? ca : cb;
569569

570-
if ( fa!=fb ) // father cannot be heterozygous in X
571-
*mprob = 0, *tprob = 0;
570+
if ( fa!=fb )
571+
{
572+
// this must be a genotype error, father cannot be heterozygous in X; don't flag it as a DNM unless
573+
// also autosomal inheritance fails
574+
init_tprob_mprob(args,fi,mi,ci,tprob,mprob,denovo_allele);
575+
}
572576
else if ( (ca==fa && (cb==ma||cb==mb)) || (cb==fa && (ca==ma||ca==mb)) )
573577
{
574578
if ( ma==mb ) *tprob = 1;

test/trio-dnm/trio-dnm.9.2.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
1 . .
1111
1 . .
1212
1 . .
13-
1 . .
13+
. . .
1414
. . .
1515
. . .

0 commit comments

Comments
 (0)