defRootCells: definition of root cells

Description Usage Arguments Value Examples

View source: R/pseudotime.R

Description

definition of root cells

Usage

1
defRootCells(object, root.cells = NULL, verbose = FALSE)

Arguments

object

an FSPY object

root.cells

vector. Cell name of the root cells

verbose

logical. Whether to print calculation progress.

Value

An FSPY object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if (FALSE) {
# Define root cells by cluster
fspy <- defRootCells(fspy, root.cells = 6, verbose = TRUE)
fspy <- defRootCells(fspy, root.cells = c(6,8), verbose = TRUE)

# Define root cells by cell names
cells <- test.meta.data$cell[which(test.meta.data$stage == "D0")]
cells <- as.character(cells)
fspy <- defRootCells(fspy, root.cells = cells, verbose = TRUE)
}

JhuangLab/flowSpy documentation built on July 15, 2020, 8:31 a.m.