Learn R Programming

ICAMS (version 2.1.2)

SplitOneMutectVCF: Split a mutect2 VCF into SBS, DBS, and ID VCFs, plus a list of other mutations

Description

Split a mutect2 VCF into SBS, DBS, and ID VCFs, plus a list of other mutations

Usage

SplitOneMutectVCF(vcf.df)

Arguments

vcf.df

An in-memory data.frame representing a Mutect VCF, including VAFs, which are added by ReadMutectVCF.

Value

A list with 3 in-memory VCFs and two left-over VCF-like data frames with rows that were not incorporated into the first 3 VCFs, as follows:

  1. SBS VCF with only single base substitutions.

  2. DBS VCF with only doublet base substitutions as called by Mutect.

  3. ID VCF with only small insertions and deletions.

  4. other.subs VCF like data.frame with rows for coordinate substitutions involving 3 or more nucleotides (e.g. ACT > TGA or AACT > GGTA) and rows for complex indels.

  5. multiple.alt VCF like data.frame with rows for variants with multiple alternative alleles, for example ACT mutated to both AGT and ACT at the same position.