GraffiTE is a pipeline that finds polymorphic transposable elements in genome assemblies and/or long reads, and genotypes the discovered polymorphisms in read sets using genome-graphs.
This works with VCFs created by GraffiTE, but VCFs from other sources may not be annotated quite the same way.
For example, the HPRC VCFs are annotated with "del" and "ins".
Therefore, a more general approach is necessary to filter deletions and insertions. Perhaps with bcftools and its ILEN field.
In line 24 of prepTSD, we explicitly filter VCF records by presence of "DEL" and "INS".
This works with VCFs created by GraffiTE, but VCFs from other sources may not be annotated quite the same way. For example, the HPRC VCFs are annotated with "del" and "ins". Therefore, a more general approach is necessary to filter deletions and insertions. Perhaps with bcftools and its ILEN field.