View source: R/visualization.R
Produce hierarchical clustering for a sub-cluster of a downsampled Seurat object and return a dendrogram.
1 2 3 4 5 6 7 8 9 | dendoSeurat(
seurat.obj,
cluster,
annotation.name,
down.sample,
variable.genes = NULL,
seed = 1,
return.clusters = NULL
)
|
seurat.obj |
A seurat object. |
cluster |
Cluster interested in |
annotation.name |
Variable name given to Seurat cluster assignments |
down.sample |
Amount of cells to sample |
variable.genes |
(Optional) Subet counts data to this many variable genes for distance matrix calculation |
seed |
Value for the seed to set |
return.clusters |
(Optional) Put the height you want to cut the dendrogram at and return an object that contains cells and hierarchical clusters dendoSeurat(seurat.obj, cluster = "5", annotation.name = "seurat_clusters", down.sample = 50, seed = 1, return.clusters = 4) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.