Skip to main content

openTSNE

Build Status Documentation Status Codacy Badge License Badge

openTSNE is a modular Python implementation of t-Distributed Stochasitc Neighbor Embedding (t-SNE) [1], a popular dimensionality-reduction algorithm for visualizing high-dimensional data sets. openTSNE incorporates the latest improvements to the t-SNE algorithm, including the ability to add new data points to existing embeddings [2], massive speed improvements [3] [4], enabling t-SNE to scale to millions of data points and various tricks to improve global alignment of the resulting visualizations [5].

Macosko 2015 mouse retina t-SNE embedding

A visualization of 44,808 single cell transcriptomes obtained from the mouse retina [6] embedded using the multiscale kernel trick to better preserve the global aligment of the clusters.

Installation

openTSNE requires Python 3.6 or higher in order to run.

Conda

openTSNE can be easily installed from conda-forge with

conda install --channel conda-forge opentsne

Conda package

PyPi

openTSNE is also available through pip and can be installed with

pip install opentsne

PyPi package

Installing from source

If you wish to install openTSNE from source, please run

python setup.py install

in the root directory to install the appropriate dependencies and compile the necessary binary files.

Please note that openTSNE requires a C/C++ compiler to be available on the system. Additionally, numpy must be pre-installed in the active environment.

In order for openTSNE to utilize multiple threads, the C/C++ compiler must support OpenMP. In practice, almost all compilers implement this with the exception of older version of clang on OSX systems.

To squeeze the most out of openTSNE, you may also consider installing FFTW3 prior to installation. FFTW3 implements the Fast Fourier Transform, which is heavily used in openTSNE. If FFTW3 is not available, openTSNE will use numpy’s implementation of the FFT, which is slightly slower than FFTW. The difference is only noticeable with large data sets containing millions of data points.

A hello world example

Getting started with openTSNE is very simple. First, we’ll load up some data using scikit-learn

from sklearn import datasets

iris = datasets.load_iris()
x, y = iris["data"], iris["target"]

then, we’ll import and run

from openTSNE import TSNE

embedding = TSNE().fit(x)

Citation

If you make use of openTSNE for your work we would appreciate it if you would cite the paper

@article {Poli{\v c}ar731877,
    author = {Poli{\v c}ar, Pavlin G. and Stra{\v z}ar, Martin and Zupan, Bla{\v z}},
    title = {openTSNE: a modular Python library for t-SNE dimensionality reduction and embedding},
    year = {2019},
    doi = {10.1101/731877},
    publisher = {Cold Spring Harbor Laboratory},
    URL = {https://www.biorxiv.org/content/early/2019/08/13/731877},
    eprint = {https://www.biorxiv.org/content/early/2019/08/13/731877.full.pdf},
    journal = {bioRxiv}
}

openTSNE implements two efficient algorithms for t-SNE. Please consider citing the original authors of the algorithm that you use. If you use FIt-SNE (default), then the citation is [4] below, but if you use Barnes-Hut the citation is [3].

References

Metadata

Release files for openTSNE 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openTSNE 0.5.2
File Size Uploaded Provenance Actions
openTSNE-0.5.2.tar.gz 879.8 kB Without provenance Details for openTSNE-0.5.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for openTSNE 0.5.2
File Actions
openTSNE-0.5.2-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for openTSNE-0.5.2-cp39-cp39-win_amd64.whl
openTSNE-0.5.2-cp39-cp39-manylinux2010_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.12+ x86-64 Details for openTSNE-0.5.2-cp39-cp39-manylinux2010_x86_64.whl
openTSNE-0.5.2-cp39-cp39-macosx_10_14_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.14+ x86-64 Details for openTSNE-0.5.2-cp39-cp39-macosx_10_14_x86_64.whl
openTSNE-0.5.2-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for openTSNE-0.5.2-cp38-cp38-win_amd64.whl
openTSNE-0.5.2-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details for openTSNE-0.5.2-cp38-cp38-manylinux2010_x86_64.whl
openTSNE-0.5.2-cp38-cp38-macosx_10_14_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.14+ x86-64 Details for openTSNE-0.5.2-cp38-cp38-macosx_10_14_x86_64.whl
openTSNE-0.5.2-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for openTSNE-0.5.2-cp37-cp37m-win_amd64.whl
openTSNE-0.5.2-cp37-cp37m-manylinux2010_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Details for openTSNE-0.5.2-cp37-cp37m-manylinux2010_x86_64.whl
openTSNE-0.5.2-cp37-cp37m-macosx_10_14_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64 Details for openTSNE-0.5.2-cp37-cp37m-macosx_10_14_x86_64.whl
openTSNE-0.5.2-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for openTSNE-0.5.2-cp36-cp36m-win_amd64.whl
openTSNE-0.5.2-cp36-cp36m-manylinux2010_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 Details for openTSNE-0.5.2-cp36-cp36m-manylinux2010_x86_64.whl
openTSNE-0.5.2-cp36-cp36m-macosx_10_14_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64 Details for openTSNE-0.5.2-cp36-cp36m-macosx_10_14_x86_64.whl

Total release size: 14.0 MB

Release files / openTSNE-0.5.2.tar.gz

Download URL openTSNE-0.5.2.tar.gz
Size 879.8 kB
Tags Source
SHA-256 checksum
How to use checksums
eef60d1d4a5a9454d7366125cbfc664106efd38af07f390644102aac0738c763
BLAKE2b-256 checksum
How to use checksums
eb31d6d728fb818780567a37978c8b46a71f608adb1e5b46fb966bf0df381350
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / openTSNE-0.5.2-cp39-cp39-win_amd64.whl

Download URL openTSNE-0.5.2-cp39-cp39-win_amd64.whl
Size 400.6 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
17258aa7c7d5a484abf5fc9b400d9ef0c43c32391bc127449a152345a02927ef
BLAKE2b-256 checksum
How to use checksums
0a4c22444ed8c40d4d0835861ab40877fa7268626219fe9f1ee0fe568a5d4c48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / openTSNE-0.5.2-cp39-cp39-manylinux2010_x86_64.whl

Download URL openTSNE-0.5.2-cp39-cp39-manylinux2010_x86_64.whl
Size 2.4 MB
Tags CPython 3.9 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
db90cc8b82a248b5a740218346cc81279e0d8d086c7f46e53c0f608ab06b4536
BLAKE2b-256 checksum
How to use checksums
3e6433d9fa043fef94961fe00055363f60eb440b405fd225ae35325cbb862e9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / openTSNE-0.5.2-cp39-cp39-macosx_10_14_x86_64.whl

Download URL openTSNE-0.5.2-cp39-cp39-macosx_10_14_x86_64.whl
Size 477.0 kB
Tags CPython 3.9 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
4850041cbe7a0f3ad6a429c13cab0ed4718e547967c2aadffcd9e7f051a36052
BLAKE2b-256 checksum
How to use checksums
053df5c9bcc3c9f9fe1e4976e5c8c752de1a7b21e59d1da5a19ded0af6fbf80b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / openTSNE-0.5.2-cp38-cp38-win_amd64.whl

Download URL openTSNE-0.5.2-cp38-cp38-win_amd64.whl
Size 403.2 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
4694dac62ad14dc9218fb957d7ab22d2a38cba142239b081c3f1b78d776469b7
BLAKE2b-256 checksum
How to use checksums
16b27f707ffe4b29416380e63fce08021c1709a3cb85e994d11c9ce8f1a7c92a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / openTSNE-0.5.2-cp38-cp38-manylinux2010_x86_64.whl

Download URL openTSNE-0.5.2-cp38-cp38-manylinux2010_x86_64.whl
Size 2.5 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
700bf4792021a9145f9a7e360e20027cb8933abde3f1b16e3409580b55fcdd41
BLAKE2b-256 checksum
How to use checksums
495e48ce80669c5a88d1156eb9b3e270f012ea79cf277451c7498a2b95aeee47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / openTSNE-0.5.2-cp38-cp38-macosx_10_14_x86_64.whl

Download URL openTSNE-0.5.2-cp38-cp38-macosx_10_14_x86_64.whl
Size 462.8 kB
Tags CPython 3.8 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
64a16bba895b6b7633c9c1c7b6f8cb63ca35b21787a5d4e7c58549b539c7199c
BLAKE2b-256 checksum
How to use checksums
5148997cbaf9f85b1a0416523c7e831c8a001c83626d570276aeddbb913cf24f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / openTSNE-0.5.2-cp37-cp37m-win_amd64.whl

Download URL openTSNE-0.5.2-cp37-cp37m-win_amd64.whl
Size 394.5 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
be6e01a32ca6217850bc14ff7d4c551d2f9e52ae01f89292a92551a407cce697
BLAKE2b-256 checksum
How to use checksums
ba9dff278ff470e5b07d215665d00fb3317ff8d1601d78e9606f50422a1c358d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / openTSNE-0.5.2-cp37-cp37m-manylinux2010_x86_64.whl

Download URL openTSNE-0.5.2-cp37-cp37m-manylinux2010_x86_64.whl
Size 2.3 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
2ce7550faf33f8677ecdf04c7e0903ba2a6d53603812d577154174e4b2b3c306
BLAKE2b-256 checksum
How to use checksums
347b34c6b8e89faa9f9fa35d5184fad0df373d1cbd233acd223531b22f5af4b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / openTSNE-0.5.2-cp37-cp37m-macosx_10_14_x86_64.whl

Download URL openTSNE-0.5.2-cp37-cp37m-macosx_10_14_x86_64.whl
Size 462.5 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
49acc9ce6c10b86a8f24e1eb7a02f5f1686bed5a27fd4bd8e1db9e4ba90c2627
BLAKE2b-256 checksum
How to use checksums
bc8b337d2155f7bb20b4ea27a2b0f7a8671d39fe8b6f1a8d10817e7713c3674a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / openTSNE-0.5.2-cp36-cp36m-win_amd64.whl

Download URL openTSNE-0.5.2-cp36-cp36m-win_amd64.whl
Size 394.5 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
fced4a9bc0230c25e3df7a56c479a7c413e5978d9e5dc5ce1c4249020e08af81
BLAKE2b-256 checksum
How to use checksums
813d52dac93a6d050e3f898f0929c83d64f5ef98215df79d98cfee2a41136295
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / openTSNE-0.5.2-cp36-cp36m-manylinux2010_x86_64.whl

Download URL openTSNE-0.5.2-cp36-cp36m-manylinux2010_x86_64.whl
Size 2.3 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
b6d7f51d3ceba69c2ea58501856ca2264b7cd03c5848c7a483e15fca16e26880
BLAKE2b-256 checksum
How to use checksums
9281c0e6d2231b8467d72295795f8950cafa2ca02cdf7b043dea6e44cad93863
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / openTSNE-0.5.2-cp36-cp36m-macosx_10_14_x86_64.whl

Download URL openTSNE-0.5.2-cp36-cp36m-macosx_10_14_x86_64.whl
Size 462.0 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
94595f5087a168624f8f8a07568ff1064cb9cd248426182229fb21c53547cc85
BLAKE2b-256 checksum
How to use checksums
897c72d5c3708303bacf545e6b9da8ed5318ca2ee323f4c71c2e2ae17043200a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Security for openTSNE 0.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page