API#
Metrics#
Import as:
import scib_rapids
scib_rapids.ilisi_knn(...)
|
Isolated label score. |
|
Compute NMI and ARI between k-means clusters and labels. |
|
Compute NMI and ARI between leiden clusters and labels. |
|
Principal component regression (PCR) comparison. |
|
Average silhouette width (ASW). |
|
Average silhouette width (ASW) with respect to batch ids within each label. |
|
Batch removal adapted silhouette (BRAS). |
|
Compute the integration LISI (iLISI). |
|
Compute the cell-type LISI (cLISI). |
|
Compute kBET. |
|
Compute kBET score per cell type label. |
|
Quantify the connectivity of the subgraph per cell type label. |
Utils#
|
CuPy implementation of pairwise distance computation. |
CuPy implementation of pairwise euclidean distance matrix. |
|
|
Compute the Silhouette Coefficient for each observation using CuPy. |
|
CuPy/RAPIDS implementation of KMeans clustering. |
|
Principal component analysis (PCA) using CuPy. |
Principal component regression (PCR) using CuPy. |
|
|
One-hot encode an array. |
|
Compute the Simpson index for each cell using a fused CUDA kernel. |
Convert a kNN graph to indices and distances. |
|
Check if a matrix is square. |
|
|
Diffusion-based neighbors. |
Nearest neighbors#
|
Run pynndescent approximate nearest neighbor search. |
|
Nearest neighbors results data store. |