computeUnsupervisedMetrics: computeUnsupervisedMetrics

Description Usage Arguments Value Examples

View source: R/computeUnsupervisedMetrics.R

Description

A function that computes Dunn Index and and mean Silhouette score for a clustering output

Usage

1

Arguments

sce

A SingleCellExperiment object with raw counts in the counts slot.

clusters

Factor representing clustering results for the SingleCellExperiment object.

Value

A list with the Dunn Index and mean Silhouette score as elements

Examples

1
2
3
4
5
6
7
8
# Example:
## Not run: 
data(embryo)
data(embryoClusts)
# Compute metrics for the first clustering output on the embryo dataset
metrics <- computeUnsupervisedMetrics(embryo, embryoClusts[[1]])

## End(Not run)

cindyfang70/clustREval documentation built on Dec. 19, 2021, 4:59 p.m.