organoid_tracker.linking.cell_division_finder module

Used to find divisions in linking data.

class organoid_tracker.linking.cell_division_finder.Family(mother: Position, daughter1: Position, daughter2: Position)

Bases: object

A mother cell with two daughter cells.

daughters: Set[Position]
mother: Position
organoid_tracker.linking.cell_division_finder.find_families(links: Links, warn_on_many_daughters=True) List[Family]

Finds all mother and daughter cells in a graph. Mother cells are cells with at least two daughter cells. Returns a set of Family instances.

organoid_tracker.linking.cell_division_finder.find_mothers(links: Links, exclude_multipolar=True) Set[Position]

Finds all mother cells in a graph. Mother cells are cells with at least two daughter cells.

organoid_tracker.linking.cell_division_finder.get_next_division(links: Links, position: Position) Optional[Family]

Gets the next division for the given position. Returns None if there is no such division. Raises ValueError if a cell with more than two daughters is found in this lineage.

organoid_tracker.linking.cell_division_finder.get_previous_division(links: Links, position: Position) Optional[Family]

Finds the previous division of a daughter cell. Returns None if the cell is not a daughter cell.