Compute models and embeddings of cells and simulated doublets onto a shared lower-dimensional space (LSI and UMAP)
project_doublets.RdRun
IterativeLSIon input cells; re-project both input cells and simulated doublets through LSI dimension reduction model.Optionally fit a UMAP on the LSI cell embeddings (with re-projection validation). Transform doublets onto model space.
Arguments
- mat
(IterableMatrix, dgCMatrix)
(features x cells)Matrix- sim_doublets
(IterableMatrix, dgCMatrix) Input matrix of simulated doublets
- n_dimensions
(numeric) Number of LSI dimensions to retain
- n_iterations
(numeric) Number of LSI iterations
- lsi_method
(integer or character) Method for TF-IDF normalization. Default is 1 (tf-logidf) to match ArchR doublet inference. See
IterativeLSI()for details.- binarize
(logical) Binarize input matrix prior to LSI (ArchR default is TRUE)
- corr_cutoff
(numeric) Numeric filter for the correlation of a PC to the sequencing depth. If the PC has a correlation that is greater or equal to the corr_cutoff, it will be excluded from the final matrix.
- umap_params
(list) List of parameters to pass to the UMAP function when UMAP projections are computed.
- lsi_params
(list) Named overrides for the internal
IterativeLSI()fit, e.g.list(preset = "archr"). Defaults set here take precedence only where unspecified. See the functionumapin theuwotpackage.- force
(logical) Return UMAP models regardless of correlation threshold.
- seed
(integer) UMAP RNG seed
- batch
(logical) Use uwot's batch UMAP optimizations. Default TRUE.
- threads
(integer) Per-call override of
set_threads(), as inadd_doublet_scores(). Default NULL.- verbose
(logical) Print progress messages. Default
getOption("MarchR.verbose", FALSE).