pub fn record_set_format_integer(
record: &mut Record,
header: &Header,
tag: &str,
values: &[i32],
) -> Result<(), Error>Expand description
Set a FORMAT integer field on a record.
The values slice should be flattened: for a field with n values per sample
and s samples, provide s * n values in sample-major order:
[sample0_val0, sample0_val1, ..., sample1_val0, sample1_val1, ...]
Use FORMAT_MISSING_INT (i32::MIN) to represent missing values.
§Errors
Returns an error if:
- The tag is not defined in the header
- The tag is not an Integer type
- The tag is “GT” (use dedicated genotype methods instead)