Description Usage Arguments Details Value Examples
bcgr
function calculates the background probability that a gene is mutated based on the frequency of silent mutations.
1 2 |
sample.mutations |
data frame in MAF like format with nonsilent and silent mutations.
Columns names/header in
|
genes |
vector of genes which were sequenced.
Vector of unique values of Hugo_Symbol names (with possibility of more additional genes which did not have any SNV in the cohort).
Default is NULL value and then list of unique genes is taken from |
Variant_Classification |
(optional) integer/numeric value indicating which column in |
Hugo_Symbol |
(optional) integer/numeric value indicating which column in |
Tumor_Sample_Barcode |
(optional) integer/numeric value indicating which column in |
CCF |
(optional) integer/numeric value indicating which column in |
Assuming neutral selection, the function estimates the expected number of nonsilent mutations from observed number of silent mutations. Na (number of all possible nonsilent substitutions) and Ns (number of all possible silent substitutions) were taken from Lawrence paper. They are provided in this package in the file lawrence.RData. When the expected number of nonsilent mutations for each gene is known, the probability to get a nonsilent mutation in each gene is calculated. This is based on
a numeric vector of the probabilities that a gene has a nonsilent mutation (not caused by cancer).
1 2 3 4 | # We first need the CCF column
sample.genes.mutect <- CCF(sample.genes.mutect)
somatic.background <- bcgr(sample.genes.mutect, length.genes$Hugo_Symbol)
head(somatic.background)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.