cor_to_call_topn {clustifyr} | R Documentation |
get top calls for each cluster
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
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 )