hts_idx_get_stat

@param idx Index @param tid Target ID @paramout mapped Location to store number of mapped reads @paramout unmapped Location to store number of unmapped reads @return 0 on success; -1 on failure (data not available)

BAI and CSI indexes store information on the number of reads for each target that were mapped or unmapped (unmapped reads will generally have a paired read that is mapped to the target). This function returns this infomation if it is available.

@note Cram CRAI indexes do not include this information.

extern (C)
int
hts_idx_get_stat
(
const(hts_idx_t)* idx
,
int tid
,
uint64_t* mapped
,
uint64_t* unmapped
)

Meta