defLeafCells {flowSpy} | R Documentation

## definition of leaf cells

### Description

definition of root cells

### Usage

    defLeafCells(object, leaf.cells = NULL, pseudotime.cutoff = 0, verbose = FALSE)

### Arguments

`object` | an FSPY object
`leaf.cells` | character or numeric. Cell name of the root cells or cluster.id of root.cells
`pseudotime.cutoff` | numeric. Cutoff of pseudotime. Cells with pseudotime over pseudotime.cutoff will be set to be leaf cells
`verbose` | logical. Whether to print calculation progress.

### Value

An FSPY object

### Examples

    if (FALSE) {
    # Define leaf cells by cluster
    fspy <- defLeafCells(fspy, leaf.cells = 1, verbose = TRUE)
    fspy <- defLeafCells(fspy, leaf.cells = c(1,3), verbose = TRUE)

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

[Package flowSpy version 1.4.0 Index]