get_clusters_SNN_bulk {tidybulk} | R Documentation

## Get SNN shared nearest neighbour clusters to a tibble

### Description

Get SNN shared nearest neighbour clusters to a tibble

### Usage

    get_clusters_SNN_bulk(
      .data,
      .element = NULL,
      .feature = NULL,
      .abundance,
      of_samples = TRUE,
      log_transform = TRUE,
      ...
    )

### Arguments

`.data` | A tibble
`.element` | A column symbol. The column that is used to calculate distance (i.e., normally genes)
`.feature` | A column symbol. The column that is represents entities to cluster (i.e., normally samples)
`.abundance` | A column symbol with the value the clustering is based on (e.g., 'count')
`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

### Value

A tibble with additional columns

[Package tidybulk version 1.4.0 Index]