scviva.tools.vision.apply_tsne#
- scviva.tools.vision.apply_tsne(X, perplexity=30.0, n_iter=800)[source]#
t-SNE 2D projection via sklearn.
Mirrors R VISION’s
applytSNE10/applytSNE30. Input is expected to be the latent-space coordinates (PCA scores), matching R’s behaviour of passingt(latentSpace)toRtsnewithpca=FALSE.- Parameters:
- Returns:
2D t-SNE coordinates.
- Return type:
ndarray of shape (n_cells, 2)