openTSNE implements t-SNE dimensionality reduction in Python with speed improvements, multithreading, and extensions for large data and new points.
Overview
openTSNE is a Python library for t-Distributed Stochastic Neighbor Embedding, used to visualize high-dimensional data in two or three dimensions. The design is modular and incorporates published accelerations, including tree-based and interpolation-based methods, so embeddings can scale to very large point counts when configured appropriately.
Capabilities highlighted in the documentation include adding new observations to an existing embedding, multiscale kernels to preserve global cluster structure, and parallel execution when the compiled components are built with OpenMP-capable compilers. Optional FFTW3 integration speeds Fourier steps used during optimization; otherwise SciPy FFT routines are used with lower performance on many-core runs.
Installation is available via conda-forge and PyPI for supported Python versions. A minimal workflow loads numeric data (for example from scikit-learn), constructs a TSNE object, and calls fit to obtain coordinates suitable for scatter plots. Advanced guides cover global structure preservation, very large datasets, parameter choices such as perplexity and exaggeration, and comparison notes relative to other implementations.
The project targets bioinformatics and machine learning practitioners who need interpretable 2D layouts of single-cell transcriptomes and similar tables, as well as engineers embedding openTSNE into analysis notebooks or pipelines.
Key features
- Python t-SNE implementation
- FIt-SNE and Barnes-Hut algorithms
- Multithreaded OpenMP acceleration
- Embed new points into existing maps
- Multiscale kernel global alignment
- conda-forge and pip installs
- Optional FFTW3 fast Fourier transform
- sklearn-compatible usage patterns
Use cases
- Visualizing single-cell RNA-seq embeddings
- Exploratory analysis of high-dimensional tables
- Incremental embedding of new samples
- Large-scale t-SNE with interpolation
- Publishing reproducible dimensionality reductions