scib_rapids.nearest_neighbors.pynndescent

Contents

scib_rapids.nearest_neighbors.pynndescent#

scib_rapids.nearest_neighbors.pynndescent(X, n_neighbors=30)[source]#

Compute nearest neighbors using PyNNDescent.

Parameters:
  • X (ndarray) – Array of shape (n_cells, n_features).

  • n_neighbors (int (default: 30)) – Number of nearest neighbors.

Return type:

NeighborsResults

Returns:

NeighborsResults