Skip to contents

Signac's RunSVD(). The embedding (components z-scored over the cells) goes to the ATAC cache as "lsi", for find_neighbours_sc(), harmony_sc(), umap_sc() and generate_wnn_graph_sc() with modality = "atac", embd_to_use = "lsi". The loadings, singular values and features are kept for project_lsi_sc().

Usage

calculate_lsi_sc(
  object,
  features = NULL,
  lsi_params = params_atac_lsi(),
  seed = 42L,
  .verbose = TRUE
)

Arguments

object

SingleCellsAtac or SingleCellsMultiModal class, after run_tfidf_sc().

features

Optional integer vector. 1-based features. NULL takes top_feature from the feature table if find_top_features_sc() ran, else all.

lsi_params

List. Output of params_atac_lsi().

seed

Integer. Seed of the solver.

.verbose

Boolean. Controls verbosity.

Value

The object with the "lsi" embedding and the LSI fit.

References

Stuart, et al., Nat Methods, 2021