Prepare parameters setup for FAST model fitting.

model_set_FAST(
  maxIter = 30,
  epsLogLik = 1e-05,
  error_heter = TRUE,
  Psi_diag = FALSE,
  verbose = TRUE,
  seed = 1
)

Arguments

maxIter

the maximum iteration of ICM-EM algorithm. The default is 30.

epsLogLik

an optional positive vlaue, tolerance of relative variation rate of the observed pseudo loglikelihood value, defualt as '1e-5'.

error_heter

a logical value, whether use the heterogenous error for FAST model, default as TRUE. If error.heter=FALSE, then the homogenuous error is used.

Psi_diag

a logical value, whether set the conditional covariance matrices of intrisic CAR to diagonal, default as FALSE

verbose

a logical value, whether output the information in iteration.

seed

a postive integer, the random seed to be set in initialization.

Value

return a Seurat object with new reduction (named reduction.name) added to the `reductions` slot.

Examples

model_set_FAST(maxIter = 30, epsLogLik = 1e-5,
  error_heter=TRUE, Psi_diag=FALSE, verbose=TRUE, seed=2023)
#> $maxIter
#> [1] 30
#> 
#> $seed
#> [1] 2023
#> 
#> $epsLogLik
#> [1] 1e-05
#> 
#> $verbose
#> [1] TRUE
#> 
#> $error_heter
#> [1] TRUE
#> 
#> $Psi_diag
#> [1] FALSE
#>