subsetFSPY {flowSpy} | R Documentation

## subset FSPY object

### Description

This subsets an FSPY object by given a list of cells or cluster id. This function will subset all results without recalculating them, such as knn, PCA, tSNE, umap and pseudotime. For instance, you can choose recalculate PCA and tSNE and destiny scores by paramter recalculate.

### Usage

    subsetFSPY(object, cells = NULL, knn = NA, verbose = FALSE)

### Arguments

`object` | An FSPY object
`cells` | vector, Names of the cells to retain.
`knn` | numeric. If is NA, the KNN will be equal to the knn number in the input FSPY object.
`verbose` | logic. Whether to print calculation progress.

### Value

An FSPY object

### Examples

    if (FALSE) {

    cells <- test.meta.data$cell[which(test.meta.data$stage == "D0")]
    sub.fspy <- subsetFSPY(fspy, cells = cells)
    sub.fspy

    }

[Package flowSpy version 1.4.0 Index]