Function rust_htslib::htslib::bcf_hdr_id2int [] [src]

pub unsafe extern "C" fn bcf_hdr_id2int(
    hdr: *const bcf_hdr_t,
    type_: c_int,
    id: *const c_char
) -> c_int

bcf_hdr_id2int() - Translates string into numeric ID bcf_hdr_int2id() - Translates numeric ID into string @type: one of BCF_DT_ID, BCF_DT_CTG, BCF_DT_SAMPLE @id: tag name, such as: PL, DP, GT, etc.

Returns -1 if string is not in dictionary, otherwise numeric ID which identifies fields in BCF records.