- cr_add
cr_intv_t* cr_add(cgranges_t* cr, const(char)* ctg, int32_t st, int32_t en, int32_t label_int, void* data)
Add an interval (JSB: data param)
- cr_add_ctg
int32_t cr_add_ctg(cgranges_t* cr, const(char)* ctg, int32_t len)
Add a contig and length. Call this for desired contig ordering. _len_ can be 0.
- cr_destroy
void cr_destroy(cgranges_t* cr)
- cr_en
int32_t cr_en(const(cr_intv_t)* r)
- cr_end
int32_t cr_end(const(cgranges_t)* cr, int64_t i)
retrieve start and end positions from a cr_intv_t object
- cr_get_ctg
int32_t cr_get_ctg(cgranges_t* cr, const(char)* ctg)
Get the contig ID given its name
- cr_index
void cr_index(cgranges_t* cr)
- cr_init
cgranges_t* cr_init()
- cr_label
int32_t cr_label(const(cgranges_t)* cr, int64_t i)
retrieve start and end positions from a cr_intv_t object
- cr_overlap
int64_t cr_overlap(const(cgranges_t)* cr, const(char)* ctg, int32_t st, int32_t en, int64_t** b_, int64_t* m_b_)
Find (and count) overlaps
- cr_st
int32_t cr_st(const(cr_intv_t)* r)
- cr_start
int32_t cr_start(const(cgranges_t)* cr, int64_t i)
retrieve start and end positions from a cr_intv_t object