bcf_hdr_id2int

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.

  1. int bcf_hdr_id2int(const(bcf_hdr_t)* hdr, int type, const(char)* id)
    extern (C)
    int
    bcf_hdr_id2int
    (
    const(bcf_hdr_t)* hdr
    ,
    int type
    ,
    const(char)* id
    )
  2. auto bcf_hdr_int2id(const(bcf_hdr_t)* hdr, int type, int int_id)

Meta