-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextract_tmb.Rd
More file actions
37 lines (33 loc) · 1009 Bytes
/
extract_tmb.Rd
File metadata and controls
37 lines (33 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract_TMB.R
\name{extract_tmb}
\alias{extract_tmb}
\title{#' Extract total mutation burden (TMB) of tumors in a maf file}
\usage{
extract_tmb(maf, variant_col = "variant", sample_id_col = "sample", ...)
}
\arguments{
\item{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.}
\item{variant_col}{name of the column in \code{maf} containing variant labels.}
\item{sample_id_col}{name of the column in \code{maf} containing tumor sample IDs.}
\item{...}{Unused.}
}
\value{
Returns a numeric vector providing the total
number of mutations observed in each tumor in maf, named
by the sample ids in maf.
}
\description{
#' Extract total mutation burden (TMB) of tumors in a maf file
}
\examples{
data("impact")
tmb <- extract_tmb(
maf = impact,
variant_col = "Variant",
sample_id_col = "patient_id"
)
tmb
}