ovrlpy.sample_expression_at_xy ============================== .. py:function:: ovrlpy.sample_expression_at_xy(df, sampling_points_x, sampling_points_y, genes=None, KDE_bandwidth=1, min_expression = 0) Returns a matrix of gene expression vectors at each local maximum. :param df: A dataframe of coordinates that will be sampled for gene expression. :type df: pandas.DataFrame :param sampling_points_x: x-coordinates to sample gene expression at. :type sampling_points_x: list :param sampling_points_y: y-coordinates to sample gene expression at. :type sampling_points_y: list :param genes: list of genes to sample expression for. Defaults to all genes in the dataframe. :type genes: list, optional :param KDE_bandwidth: Bandwidth of the Gaussian smoothing function used during the KDE. :type KDE_bandwidth: float, optional :param min_expression: A minimal expression threshold to report as local maximum regions of interest. :type min_expression: float, optional :rtype: pandas.DataFrame