collapse_to_cluster | R Documentation |
From per-cell calls, take highest freq call in each cluster
collapse_to_cluster(res, metadata, cluster_col, threshold = 0)
res |
dataframe of idents, such as output of cor_to_call |
metadata |
input metadata with tsne or umap coordinates and cluster ids |
cluster_col |
metadata column for cluster |
threshold |
minimum correlation coefficent cutoff for calling clusters |
new metadata with added columns
res <- clustify( input = pbmc_matrix_small, metadata = pbmc_meta, cluster_col = "classified", ref_mat = cbmc_ref, per_cell = TRUE ) res2 <- cor_to_call(res) collapse_to_cluster( res2, metadata = pbmc_meta, cluster_col = "classified", threshold = 0 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.