cluster_embedding: Cluster the resulting embedding

Description Usage Arguments Value Examples

View source: R/embeddr.R

Description

Cluster the embedded representation using either kmeans or mixture models from the mclust package

Usage

1
cluster_embedding(sce, method = c("mm", "kmeans"), k = NULL)

Arguments

sce

The SCESet object

method

Either 'kmeans' or 'mm' to use mclust

k

The number of clusters to find in the data

Value

The dataframe M with a new numeric variable 'cluster' containing the assigned cluster

Examples

1
2
3
4
library(scater)
data('sc_example_counts') ; sce <- newSCESet(countData = sc_example_counts)
sce <- embeddr(sce)
sce <- cluster_embedding(sce)

kieranrcampbell/embeddr documentation built on May 20, 2019, 9:24 a.m.