record_set_format_string

Function record_set_format_string 

Source
pub fn record_set_format_string(
    record: &mut Record,
    header: &Header,
    tag: &str,
    values: &[String],
) -> Result<(), Error>
Expand description

Set a FORMAT string field on a record.

Provide one string per sample. For multi-value string fields, concatenate values with commas within each sample’s string.

§Errors

Returns an error if:

  • The tag is not defined in the header
  • The tag is not a String type
  • The tag is “GT” (use dedicated genotype methods instead)