Description Usage Arguments Value Examples
Plot best calls for each cluster on a tSNE or umap
1 2 3 4 5 6 7 8 9 10 11 12 | plot_best_call(
cor_mat,
metadata,
cluster_col = "cluster",
collapse_to_cluster = FALSE,
threshold = 0,
x = "UMAP_1",
y = "UMAP_2",
plot_r = FALSE,
per_cell = FALSE,
...
)
|
cor_mat |
input similarity matrix |
metadata |
input metadata with tsne or umap coordinates and cluster ids |
cluster_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 |
x |
x variable |
y |
y variable |
plot_r |
whether to include second plot of cor eff for best call |
per_cell |
whether the cor_mat was generate per cell or per cluster |
... |
passed to plot_dims |
ggplot object, cells projected by dr, colored by cell type classification
1 2 3 4 5 6 7 8 9 10 11 12 13 | res <- clustify(
input = pbmc_matrix_small,
metadata = pbmc_meta,
ref_mat = cbmc_ref,
query_genes = pbmc_vargenes,
cluster_col = "classified"
)
plot_best_call(
cor_mat = res,
metadata = pbmc_meta,
cluster_col = "classified"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.