Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weight_matrix with n_nearest_neighbors and n_neighbors #5

Open
wyq977 opened this issue Jan 5, 2023 · 1 comment
Open

weight_matrix with n_nearest_neighbors and n_neighbors #5

wyq977 opened this issue Jan 5, 2023 · 1 comment

Comments

@wyq977
Copy link
Contributor

wyq977 commented Jan 5, 2023

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

def weight_matrix(adata, l, cutoff=None, n_neighbors=None, n_nearest_neighbors=6, single_cell=False):

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

Best

@leeyoyohku
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants