View source: R/annotate_clusters.R
annotate_merge_by_cluster | R Documentation |
Merges individual cell annotations by cluster using majority rule (the entire cluster is annotated as the individual annotation represented by most cells within the cluster)
annotate_merge_by_cluster(
annotation,
cluster,
threshold = "max",
collapse = "/",
exclude = c()
)
annotation |
vector of individual cell annotations (i.e. from SingleR) (one value for each cell) |
cluster |
vector of cluster assignments (one value for each cell) |
threshold |
Frequency threshold to be included in new cluster name (use 'max' to only include a single annotation) |
collapse |
If frequency is not 'max', the annotations that fullfil the threshold are separated by this character |
exclude |
Vector of annotations that should not be merged, but kept as is (i.e. gdT cells defined by their TCR) |
vector of cluster annotations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.