acia.tracking.utils#
Utilities for tracking
- acia.tracking.utils.life_cycle_lineage(tr_graph)[source]#
Compresses populated lineage to life cycle lineage (one node per cell cycle)
- Parameters:
tr_graph (nx.DiGraph) – populated tracking graph
- Returns:
nx.DiGraph – Life cycle lineage with cell cylces as nodes
- Return type:
- acia.tracking.utils.delete_nodes(graph, nodes_to_delete)[source]#
Delete nodes while maintaining the connectivity
- acia.tracking.utils.subsample_lineage(lineage, subsampling_factor)[source]#
Subsample lineage by only takeing nodes in every n-th (subsampling_factor) frame. Connectivity is maintained.
- acia.tracking.utils.tracklet_to_tracking(ov, tracklet_graph)[source]#
Compute a tracking graph based on the tracklet graph and an overlay
- acia.tracking.utils.merge_incosistent_segmentation(sub_ov, tracklet_graph, num_timesteps=3)[source]#
Merges incosistent segmentation using the tracking information
- Parameters:
- Returns:
tuple[Overlay, nx.DiGraph] – new overlay and tracklet_graph
- Return type:
- acia.tracking.utils.compute_trace(lineage)[source]#
Computes the trace (cell heritage in a sequence) for every node in the lineage
- Parameters:
lineage (nx.DiGraph) – the lineage. Node ids will be concatenated to trace
- Returns:
dict – Dictionary that contains the trace (str) for every node (type of lineage node)
- Return type: