Description Usage Arguments Value Examples
View source: R/hbfm_functions.R
Function used to implement the MCMC sampler for the hierarchical Bayesian factor model (HBFM) defined in the "A sparse Bayesian factor model for the construction of gene co-expression networks from single-cell RNA sequencing count data" manuscript.
1 2 3 |
stoc.em.param |
object of hbfm.par-class created by the |
M |
total number of MCMC iterations |
M.save |
number of iterations to be used for correlation estimation; the final |
M.ll.seq |
intervals for calculating marginal log-likelihood before final |
H |
number of lambda draws for marginal log-likelihood calculation |
phi.scale |
lognormal scale parameter used when drawing candidate values of phi in Metropolis-Hastings step; can be used to adjust acceptance rate of phi samples |
par.samp |
if TRUE, samples of each parameter in |
seed |
seed for random number generation |
verbose |
if TRUE, |
hbfm.fit-class object containing:
Y: data.frame or matrix of gene expression counts
Fac: number of factors considered in the model
samples: samples of estimated parameters and/or calculated parameters from MCMC iterations
mll: calculated marginal log-likelihoods
corr: samples of gene-gene correlation matrix
beta: samples of beta parameters; included only when par.samp = TRUE
theta: samples of theta parameters; included only when par.samp = TRUE
alpha: samples of alpha parameters; included only when par.samp = TRUE
lambda: samples of lambda parameters; included only when par.samp = TRUE
phi: samples of phi parameters; included only when par.samp = TRUE
h1: samples of location hyperparameter of lognormal prior for phi; included only when par.samp = TRUE
h2: samples of scale hyperparameter of lognormal prior for phi; included only when par.samp = TRUE
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.