Commit 0486a68
Fix three bugs in bam2bcf indel calling
- bam2bcf_indel.c: Initialize K=0 at declaration to avoid using an
uninitialized variable in the max-deletion loop (line ~783) which
runs before K is reset at line ~791.
- bam2bcf_iaux.c: Fix memset size in iaux_init_scores() to use
n*sizeof(int) instead of n, since read_scores is int*. Without
this, only 1/4 of the array (on most platforms) was being zeroed.
- bam2bcf_iaux.c: Fix per-sample indel fraction denominator in
iaux_init_types() to use ntot (per-sample read count) instead of
naux (running cross-sample indel count), which produced incorrect
filtering thresholds.1 parent 944cebd commit 0486a68
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
| 705 | + | |
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
| |||
0 commit comments