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()- rtype
get_img(timeframe)get_mask(timeframe)get_scs_napari_shapes([bbox, ...])get_single_cell(timeframe)- rtype
- rtype
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
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])write_json([path, dataset_json_dir])Attributes