X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bam2bcf_indel.c;h=f37a7831f9625be14b416510374fd5f71150cfdd;hb=c350a570e955d5b4c2c13f607b7442df6d332c67;hp=899428f1c8c4202caaefded876e290c37f7cb6ac;hpb=8ec3e2c3435d8d000ff5edbeb250e8b46c324eca;p=samtools.git diff --git a/bam2bcf_indel.c b/bam2bcf_indel.c index 899428f..f37a783 100644 --- a/bam2bcf_indel.c +++ b/bam2bcf_indel.c @@ -3,12 +3,14 @@ #include #include "bam.h" #include "bam2bcf.h" -#include "ksort.h" #include "kaln.h" #include "kprobaln.h" #include "khash.h" KHASH_SET_INIT_STR(rg) +#include "ksort.h" +KSORT_INIT_GENERIC(uint32_t) + #define MINUS_CONST 0x10000000 #define INDEL_WINDOW_SIZE 50 @@ -110,7 +112,6 @@ static inline int est_indelreg(int pos, const char *ref, int l, char *ins4) int bcf_call_gap_prep(int n, int *n_plp, bam_pileup1_t **plp, int pos, bcf_callaux_t *bca, const char *ref, const void *rghash) { - extern void ks_introsort_uint32_t(int, uint32_t*); int i, s, j, k, t, n_types, *types, max_rd_len, left, right, max_ins, *score1, *score2, max_ref2; int N, K, l_run, ref_type, n_alt; char *inscns = 0, *ref2, *query, **ref_sample;