.filterKnn {CellMixS} | R Documentation

## .filterKnn

### Description

.filterKnn

### Usage

    .filterKnn(knn_cell, batch_min, group, sce)

### Arguments

`knn_cell` | Data frame with one column "distance" and one column named by the group variable. Rows correspond to the knn cells and do not need rownames.
`batch_min` | Numeric. Minimum number of cells per batch to include.
`group` | Character. Name of group/batch variable. Needs to be one of `names(knn)`.
`sce` | A `SingleCellExperiment` object with the combined data.

### Value

data.frame with two columns (index, distance) for filtered knn cells.

### See Also

`.cmsCell`

Other helper functions: `.cmsCell()`, `.defineSubspace()`, `.filterLocMin()`, `.ldfKnn()`, `.smoothCms()`

[Package CellMixS version 1.6.1 Index]