SpatialDM icon indicating copy to clipboard operation
SpatialDM copied to clipboard

weight_matrix with n_nearest_neighbors and n_neighbors

Open wyq977 opened this issue 2 years ago • 1 comments

Hi, I am wondering why there are two parameters for nearest neighbours in weight matrix calculation.

https://github.com/StatBiomed/SpatialDM/blob/aa1762496437a45787314a27e88313bdec6287c0/spatialdm/main.py#L34

It seems to me that there is no need for both or am I missing sth?

Best

wyq977 avatar Jan 05 '23 12:01 wyq977

n_neighbors is for secreted (long-distance) signaling, while n_nearest_neighbors is for adjacent signaling (ECM or cell-cell contact).

leeyoyohku avatar Jan 11 '23 11:01 leeyoyohku