View source: R/optimise_prior.R
optimise_prior | R Documentation |
Function to optimise the prior using Bayes Factors and grid search
optimise_prior( sparse.data, grid.interval = c(5e-04, 10), type = "optimise.baps", hc.method = "ward", n.cores = 1 )
sparse.data |
a sparse SNP data object returned from import_fasta_sparse_nt |
grid.interval |
the upper and lower bound for the hyperparameter to optimise over (default=c(5e-4, 10)) |
type |
one of 'optimise.symmetric','symmetric', 'optimise.baps', 'baps' or 'hc'. (default='optimise.baps') |
hc.method |
the type of initial hierarchical clustering to use. Can be with 'ward' or 'genie' (default='ward') |
n.cores |
number of cores to use (currently not implemented) |
a sparse.data object with the prior optimised via grid search
fasta.file.name <- system.file("extdata", "seqs.fa", package = "fastbaps") sparse.data <- import_fasta_sparse_nt(fasta.file.name) sparse.data <- optimise_prior(sparse.data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.