regidx_destroy() - free memory allocated by regidx_init
regidx_init() - creates new index @param fname: input file name or NULL if regions will be added one-by-one via regidx_insert() @param parsef: regidx_parse_bed, regidx_parse_tab or see description of regidx_parse_f. If NULL, the format will be autodected, currently either regidx_parse_tab (the default) or regidx_parse_bed (file must be named 'bed' or 'bed.gz') will be used. Note that the exact autodetection algorithm will change. @param freef: NULL or see description of regidx_parse_f @param payload_size: 0 with regidx_parse_bed, regidx_parse_tab or see regidx_parse_f @param usr: optional user data passed to regidx_parse_f
regidx_insert() - add a new region.
regidx_seq_nregs() - number of regions regidx_nregs() - total number of regions
regidx_overlap() - check overlap of the location chr:from-to with regions @param start,end: 0-based start, end coordinate (inclusive) @param itr: pointer to iterator, can be NULL if not needed
regidx_parse_f for BED, CHROM,FROM,TO (0-based,right-open)
regidx_Parse_f for "TAB", CHROM,POS (1-based, inclusive)
regidx_seq_names() - return list of all sequence names
regidx_seq_nregs() - number of regions regidx_nregs() - total number of regions
Get the start or end coordinate of the region iterator's current region
Does the given (from, to) overlap the region?
Get the payload of the region iterator's current region
Get the start or end coordinate of the region iterator's current region
htslib-1.9 regidx.h as D module
Changes include: