Skip to content

Commit

Permalink
Fix a bug in --strictly-novel
Browse files Browse the repository at this point in the history
When only one parent has the alternate read, the score was set to -inf
  • Loading branch information
pd3 committed Sep 4, 2024
1 parent bbe4a1e commit 418e7fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/trio-dnm2.c
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,9 @@ static double process_trio_ACM(args_t *args, priors_t *priors, int nals, double
int ial = *al1;
if ( qs[iMOTHER][ial] + qs[iFATHER][ial] != 0 )
{
double tmp = subtract_log(0,qs[iMOTHER][ial]) + subtract_log(0,qs[iFATHER][ial]);
double tmp = 0;
if ( qs[iMOTHER][ial] ) tmp += subtract_log(0,qs[iMOTHER][ial]);
if ( qs[iFATHER][ial] ) tmp += subtract_log(0,qs[iFATHER][ial]);
sum = sum_log(sum,tmp);
max += tmp;
#if DEBUG
Expand Down

0 comments on commit 418e7fc

Please sign in to comment.