scviva.tools.vision.apply_isomap#

scviva.tools.vision.apply_isomap(X, K=None)[source]#

ISOMap 2D projection via sklearn.

Mirrors R VISION’s applyISOMap (vegan::isomap with epsilon=1e6 — effectively a fully-connected distance graph). sklearn’s Isomap uses a KNN-based neighbourhood graph; setting K large (≈ 3 × √n_cells) approximates the all-connected behaviour.

Parameters:
X ndarray

Latent-space cell coordinates.

K int | None

Number of neighbours. Defaults to min(n_cells − 1, max(10, 3 · round(√n_cells))).

Return type:

ndarray

Returns:

ndarray of shape (n_cells, 2) 2D ISOMap coordinates.