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(sc)add_sc_by_time(timeframe, sc)add_single_cell(sc)add_single_cell_by_time(timeframe, sc)compute_features(feature_key, func)_summary_
copy([copy_scs])get_img(timeframe)get_mask(timeframe)get_prev_by_sc(sc)get_sc(timeframe)get_scs_napari_shapes([bbox, ...])get_single_cell(timeframe)inflate the other trajectories in this trajectory's mother and daughter trajectories
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()pop_sc(sc)pop_sc_by_time(timeframe)pop_single_cell_by_time(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