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_all_scs()

get_all_tids()

get_all_track_ids()

get_all_trajectories()

get_feature_table()

get_max_tid()

get_time_span()

get_track_ids()

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])

show_tracks()

Plot each trajectory as a line with scatter points as one row.

subset(track_ids)

subset_random(n)

to_json_dict([dataset_json_dir])

write_json(path[, dataset_json_dir, ...])