trinuc_snv_counts: Tabulate SNVs by trinucleotide context

trinuc_snv_countsR Documentation

Tabulate SNVs by trinucleotide context

Description

This function produces trinucleotide-context-specific SNV counts from MAF data for input to mutational signature extraction tools. Output can be tailored to meet formatting requirements of MutationalPatterns or deconstructSigs, which are probably similar to formats used by other tools.

Usage

trinuc_snv_counts(
  maf,
  genome,
  exclude_recurrent = FALSE,
  style = "MutationalPatterns"
)

Arguments

maf

a cancereffectsizeR-style MAF data table

genome

BSgenome reference genome (for looking up trinucleotide contexts)

exclude_recurrent

Default FALSE. When TRUE, only mutations private to each sample are included in counts, in order to reduce the influence of selection. (If you load more MAF data into the CESAnalysis later, recurrency may change.)

style

"MutationalPatterns" or "deconstructSigs"

Value

Matrix or data frame of SNV counts, suitable for use with MutationalPatterns or deconstructSigs. Samples with zero passing SNVs will not appear.


Townsend-Lab-Yale/cancereffectsizeR documentation built on April 28, 2024, 6:14 p.m.