Description Usage Arguments Details Value
View source: R/get_population_signatures.R
Jointly infers mutational subpopulations and their associated mutation signature exposures
1 2 3 4 5 6 7 8 9 10 11 12 13 |
mutation_table |
Table of mutations, one per row. The minimum input requires the following columns:
|
reference_signatures |
Reference mutation signatures. This can either be from
|
subset_signatures |
Boolean. If TRUE (default), then |
n_populations |
The number of populations to screen for. Must be an integer. If no value is
provided, then a model selection step is engaged to automatically estimate
the number of populations. The automatic model selection uses
|
genome |
A BSgenome object. This is used to determine trinucleotide contexts of mutations
to define mutation types. By default, uses BSgenome.Hsapiens.UCSC.hg19. To
define custom mutation types, simply include a column named |
method |
The posterior sampling method. This is a string and can either be 'vb' for automatic variational Bayes or 'mcmc' for Hamiltonial Monte Carlo. |
n_chains |
Number of chains to sample. Only relevant if |
n_cores |
Number of cores for parallel sampling. By default this equals the number of chains.
Only relevant if |
n_iter |
Number of sampling iterations per chain. These are distinct from adaptation iterations,
so the total number of iterations will be |
n_adapt |
Number of adaptation iterations per chain. Only relevant if |
get_population_signatures
is the central function which facilitates Bayesian inference
of mutational populations and signatures. This model infers a matrix of L x N parameters,
where L is the number of populations and N is the number of signatures. The posterior distribution
of each parameter is estimated using either automatic differentiation variational inference
or Hamiltonial Monte Carlo using the vb
and sampling
methods respectively of the rstan package (an interface to the Stan probabilistic
programming language).
A list object with the posterior sampling of population signatures plus relevant input and metadata.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.