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)[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, cell)

add_single_cell(timeframe, cell)

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

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

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)

split(split_time)

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 and max_time.

to_json_dict([dataset_json_dir])

update_meta_trajectories()

write_json([path, dataset_json_dir])

Attributes

META_DAUGHTER_IDS

META_MOTHER_IDS