View source: R/finalClustering.R
finalClustering | R Documentation |
Merge initial clusters into final clusters based on the matrix of IDEr.
finalClustering(
seu,
dist,
cutree.by = "h",
cutree.h = 0.45,
cutree.k = 3,
hc.method = "complete"
)
seu |
Seurat S4 object after the step of 'getIDEr'. Required. |
dist |
A list. Output of 'getIDEr'. Required. |
cutree.by |
Character. Cut the tree by which parameter, height ("h") or number of clusters ("k"). (Default: h) |
cutree.h |
Numeric between 0 and 1. The height used to cut the tree. Ignored if ‘cutree.by = ’k'. (Default: 0.45) |
cutree.k |
Numeric/integer. Used to cut the tree. Ignored if ‘cutree.by = ’h'. (Default: 3) |
hc.method |
Character. Used to choose the hierarchical clustering method. |
Seurat S4 object with final clustering results in 'CIDER_clusters' of meta.data.
getIDEr
.
library(CIDER)
data("pancreas")
ider <- getIDEr(pancreas, downsampling.size = 30)
seu <- finalClustering(pancreas, ider)
head(seu$CIDER_cluster)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.