livecellx.core.SingleCellTrajectory

class livecellx.core.SingleCellTrajectory(track_id=None, timeframe_to_single_cell=None, img_dataset=None, mask_dataset=None, extra_datasets=None, mother_trajectories=None, daughter_trajectories=None, meta=None, tmp=None)[source]

Single cell trajectory containing trajectory information for one single cell at all timeframes.

Methods

add_daughter(daughter_sct)

add_mother(mother_sct)

add_nonoverlapping_sct(other_sct)

add the other sct to this sct, but only add the non-overlapping single cells

add_sc(timeframe, sc)

add_single_cell(timeframe, sc)

compute_features(feature_key, func)

_summary_

copy()

get_all_scs()

rtype:

List[SingleCellStatic]

get_img(timeframe)

get_mask(timeframe)

get_sc_bboxes()

get_sc_feature_table()

get_scs_napari_shapes([bbox, ...])

get_single_cell(timeframe)

rtype:

SingleCellStatic

get_sorted_scs()

rtype:

List[SingleCellStatic]

get_time_span()

get_time_span_length()

get_timeframe_span()

get_timeframe_span_length()

inflate_other_trajectories(sctc)

inflate the other trajectories in this trajectory's mother and daughter trajectories

inflate_other_trajectories_by_dict(...)

inflate the other trajectories in this trajectory's mother and daughter trajectories

is_empty()

load_from_json_dict(json_dict[, ...])

load_from_json_file(path)

next_time(time)

return the next time in this trajectory after the given time.

num_scs()

rtype:

int

pop_single_cell(timeframe)

remove_daughter(daughter_sct)

remove_mother(mother_sct)

show_on_grid(**kwargs)

show_trajectory_on_grid(**kwargs)

split(split_time[, tid_1, tid_2])

split this trajectory into two trajectories: [start, split_time), [split_time, end], at the given split time

subsct(min_time, max_time[, track_id, ...])

return a subtrajectory of this trajectory, with timeframes between [min_time, max_time].

to_json_dict([dataset_json_dir])

write_json([path, dataset_json_dir])

Attributes

META_DAUGHTER_IDS

META_MOTHER_IDS