intervaltree.cgranges

Undocumented in source.

Members

Functions

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)

Deallocate

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)

Sort and index intervals

cr_init
cgranges_t* cr_init()

Initialize

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

Static variables

_iitree_visited
int32_t* _iitree_visited;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_iitree_visited_capacity
int32_t _iitree_visited_capacity;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_iitree_visited_size
int32_t _iitree_visited_size;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

cgranges_t
struct cgranges_t

genomic ranges

cr_ctg_t
struct cr_ctg_t

contig

cr_intv_t
struct cr_intv_t

interval

Meta