livecellx.core.SingleCellTrajectoryCollection

class livecellx.core.SingleCellTrajectoryCollection[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)

get_all_scs()

rtype

List[SingleCellStatic]

get_all_tids()

rtype

List[float]

get_all_track_ids()

rtype

List[float]

get_all_trajectories()

rtype

List[SingleCellTrajectory]

get_feature_table()

rtype

DataFrame

get_time_span()

get_track_ids()

get_trajectory(track_id)

rtype

SingleCellTrajectory

histogram_traj_length([ax])

load_from_json_dict(json_dict)

load_from_json_file(path)

pop_trajectory(track_id)

subset(track_ids)

subset_random(n)

to_json_dict([dataset_json_dir])

write_json(path[, dataset_json_dir])