load_tracks
Functions
|
Assumes a csv similar to that created from "export tracks to csv" with columns: |
Module Contents
- load_tracks.tracks_from_csv(csvfile: str, segmentation: numpy.ndarray | None = None) motile_plugin.data_model.SolutionTracks
- Assumes a csv similar to that created from “export tracks to csv” with columns:
t,[z],y,x,id,parent_id,[seg_id]
Cells without a parent_id will have an empty string or a -1 for the parent_id.
- Args:
- csvfile (str):
path to the csv to load
- segmentation (np.ndarray | None, optional):
An optional accompanying segmentation. If provided, assumes that the seg_id column in the csv file exists and corresponds to the label ids in the segmentation array
- Returns:
- Tracks: a tracks object ready to be visualized with
TracksViewer.view_external_tracks