plot_markers_to_clusters,ClusterSet-method | R Documentation |
Use jaccard index and hypergeometric to map a list of cell markers to gene clusters.
## S4 method for signature 'ClusterSet'
plot_markers_to_clusters(
object,
markers = NULL,
gradient_palette = c("white", colors_for_gradient("De2")),
background = NULL,
cell_type_order = c("None", "hclust"),
only_specific = FALSE,
jaccard_scale = 10
)
object |
A ClusterSet object. |
markers |
A list of cell markers. |
gradient_palette |
A vector of colors for the gradient palette. |
background |
The background for hypergeometric test. Typically the list of genes annotated in the considered gene ontology (e.g. BP). |
cell_type_order |
The order of cell types. Can be "None" or "hclust". Not supported at the moment. |
only_specific |
Logical value indicating whether to show only specific markers. |
jaccard_scale |
The scale factor for Jaccard coefficient. |
A plot showing the relationship between markers and clusters.
load_example_dataset("8028126/files/pbmc3k_medium_clusters_enr")
library(clustermole)
m <- clustermole_markers(species = "hs")
markers <- split(m$gene[m$organ == "Blood" & m$species == "Human"],
m$celltype[m$organ == "Blood" & m$species == "Human"])
plot_markers_to_clusters(pbmc3k_medium_clusters_enr, markers=markers)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.