Performs Iterative LSI on a Giotto object, replicating ArchR's approach using Giotto functions.
runIterativeLSI(
gobject,
spat_unit = NULL,
feat_type = NULL,
expression_values = "raw",
name = NULL,
feats_to_use = NULL,
return_gobject = TRUE,
iterations = 2,
sample_cells_pre = 10000,
sample_cells_final = NULL,
var_features = 25000,
dims = 1:30,
scale_to = 10000,
lsi_method = 2,
resolution = 2,
first_selection = "top",
k = 10,
seed = 1234,
set_seed = TRUE,
cor_cutoff = 0.75,
verbose = NULL
)
Giotto object
Spatial unit (e.g., "cell")
Feature type (e.g., "spatial_atac")
Values to use (e.g., "raw")
Name for reduction (default: feat_type + "_iterative_lsi")
Initial feature subset (NULL = all)
Return Giotto object (default = TRUE)
Number of iterations (default = 2)
Cells to subsample in early iterations
Cells to subsample in final iteration (NULL = all)
Number of variable features (default = 25000)
Vector of LSI dimensions to use for clustering and projection steps (default = 1:30)
TF-IDF scaling factor for sub_method 2 (default = 10000)
TF-IDF method: 1 = Casanovich, 2 = Stuart, 3 = ArchR, 4 = Giotto (default = 3). See [Giotto::norm_tfidf] for more information on how each of these are calculated.
Clustering resolution (default = 2)
"top" (accessibility) or "var" (variance) (default = "var")
Number of nearest neighbors for sNN (default = 10)
Seed for reproducibility (default = 1234)
Logical, whether to set a seed (default = TRUE)
Correlation cutoff for filtering LSI dimensions correlated with sequencing depth in intermediate steps (default = 0.75)
Verbosity (default = NULL, inherits from gobject)
Giotto object or LSI coordinates