subsetFSPY: subset FSPY object

Description Usage Arguments Value Examples

View source: R/subsetFSPY.R

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

1
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

1
2
3
4
5
6
7
if (FALSE) {

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

}

flowSpy documentation built on Nov. 8, 2020, 6:53 p.m.