Filter, deduplicate, and check an annotated indel VCF
Source:R/quick_check_vcf.R
quick_check_vcf.RdHelper used by annot_vcf_to_83_catalog,
annot_vcf_to_89_catalog, and
annot_vcf_to_476_catalog to perform shared
preprocessing: rename #CHROM to CHROM, optionally
filter to PASS variants, warn about positions with differing ALT
alleles, and deduplicate by position.
Arguments
- annot_vcf
A data frame with at least columns
CHROM(or#CHROM),POS, andALT. IfFILTER_PASSisTRUE, aFILTERcolumn is also required.- FILTER_PASS
If
TRUE, retain only rows where theFILTERcolumn equals"PASS".- do_message
If
TRUE, emit diagnostic messages showing row counts at each processing step.