mappy to support BED

This commit is contained in:
Heng Li
2018-09-17 14:54:44 -04:00
parent a3e223f17b
commit b4b70db126
6 changed files with 63 additions and 10 deletions
+5 -3
View File
@@ -368,13 +368,15 @@ int mm_idx_index_name(mm_idx_t *mi);
int mm_idx_name2id(const mm_idx_t *mi, const char *name);
int mm_idx_getseq(const mm_idx_t *mi, uint32_t rid, uint32_t st, uint32_t en, uint8_t *seq);
// BED operations
int mm_idx_bed_read(mm_idx_t *mi, const char *fn);
int mm_idx_bed_attach(mm_idx_t *mi, uint32_t n, mm_idx_bed_t *r);
int mm_idx_bed_query(const mm_idx_t *mi, uint64_t x);
// deprecated APIs for backward compatibility
void mm_mapopt_init(mm_mapopt_t *opt);
mm_idx_t *mm_idx_build(const char *fn, int w, int k, int flag, int n_threads);
int mm_idx_read_bed(mm_idx_t *mi, const char *fn);
int mm_idx_bed_query(const mm_idx_t *mi, uint64_t x);
#ifdef __cplusplus
}
#endif