Fit a generalized binary covariance decomposition (GBCD) to single cell RNA-seq data containing multiple tumors.
fit_gbcd(
Y,
Kmax,
prior = ebnm::ebnm_generalized_binary,
maxiter1 = 500,
maxiter2 = 200,
maxiter3 = 500,
control = list(),
verbose = 1
)
fit_gbcd_control_default()
Cell x gene matrix of normalized and log-transformed gene expression data.
Integer 2 or greater used to determine the number of
final number of factors in the GBCD. The final number of factors is
often close to Kmax
, and is never greater than 2*Kmax
- 1
.
Nonnegative prior for GEP memberships, usually the
generalized binary prior. The ratio \(\rho = \sigma_k/\mu_k\) in
the generalized binary prior can be controlled via the
flash_ebnm
function from flashier,
flash_ebnm(prior_family = "generalized_binary", scale =
rho)
. See also the ebnm_generalized_binary
function from the ebnm package for more information.
Positive integer specifying the maximum number of backfit iterations during the GEP membership matrix L initialization.
Positive integer specifying the maximum number of backfit iterations during the GEP membership matrix L estimation.
Positive integer specifying the maximum number of backfit iterations during the GEP signature matrix F estimation.
List of control parameters with the following elements: “warmstart”, a logical indicator specifying whether to use warmstart to initialize the prior g when solving EBNM subproblems (see ebnm for details); “extrapolate”, a logical indicator specifying whether to use extrapolation to accelerate backfitting GEP memberships (see flashier for details); “corr_thres”, a numeric scalar between 0 and 1 such that we only keep columns \(l_k\) whose Pearson correlation with \(\tilde{l}_k\) exceeds “corr_thres”.
Integer specifying whether and how to display progress updates, as described in flashier.
A list including the following elements:
cell x GEP matrix containing the posterior estimates of the GEP membership matrix L.
List containing the posterior summaries of the GEP signature matrix F.
# Please see the vignettes for examples.