Description Usage Arguments Value Examples
compare clustering parameters and classification outcomes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
expr |
expression matrix |
metadata |
metadata including cluster info and dimension reduction plotting |
ref_mat |
reference matrix |
cluster_col |
column of clustering from metadata |
x_col |
column of metadata for x axis plotting |
y_col |
column of metadata for y axis plotting |
n |
expand n-fold for over/under clustering |
ngenes |
number of genes to use for feature selection, use all genes if NULL |
query_genes |
vector, otherwise genes with be recalculated |
threshold |
type calling threshold |
do_label |
whether to label each cluster at median center |
do_legend |
whether to draw legend |
newclustering |
use kmeans if NULL on dr or col name for second column of clustering |
combine |
if TRUE return a single plot with combined panels, if FALSE return list of plots (default: TRUE) |
faceted ggplot object
1 2 3 4 5 6 7 8 9 | set.seed(42)
overcluster_test(
expr = pbmc_matrix_small,
metadata = pbmc_meta,
ref_mat = cbmc_ref,
cluster_col = "classified",
x_col = "UMAP_1",
y_col = "UMAP_2"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.