get_clusters_kmeans_bulk_SE {tidybulk}R Documentation

Get K-mean clusters to a tibble

Description

Get K-mean clusters to a tibble

Usage

get_clusters_kmeans_bulk_SE(
  .data,
  of_samples = TRUE,
  log_transform = TRUE,
  ...
)

Arguments

.data

A tibble

of_samples

A boolean

log_transform

A boolean, whether the value should be log-transformed (e.g., TRUE for RNA sequencing data)

...

Further parameters passed to the function kmeans

.abundance

A column symbol with the value the clustering is based on (e.g., 'count')

.feature

A column symbol. The column that is represents entities to cluster (i.e., normally samples)

.element

A column symbol. The column that is used to calculate distance (i.e., normally genes)

Value

A tibble with additional columns


[Package tidybulk version 1.5.0 Index]