aliby.track.utils

Functions

calc_baryangles(centres, bary[, areas])

Calculate angle using centre of cell and barycentre :centre: int (2,) tuple.

calc_barycentre(centres[, weights])

centres

ndarray containing the (x,y) centres of each cell

calc_barydists(centres, bary, **kwargs)

Calculate distances to the barycentre :centre: int (2,) tuple.

compare_pred_truth_lols(prediction, truth)

input

lol_to_adj(cell_ids)

Convert a series list of lists with cell ids into a matrix representing a graph.

pick_baryfun(key)