cluster cells using a NN-network and the Louvain algorithm from the community module in Python
.doLouvainCluster_community(
gobject,
spat_unit = NULL,
feat_type = NULL,
name = "louvain_clus",
nn_network_to_use = "sNN",
network_name = "sNN.pca",
python_path = NULL,
resolution = 1,
weight_col = NULL,
louv_random = FALSE,
return_gobject = TRUE,
set_seed = FALSE,
seed_number = 1234,
...
)
giotto object
spatial unit (e.g. "cell")
feature type (e.g. "rna", "dna", "protein")
name for cluster, default to "louvain_clus"
type of NN network to use (kNN vs sNN), default to "sNN"
name of NN network to use, default to "sNN.pca"
specify specific path to python if required
resolution, default = 1
weight column to use for edges
Will randomize the node evaluation order and the community evaluation order to get different partitions at each call (default = FALSE)
logical. return giotto object (default = TRUE)
set seed (default = FALSE)
number for seed
additional params to pass
giotto object with new clusters appended to cell metadata
This function is a wrapper for the Louvain algorithm implemented in Python, which can detect communities in graphs of nodes (cells). See the readthedocs page for more information.
Set weight_col = NULL to give equal weight (=1) to each edge.