Cluster genes into modules that are co-expressed across cells.
find_gene_modules(
cds,
reduction_method = c("UMAP"),
max_components = 2,
umap.metric = "cosine",
umap.min_dist = 0.1,
umap.n_neighbors = 15L,
umap.fast_sgd = FALSE,
umap.nn_method = "annoy",
k = 20,
leiden_iter = 1,
partition_qval = 0.05,
weight = FALSE,
resolution = NULL,
random_seed = 0L,
cores = 1,
verbose = F,
...
)
the cell_data_set upon which to perform this operation
The dimensionality reduction method used to generate the lower dimensional space in which genes will be clustered. Currently only UMAP is supported.
The number of dimensions in which to cluster genes into modules.
Metric used by UMAP for measuring similarity between genes .
Minimum distance parameter passed to UMAP.
Number of nearest neighbors used by UMAP.
Whether to allow UMAP to perform fast stochastic gradient descent. Defaults to TRUE. Setting FALSE will result in slower, but deterministic behavior (if cores=1).
The method used for nearest neighbor network construction during UMAP.
number of kNN used in creating the k nearest neighbor graph for Louvain clustering. The number of kNN is related to the resolution of the clustering result, bigger number of kNN gives low resolution and vice versa. Default to be 20
Integer number of iterations used for Leiden clustering. The clustering result with the largest modularity score is used as the final clustering result. Default to be 1.
Significance threshold used in Louvain community graph partitioning.
A logic argument to determine whether or not we will use Jaccard coefficient for two nearest neighbors (based on the overlapping of their kNN) as the weight used for Louvain clustering. Default to be FALSE.
Resolution parameter passed to Louvain. Can be a list. If so, this method will evaluate modularity at each resolution and use the one with the highest value.
the seed used by the random number generator in Leiden.
number of cores computer should use to execute function
Whether or not verbose output is printed.
Additional arguments passed to UMAP and Louvain analysis.
A dataframe with genes and the modules to which they are assigned.