deriveHierarchy | R Documentation |
derive hierarchy from the data using hclust
deriveHierarchy(feature.matrix, annotation, dist.method = "cor", max.depth = 2)
feature.matrix |
matrix where rows represent cells and columns represent either genes or some embedded space (e.g. PCA) |
annotation |
vector with cell type label per cell |
dist.method |
method for pairwise distance estimation. Either "cor" for correlation distance or any method supported by 'dist' function |
max.depth |
maximal depth of the hierarchy |
list with cell type hierarchy
hierarchy <- deriveHierarchy(pca_mtx, annotation, max.depth=3) clf_tree <- hierarchyToClassificationTree(hierarchy) plotTypeHierarchy(clf_tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.