Skip to content

Commit b9c0c19

Browse files
pd3jkbonfield
authored andcommitted
Test only increasing AD but leaving the default calling
1 parent 311ac89 commit b9c0c19

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

bam2bcf.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,17 @@ int bcf_call_glfgen(int _n, const bam_pileup1_t *pl, int ref_base, bcf_callaux_t
216216
{
217217
b = p->aux>>16&0x3f;
218218
seqQ = q = (p->aux & 0xff); // mp2 + builtin indel-bias
219-
if (p->indel && q < bca->min_baseQ) continue;
219+
if (q < bca->min_baseQ)
220+
{
221+
if (!p->indel && r->ADF)
222+
{
223+
if ( bam_is_rev(p->b) )
224+
r->ADR[b]++;
225+
else
226+
r->ADF[b]++;
227+
}
228+
continue;
229+
}
220230
if (p->indel == 0 && (q < _n/2 || _n > 20)) {
221231
// high quality indel calls without p->indel set aren't
222232
// particularly indicative of being a good REF match either,

mpileup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,7 @@ static void print_usage(FILE *fp, const mplp_conf_t *mplp)
11611161
" -P, --platforms STR comma separated list of platforms for indels [all]\n");
11621162
fprintf(fp,
11631163
" --indel-bias FLOAT Raise to favour recall over precision [%.2f]\n"
1164+
" --ambiguous-reads FLAGS Count ambiguous indel reads as: alt,ref,drop [drop]\n"
11641165
"\n", mplp->indel_bias);
11651166
fprintf(fp,
11661167
"Configuration profiles activated with -X, --config:\n"

0 commit comments

Comments
 (0)