viola.Vcf.filter_by_id

Vcf.filter_by_id(arrlike_id)

Filter Vcf object according to the list of SV ids. Return object is also an instance of the Vcf object

Parameters

arrlike_id (list-like) – SV ids which you would like to keep.

Returns

A Vcf object with the SV id specified in the arrlike_id argument. All records associated with SV ids that are not in the arrlike_id will be discarded.

Return type

Vcf