post_ph_functions-checkpoint
============================

.. py:module:: post_ph_functions-checkpoint


Functions
---------

.. autoapisummary::

   post_ph_functions-checkpoint.find_knee


Module Contents
---------------

.. py:function:: 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().

   :param v: Series of CoSS's.
   :type v: pd.Series

   :returns: Threshold for declaring a gene to be Spatially Variable.
   :rtype: float


