Convert an annotated indel VCF to a COSMIC 83-category catalog
Source:R/annot_vcf_to_83_catalog.R
annot_vcf_to_83_catalog.RdTake an annotated indel VCF data frame (with column
COSMIC_83 as produced by indel classification functions) and
produce a single-column data frame of mutation counts in the
83-category COSMIC ID classification scheme.
Usage
annot_vcf_to_83_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, andCOSMIC_83. 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.