Function rust_htslib::htslib::bcf_index_build [] [src]

pub unsafe extern "C" fn bcf_index_build(
    fn_: *const c_char,
    min_shift: c_int
) -> c_int

bcf_index_build() - Generate and save an index file @fn: Input VCF/BCF filename @min_shift: Positive to generate CSI, or 0 to generate TBI

Returns 0 if successful, or negative if an error occurred.

List of error codes: -1 .. indexing failed -2 .. opening @fn failed -3 .. format not indexable -4 .. failed to create and/or save the index