Learn R Programming

CIDER (version 0.99.1)

finalClustering: Final clustering step for meta-clustering

Description

Merge initial clusters into final clusters based on the matrix of IDEr.

Usage

finalClustering(
  seu,
  dist,
  cutree.by = "h",
  cutree.h = 0.45,
  cutree.k = 3,
  hc.method = "complete"
)

Value

Seurat S4 object with final clustering results in `CIDER_clusters` of meta.data.

Arguments

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.

See Also

getIDEr.

Examples

Run this code
library(CIDER)
data("pancreas")
ider <- getIDEr(pancreas, downsampling.size = 30)
seu <- finalClustering(pancreas, ider)
head(seu$CIDER_cluster)

Run the code above in your browser using DataLab