runSSN.Rd
Runs scale-free shared nearest neighbor network (SNN) analysis on subset of features specified in Seurat object.
runSSN(
object,
features,
scale_free = T,
robust_pca = F,
data_type = c("pearson", "deviance"),
reprocess_sct = F,
slot = c("scale", "data"),
batch_feature = NULL,
do_scale = F,
do_center = F,
pca_var_explained = 0.9,
weight_by_var = F,
umap_knn = 10,
optimize_resolution = T,
target_purity = 0.8,
step_size = 0.05,
n_workers = 1,
verbose = T
)
Seurat object
features to compute SNN on. If features are missing from scaled data, scaled data is recomputed.
Logical to enforce scale free topology. Default is T.
Logical to run robust PCA (WARNING: computationally intensive, not recommended for large data). Default is F.
Data type to compute SNN on.
"pearson" - pearson residuals for count data based on regularized negative binomial model.
"deviance" - deviance for count data based on multinomial null model (assumes each feature has constant rate).
if `data_type` is "pearson", specify whether SCTransform is run (regardless whether features missing from existing scaled data or not). Default is F.
Slot to use.
"scale" - RECOMMENDED (default)
"data" - Not recommended and not tested extensively. Available for exploration. If specified, `data_type` is ignored.
Variables to regress out. Default is NULL.
Whether to scale data (only if `slot` = "data")
Whether to center data (only if `slot` = "data")
Proportion of variance explained by PCA. Uses that top N PC components that explain `pca_var_explained` amount of variance. Default is 0.9.
Weight the feature embedding by the variance of each PC
This determines the number of neighboring points used in local approximations of UMAP manifold structure. Larger values will result in more global structure being preserved at the loss of detailed local structure. In general this parameter should often be in the range 5 to 50. default is 10.
Logical specifying whether to identify optimal clustering resolution. Optimal resolution identifying use target purity criteria. Default is T.
Target purity for identifying optimal cluster resolution. Default is 0.8.
Step size between consecutive resolutions to test. Default is 0.05.
Number of workers for parallel implementation. Default is 1.
Print progress. Default is T.
Cell x Gene Seurat object, with gene-centric UMAP embedding and associated gene programs
findNetworkFeatures
for finding features, SCTransform
for gene count normalization and scaling, nullResiduals
for deviance calculations, scaleFreeNet
for scale-free topology transform.