organoid_tracker.linking_analysis.cell_nearby_death_counter module

Goes back in time, and records how many times a nearby cell has died. For create an instance of NearbyDeaths (which sets up an index to speed up later calculations), then call its method count_nearby_deaths_in_past.

class organoid_tracker.linking_analysis.cell_nearby_death_counter.NearbyDeaths(links: Links, position_data: PositionData, resolution: ImageResolution, max_distance_um: float = 18)

Bases: object

Goes back in time, and records how many times a nearby (within max_distance_um) cell has died.

count_nearby_deaths_in_past(links: Links, position: Position) int

Calculates the number of deaths in the past.