funtracks.data_model.solution_tracks
Classes:
-
SolutionTracks
–Difference from Tracks: every node must have a track_id
SolutionTracks
SolutionTracks(graph: nx.DiGraph, segmentation: np.ndarray | None = None, time_attr: str = NodeAttr.TIME.value, pos_attr: str | tuple[str] | list[str] = NodeAttr.POS.value, scale: list[float] | None = None, ndim: int | None = None)
Bases: Tracks
Difference from Tracks: every node must have a track_id
Methods:
-
export_tracks
–Export the tracks from this run to a csv with the following columns:
-
get_next_track_id
–Return the next available track_id and update self.max_track_id
Source code in src/funtracks/data_model/solution_tracks.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
export_tracks
export_tracks(outfile: Path | str)
Export the tracks from this run to a csv with the following columns: t,[z],y,x,id,parent_id,track_id Cells without a parent_id will have an empty string for the parent_id. Whether or not to include z is inferred from self.ndim
Source code in src/funtracks/data_model/solution_tracks.py
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
|
get_next_track_id
get_next_track_id() -> int
Return the next available track_id and update self.max_track_id
Source code in src/funtracks/data_model/solution_tracks.py
57 58 59 60 61 62 63 |
|