// squeeze out indentical types
for (i = 1, n_types = 1; i < m; ++i)
if (aux[i] != aux[i-1]) ++n_types;
- if (n_types == 1) { // no indels
- free(aux); return -1;
- }
// count reads for each type
cnt = alloca(n_types * 4);
cnt[0] = 1<<8 | aux[0];
free(aux);
// collect types
ks_introsort(uint32_t, n_types, cnt);
+ if (n_types == 1 || (cnt[n_types-1]>>8) * MIN_SUPPORT_COEF < N) // no MNPs or too few supporting reads
+ return -1;
types = (int*)calloc(2, sizeof(int));
types[0] = ref_seq; types[1] = cnt[n_types-1]&0xff;
ref_type = 0; n_types = 2;
#endif
#ifndef PACKAGE_VERSION
-#define PACKAGE_VERSION "0.1.10-4 (r834)"
+#define PACKAGE_VERSION "0.1.10-5 (r836)"
#endif
int bam_taf2baf(int argc, char *argv[]);