| extract_tmb | R Documentation |
#' Extract total mutation burden (TMB) of tumors in a maf file
extract_tmb(maf, variant_col = "variant", sample_id_col = "sample", ...)
maf |
mutation annotation file – a data frame-like object with at least two columns containing variant labels and sample IDs. NOTE: uniqueness of rows of maf is assumed. |
variant_col |
name of the column in |
sample_id_col |
name of the column in |
... |
Unused. |
Returns a numeric vector providing the total number of mutations observed in each tumor in maf, named by the sample ids in maf.
data("impact")
tmb <- extract_tmb(
maf = impact,
variant_col = "Variant",
sample_id_col = "patient_id"
)
tmb
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.