subsetFSPY {flowSpy} | R Documentation |
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.
subsetFSPY(object, cells = NULL, knn = NA, verbose = FALSE)
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. |
An FSPY object
if (FALSE) { cells <- test.meta.data$cell[which(test.meta.data$stage == "D0")] sub.fspy <- subsetFSPY(fspy, cells = cells) sub.fspy }