cospar.simulate.quantify_transition_peak_TPR_LinearDifferentiation

cospar.simulate.quantify_transition_peak_TPR_LinearDifferentiation(used_map, x_t1, x_t2, dL=1, relative_tolerance=3, diff_sigma=0.5, display=True)

Quantify the True positive rate of a transition map for linear differentiation model.

Parameters
used_map

Used tmap, in the form of numpy array, or sparse matrix

x_t1

List of initial cell positions

x_t2

List of later cell positions

dL

Unit progression in a single time step

relative_tolerance

Accept a prediction to be true if its most likely predicted target state is within relative_tolerance*diff_sigma of the expected target state.

diff_sigma

Strength of differentiation noise.

display

Show analysis figures if true.

Returns

Tmap_right_ratio – True positive rate of a transition map