addCellType: Add a new cell type

Description Usage Arguments

View source: R/methods-CellTypeHierarchy.R

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

1
2
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


cole-trapnell-lab/monocle-release documentation built on May 13, 2019, 8:50 p.m.