GibbsSampler
returns estimated GEPs and cell type proportions.This is the Gibbs sampler for CDSeq.
GibbsSampler
returns estimated GEPs and cell type proportions.
gibbsSampler(
ALPHA,
BETA,
mixtureSamples,
T,
NN,
OUTPUT,
processID,
data_block_idx,
CDSeq_tmp_log,
write_2_file,
verbose
)
hyperparameter for cell type proportion.
hyperparameter for cell-type-specific GEPs.
bulk RNA-seq data in form of read counts.
number of cell types.
number of MCMC iteration.
MCMC progress output control.
worker process ID when using parallel computing.
index for data blocks from bulk RNA-seq input.
temporary log file recording the workers' jobs.
print to progress msg to CDSeq_tmp_log if it is 1, not printing otherwise.
if greater than or euqal to 1, then print working progress in console, otherwise do not print in console.
random integers uniformly distributed in 0..(2^32 - 1).