persist_spatial.post_ph_functions

Functions

find_knee(→ float)

Computes a threshold score for spatial variability.

Module Contents

persist_spatial.post_ph_functions.find_knee(v: pandas.Series) float

Computes a threshold score for spatial variability.

Takes in a Series v of spatial structrue scores and returns a cutoff point to use for deciding which genes are spatially variable. To be called by compute_persistence.run_persistence().

Parameters:

v (pd.Series) – Series of CoSS’s.

Returns:

Threshold for declaring a gene to be Spatially Variable.

Return type:

float