livecellx.core.SingleCellTrajectoryCollection
- class livecellx.core.SingleCellTrajectoryCollection(scts=None)[source]
Represents a collection of single-cell trajectories.
Attributes: - track_id_to_trajectory: A dictionary mapping track IDs to SingleCellTrajectory objects. - _iter_index: An index used for iterating over the track ID to trajectory mapping.
Methods
add_trajectory
(trajectory)filter_trajectories
(filter_func[, inplace])filter_trajectories_by_length
([min_length, ...])get_trajectory
(track_id)histogram_traj_length
([ax])load_from_json_dict
(json_dict)load_from_json_dict_parallel
(json_dict)load_from_json_file
(path[, parallel])pop_trajectory
(track_id)remove_empty_sct
([inplace])Plot each trajectory as a line with scatter points as one row.
subset
(track_ids)to_json_dict
([dataset_json_dir])write_json
(path[, dataset_json_dir, ...])