organoid_tracker.connection_analysis.connected_position_finder module

organoid_tracker.connection_analysis.connected_position_finder.find_position_in_connected_time_point(experiment: Experiment, position: Position, max_dt: int = 9) Optional[Position]

When the links are established by hand, we don’t annotate every time point. That would be too much work. This method runs a bit forward and backward in time until it finds a time point that does have connections defined. It then returns the position at that time point. Returns None if we couldn’t find the same cell in a time point with links (within dt).

organoid_tracker.connection_analysis.connected_position_finder.has_neighbor_that(experiment: Experiment, position: Position, condition: Callable[[Experiment, Position], bool], max_dt: int = 9) Optional[bool]

Gets whether any neighbor cell (determined using experiment.connections, at time points up to abs(dt) away) conforms to the given condition..