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)

filter_trajectories(filter_func[, inplace])

filter_trajectories_by_length([min_length, ...])

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

get_time_span()

rtype:

[<class 'int'>, <class 'int'>]

get_track_ids()

get_trajectory(track_id)

rtype:

SingleCellTrajectory

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

subset(track_ids)

subset_random(n)

to_json_dict([dataset_json_dir])

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