Convert an annotated indel VCF to a Koh 89-category catalog
Source:R/annot_vcf_to_89_catalog.R
annot_vcf_to_89_catalog.RdTake an annotated indel VCF data frame (with column
Koh_89 as produced by indel classification functions) and
produce a single-column data frame of mutation counts in the
89-category Koh classification scheme.
Usage
annot_vcf_to_89_catalog(
annot_vcf,
sample_id = "no_sample_id_provided",
FILTER_PASS = TRUE,
do_message = FALSE,
clip_le_9 = TRUE
)Arguments
- annot_vcf
A data frame with at least columns
CHROM,POS,ALT, andKoh_89. IfFILTER_PASSisTRUE, aFILTERcolumn is also required.- sample_id
A character string used as the column name in the returned data frame.
- 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.- clip_le_9
Only keep variants with "R" <= 9, to approximate PCAWG indel calling.