diff --git a/bwa.c b/bwa.c index 31a8136..4e2775f 100644 --- a/bwa.c +++ b/bwa.c @@ -205,7 +205,7 @@ bwa_aln_t bwa_sa2aln(const bwa_idx_t *idx, bwa_buf_t *buf, const char *seq, uint return aln; } -bwa_one_t *bwa_se(const bwa_idx_t *idx, bwa_buf_t *buf, const char *seq, int gen_cigar) +bwa_one_t *bwa_se2(const bwa_idx_t *idx, bwa_buf_t *buf, const char *seq, int gen_cigar) { bwa_one_t *one; int best, cnt, i, seq_len; @@ -249,6 +249,11 @@ bwa_one_t *bwa_se(const bwa_idx_t *idx, bwa_buf_t *buf, const char *seq, int gen return one; } +bwa_one_t *bwa_se(const bwa_idx_t *idx, bwa_buf_t *buf, const char *seq) +{ + return bwa_se2(idx, buf, seq, 1); +} + void bwa_one_destroy(bwa_one_t *one) { free(one->sai.sai); diff --git a/bwa.h b/bwa.h index 97864ee..5a75c13 100644 --- a/bwa.h +++ b/bwa.h @@ -91,7 +91,7 @@ extern "C" { */ bwa_aln_t bwa_sa2aln(const bwa_idx_t *idx, bwa_buf_t *buf, const char *seq, uint64_t sa, int n_gaps); - bwa_one_t *bwa_se(const bwa_idx_t *idx, bwa_buf_t *buf, const char *seq, int gen_cigar); + bwa_one_t *bwa_se(const bwa_idx_t *idx, bwa_buf_t *buf, const char *seq); void bwa_one_destroy(bwa_one_t *one);