run_glmeiv_given_precomputations: Run GLM-EIV given precomputations

View source: R/at_scale_em_algo_functs.R

run_glmeiv_given_precomputationsR Documentation

Run GLM-EIV given precomputations

Description

Runs a full GLM-EIV given mRNA and gRNA precomputations, as outputted by run_glmeiv_precomputation function.

Usage

run_glmeiv_given_precomputations(
  m,
  g,
  m_precomp,
  g_precomp,
  covariate_matrix,
  m_offset,
  g_offset,
  n_em_rep,
  pi_guess_range,
  m_perturbation_guess_range,
  g_perturbation_guess_range,
  ep_tol = 1e-04
)

Arguments

m

mRNA counts

g

gRNA counts

m_precomp

mRNA precomputation list, as outputted by run_glmeiv_precomputation

g_precomp

gRNA precomputation list, as outputted by run_glmeiv_precomputation

covariate_matrix

the matrix of covariates; NULL if there are no covariates.

m_offset

offsets for m

g_offset

offsets for g

n_em_rep

number of EM reps to run on reduced GLM-EIV model

pi_guess_range

range of values over which to sample pi

m_perturbation_guess_range

range of values over which to sample m_perturbation

g_perturbation_guess_range

range of values over which to sample g_perturbation

ep_tol

(optional) EM convergence threshold

fam_str

string describing family; currently "poisson" or "Negative Binomial" supported

Value

a fitted GLM-EIV model


timothy-barry/glmeiv documentation built on Jan. 30, 2024, 3:46 p.m.