addCellType {monocle} | R Documentation

## Add a new cell type

### Description

adds a cell type to a pre-existing CellTypeHierarchy and produces a function that accepts expression data from a CellDataSet. When the function is called on a CellDataSet a boolean vector is returned that indicates whether each cell is or is not the cell type that was added by addCellType.

### Usage

    addCellType(cth, cell_type_name, classify_func, parent_cell_type_name = "root")

### Arguments

`cth` | The CellTypeHierarchy object
`cell_type_name` | The name of the new cell type. Can't already exist in cth
`classify_func` | A function that returns true when a cell is of the new type
`parent_cell_type_name` | If this cell type is a subtype of another, provide its name here

[Package monocle version 2.22.0 Index]