Description Usage Arguments Value Examples
get top calls for each cluster
1 2 3 4 5 6 7 8 | cor_to_call_topn(
cor_mat,
metadata = NULL,
col = "cluster",
collapse_to_cluster = FALSE,
threshold = 0,
topn = 2
)
|
cor_mat |
input similarity matrix |
metadata |
input metadata with tsne or umap coordinates and cluster ids |
col |
metadata column, can be cluster or cellid |
collapse_to_cluster |
if a column name is provided, takes the most frequent call of entire cluster to color in plot |
threshold |
minimum correlation coefficent cutoff for calling clusters |
topn |
number of calls for each cluster |
dataframe of cluster, new potential ident, and r info
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | res <- clustify(
input = pbmc_matrix_small,
metadata = pbmc_meta,
ref_mat = cbmc_ref,
query_genes = pbmc_vargenes,
cluster_col = "classified"
)
cor_to_call_topn(
cor_mat = res,
metadata = pbmc_meta,
col = "classified",
collapse_to_cluster = FALSE,
threshold = 0.5
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.