COSIE.utils
Functions
Construct a k-nearest neighbors (k-NN) graph based on an input feature matrix. |
|
Compute the neighborhood embedding of each cell based on its spatial k-nearest neighbor graph. |
|
Efficiently compute approximate k-nearest neighbor (k-NN) graph using the hnswlib library. |
|
Efficiently find approximate K-nearest neighbors using the Annoy library. |
|
Set the random seed for Python, NumPy, and PyTorch to ensure reproducibility. |