Deepvariant is something that could be trained to ignore such artifacts. I have no experience with it, however, and don't know how to get that into sarek.
For finding/filtering all homopolymer variants you can intersect the variants with some annotation of homopolymer regions. This likely will remove true positives as well, but if you have a way of distinguishing those, you could use that criterion on the filtered variants. AI thinks that SV-Pop can do that, but I have never used that. Alternatively, if you can't find any homopolymer annotation, you could write a script that scans a genome FASTA and makes a BED file entry whenever it find 4+ bases of the same kind. When you intersect that with the variant VCF (e.g. using
bedtools
), make sure that you are not missing insertion variants where the base at
POS
in the VCF is
not part of the homopolymer in the reference. (Not sure about the best way of doing this -- maybe some padding of the intervals in the BED?)