tmb: Estimate Tumor Mutation Burden

View source: R/tmb.R

tmbR Documentation

Estimate Tumor Mutation Burden

Description

Estimates Tumor Mutation Burden in terms of per megabases

Usage

tmb(
  maf,
  captureRegions = NULL,
  captureSize = 50,
  logScale = TRUE,
  ignoreCNV = TRUE,
  plotType = "classic",
  pointcol = "#2c3e50"
)

Arguments

maf

maf MAF object

captureRegions

capture regions. Default NULL. If provided sub-sets variants within the capture regions for TMB estimation. Can be a data.frame or a tsv with first three columns containing chromosome, start and end position.

captureSize

capture size for input MAF in MBs. Default 50MB. Mutually exclusive with captureRegions

logScale

Default TRUE. For plotting purpose only.

ignoreCNV

Default TRUE. Ignores all the variants annotated as 'CNV' in the 'Variant_Type' column of MAF

plotType

Can be "classic" or "boxplot"

pointcol

Default #2c3e50

Value

data.table with TMB for every sample

Examples

laml.maf <- system.file("extdata", "tcga_laml.maf.gz", package = "maftools")
laml <- read.maf(maf = laml.maf)
tmb(maf = laml)

PoisonAlien/maftools documentation built on April 7, 2024, 2:49 a.m.