Calculate log lileklihood for the celda Cell and Gene clustering model, given a set of cell / gene cluster assignments
calculate_loglik_from_variables.celda_CG(counts, s, z, y, K, L, alpha, beta,
delta, gamma)
A numeric count matrix
A numeric vector of sample labels corresponding to the samples each cell in the count matrix originates from
A numeric vector of cell cluster assignments
A numeric vector of gene cluster assignments
The number of cell clusters
The number of gene clusters
Non-zero concentration parameter for sample Dirichlet distribution.
The Dirichlet distribution parameter for Phi; adds a pseudocount to each transcriptional state within each cell.
The Dirichlet distribution parameter for Eta; adds a gene pseudocount to the numbers of genes each state.
The Dirichlet distribution parameter for Psi; adds a pseudocount to each gene within each transcriptional state.