Learn R Programming

celda (version 0.0.0.9000)

calculate_loglik_from_variables.celda_G: Calculate the celda_G log likelihood for user-provided cluster assignments

Description

This function calculates the log likelihood of each clustering of genes generated over multiple iterations of Gibbs sampling.

Usage

calculate_loglik_from_variables.celda_G(counts, y, L, beta, delta, gamma)

Arguments

counts

A numeric count matrix

y

A numeric vector of gene cluster assignments

L

The number of clusters being considered

beta

The Dirichlet distribution parameter for Phi; adds a pseudocount to each transcriptional state within each cell

delta

The Dirichlet distribution parameter for Eta; adds a gene pseudocount to the numbers of genes each state

gamma

The Dirichlet distribution parameter for Psi; adds a pseudocount to each gene within each transcriptional state

Value

The log likelihood of the provided cluster assignment, as calculated by the celda_G likelihood function