scib_metrics.nearest_neighbors.NeighborsResults#
- class scib_metrics.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. Self should always be included here; however, some approximate algorithms may not return the self edge.
- Type:
np.ndarray
Attributes table#
Compute connectivities using the UMAP approach. |
|
Return the sparse weighted adjacency matrix. |
|
Number of neighbors. |
|
Number of samples (cells). |
|
Methods table#
Subset down to |
Attributes#
- NeighborsResults.knn_graph_connectivities#
Compute connectivities using the UMAP approach.
Connectivities (similarities) are computed from distances using the approach from the UMAP method, which is also used by scanpy.
- NeighborsResults.knn_graph_distances#
Return the sparse weighted adjacency matrix.