Truth.trim

Contents

Truth.trim#

missionbio.demultiplex.protein.truth.Truth.trim

Truth.trim(name: str, include: bool = False, check_valid: bool = True) Truth#

Trim the truth to remove the given cell and all its descendants.

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

  • include – If True, the given cell type is also removed.

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

See also

  1. Truth.isolate to keep only the given cell type and its descendants.

  2. Truth.del_cell to delete only one cell type.

Returns:

The trimmed truth.

Return type:

Truth


< Class Truth