pace.build_neighbourhood#

pace.build_neighbourhood(data, cell_type=None, *, x=None, y=None, image=None, h_bio=30.0, h_tech=5.0, eps=None, spatial_key='spatial', n_threads=1)[source]#

The kernel-weighted neighbour abundances, before any fitting.

Returns the Gaussian biological kernel that carries the proximity coefficients and the short-range exponential technical kernel behind the contamination field, each cells by cell types.