Description Usage Arguments Value
View source: R/data_transfer.R
Estimate the data specific parameters through Iterative Nonnegative Matrix Factorization (iNMF), by minimizing the objective function
1/n||X -(HW^TΛ + 1_n b^T)||_F^2
.
1 2 3 4 5 6 7 8 9 10 11 | CFITTransfer(
Xtarget,
Wref,
max.niter = 100,
tol = 1e-05,
init = NULL,
future.plan = c("multicore", "sequential", "transparent", "multisession", "cluster"),
workers = parallel::detectCores() - 1,
seed = 0,
verbose = T
)
|
Xtarget |
An ncells-by-ngenes gene expression matrix |
Wref |
An ngenes-by-r reference low dimensional factor matrix |
max.niter |
integer, max number of iterations (default 100). |
tol |
numeric scalar, tolerance used in stopping criteria (default 1e-5). |
init |
a list of parameters for parameter initialization: lambda, b, H |
future.plan |
plan for future parallel computation, can be chosen from 'sequential','transparent','multicore','multisession' and 'cluster'. Note that Rstudio does not support 'multicore'. |
workers |
additional parameter for |
seed |
random seed used (default 0) |
verbose |
boolean scalar, whether to show extensive program logs (default TRUE) |
a list containing
estimated factor loading matrix of size ncells-by-r
estimated shift vector of size p (ngenes)
estimated scaling vector of size p (ngenes)
boolean, whether the algorithm converge
numeric scalar, value of the objective function at convergence or when maximum iteration achieved
integer, the iteration at convergence (or maximum iteration if not converge)
numeric scalar, the relative difference in last objective update
list of parameters used for the algorithm: max.iter, tol, nrep
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.