Truth.add_cell

Contents

Truth.add_cell#

missionbio.demultiplex.protein.truth.Truth.add_cell

Truth.add_cell(cell: str, expression: Iterable[str], parent: Optional[str] = None, append: bool = True, color: Optional[str] = None, source: Optional[str] = None, check_valid: bool = True) Truth#

Add a celltype to the truth.

Parameters:
  • cell – The name of the cell type.

  • expression – The expression of the cell type.

  • parent – The name of the parent cell type. It must already be present in the truth.

  • append – If True, the cell types expression is appended to that of the given parent.

  • color – The color of the cell type.

  • source – The source of the cell type.

  • check_valid – If True, the truth is checked for validity.

Returns:

The truth with the added cell type.

Return type:

Truth


< Class Truth