View source: R/SetupAndPosterior.R
SetupAndPosterior | R Documentation |
Generate an HDP Gibbs sampling chain from a spectra catalog
SetupAndPosterior( input.catalog, seedNumber = 1, K.guess, multi.types = FALSE, verbose = TRUE, burnin = 5000, post.n = 50, post.space = 50, post.cpiter = 3, post.verbosity = 0, gamma.alpha = 1, gamma.beta = 20, burnin.multiplier = 2, checkpoint = TRUE )
input.catalog |
Input spectra catalog as a matrix or
in |
seedNumber |
A random seed that ensures ensures reproducible results. |
K.guess |
Suggested initial value of the number of raw clusters. Usually, the number of raw clusters is roughly twice the number of extracted signatures. Passed to hdpx::dp_activate as argument initcc. |
multi.types |
A logical scalar or a character vector. If If If a character vector, then its length must be If not |
verbose |
If |
burnin |
The number of burn-in iterations in
one batch. The total number of burnin iterations is
|
post.n |
The number of posterior samples to collect. |
post.space |
The number of iterations between collected samples. |
post.cpiter |
The number of iterations of concentration parameter samplings to perform after each iteration. |
post.verbosity |
Verbosity of debugging statements. No need to change except for development purposes. |
gamma.alpha |
Shape parameter of the gamma distribution prior for the Dirichlet process concentration parameters α_0 and all α_j in Figure B.1 of
|
gamma.beta |
Inverse scale parameter (rate parameter) of the gamma distribution prior for the Dirichlet process concentration parameters: β_0 and all β_j in Figure B.1 of
We recommend gamma.alpha = 1 and gamma.beta = 20 for single-base-substitution signature extraction; gamma.alpha = 1 and gamma.beta = 50 for doublet-base-substitution and indel signature extraction |
burnin.multiplier |
Run |
checkpoint |
If
|
Invisibly, an hdpSampleChain-class
object
as returned from hdp_posterior
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.