sainsc.lazykde.LazyKDE.kde ========================== .. py:method:: sainsc.lazykde.LazyKDE.kde(gene, *, threshold = None) Calculate kernel density estimate (KDE). The kernel will be used from :py:attr:`sainsc.LazyKDE.kernel`. :param gene: List of genes for which to calculate the KDE. :type gene: collections.abc.Sequence[str] :param threshold: Relative threshold of maximum of the kernel that is used to filter beads. All values below :math:`threshold * max(kernel)` are set to 0. Filtering is done after calculating the KDE which sets it apart from reducing `truncate`. :type threshold: float, optional .. seealso:: :py:meth:`sainsc.LazyKDE.gaussian_kernel`