bcf_get_info_values

bcf_get_info_*() - get INFO values, integers or floats @hdr: BCF header @line: BCF record @tag: INFO tag to retrieve @dst: *dst is pointer to a memory location, can point to NULL @ndst: pointer to the size of allocated memory

Returns negative value on error or the number of written values (including missing values) on success. bcf_get_info_string() returns on success the number of characters written excluding the null- terminating byte. bcf_get_info_flag() returns 1 when flag is set or 0 if not.

List of return codes: -1 .. no such INFO tag defined in the header -2 .. clash between types defined in the header and encountered in the VCF record -3 .. tag is not present in the VCF record

extern (C)
int
bcf_get_info_values
(
const(bcf_hdr_t)* hdr
,,
const(char)* tag
,
void** dst
,
int* ndst
,
int type
)

Meta