kmeans_haystack_raw: Function for k-means clustering of genes according to their...

View source: R/haystack_clustering.R

kmeans_haystack_rawR Documentation

Function for k-means clustering of genes according to their distribution on a 2D plot.

Description

Function for k-means clustering of genes according to their distribution on a 2D plot.

Usage

kmeans_haystack_raw(x, y, detection, genes, k, ...)

Arguments

x

x-axis coordinates of cells in a 2D representation (e.g. resulting from PCA or t-SNE)

y

y-axis coordinates of cells in a 2D representation

detection

A logical matrix showing which genes (rows) are detected in which cells (columns)

genes

A set of genes (of the 'detection' data) which will be clustered.

k

The number of clusters to return.

...

Additional parameters which will be passed on to the kmeans function.

Value

An object of class kmeans, describing a clustering into 'k' clusters


singleCellHaystack documentation built on Dec. 28, 2022, 1:29 a.m.