viola.Vcf.set_value_for_info_by_id

Vcf.set_value_for_info_by_id(table_name, sv_id, value_idx, value)

Set value to the specified info table by sv_id. The value will be overwrited if it already exists.

Parameters
  • table_name (str) – Name of the INFO table.

  • sv_id (str or int) – Target SV ID

  • value_idx (int, default 0) – 0-origin index. This argument should be 0 in most cases unless multiple values are required such as CIPOS and CIEND.

  • value (int or str or bool) – INFO value to be set. For boolean INFO, set True or False.