meta_cells | R Documentation |
This function detects metacells from a single-cell gene expression matrix using dimensionality reduction and clustering techniques.
meta_cells(
matrix,
genes_use = NULL,
genes_exclude = NULL,
var_genes_num = min(1000, nrow(matrix)),
gamma = 10,
knn_k = 5,
do_scale = TRUE,
pc_num = 25,
fast_pca = FALSE,
do_approx = FALSE,
approx_num = 20000,
directed = FALSE,
use_nn2 = TRUE,
seed = 1,
cluster_method = "walktrap",
block_size = 10000,
weights = NULL,
do_median_norm = FALSE,
...
)
matrix |
A gene expression matrix where rows represent genes and columns represent cells. |
genes_use |
Default is |
genes_exclude |
Default is |
var_genes_num |
Default is |
gamma |
Default is |
knn_k |
Default is |
do_scale |
Default is |
pc_num |
Default is |
fast_pca |
Default is |
do_approx |
Default is |
approx_num |
Default is |
directed |
Default is |
use_nn2 |
Default is |
seed |
Default is |
cluster_method |
Default is |
block_size |
Default is |
weights |
Default is |
do_median_norm |
Default is |
... |
Additional arguments passed to internal functions. |
A matrix where rows represent metacells and columns represent genes.
https://github.com/GfellerLab/SuperCell https://github.com/kuijjerlab/SCORPION
data("example_matrix")
meta_cells_matrix <- meta_cells(
example_matrix
)
dim(meta_cells_matrix)
meta_cells_matrix[1:6, 1:6]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.