scib_rapids.nearest_neighbors.NeighborsResults#

class scib_rapids.nearest_neighbors.NeighborsResults(indices, distances)[source]#

Nearest neighbors results data store.

distances#

Array of distances to the nearest neighbors.

Type:

np.ndarray

indices#

Array of indices of the nearest neighbors.

Type:

np.ndarray

Attributes table#

knn_graph_connectivities

Compute connectivities using the UMAP approach.

knn_graph_distances

Return the sparse weighted adjacency matrix.

n_neighbors

n_samples

indices

distances

Methods table#

subset_neighbors(n)

Subset down to n neighbors.

Attributes#

NeighborsResults.knn_graph_connectivities#

Compute connectivities using the UMAP approach.

NeighborsResults.knn_graph_distances#

Return the sparse weighted adjacency matrix.

NeighborsResults.n_neighbors[source]#
NeighborsResults.n_samples[source]#
NeighborsResults.indices: ndarray#
NeighborsResults.distances: ndarray#

Methods#

NeighborsResults.subset_neighbors(n)[source]#

Subset down to n neighbors.

Return type:

NeighborsResults