Skip to main content

openTSNE

Build Status Documentation Status 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.7 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.6.1

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.6.1
File Size Uploaded Provenance Actions
openTSNE-0.6.1.tar.gz 909.8 kB Without provenance Details for openTSNE-0.6.1.tar.gz

Built distributions (wheels)

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

Total release size: 14.6 MB

Release files / openTSNE-0.6.1.tar.gz

Download URL openTSNE-0.6.1.tar.gz
Size 909.8 kB
Tags Source
SHA-256 checksum
How to use checksums
79e7c84f485cc5bcdb03c172823968a055239ed9d2a8d8e7f7ba676e4d95b907
BLAKE2b-256 checksum
How to use checksums
a69c462d011b3589bbcf9c91aab1a5dba1033d99e84d7bb087254d93040e6a2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

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

Download URL openTSNE-0.6.1-cp39-cp39-win_amd64.whl
Size 419.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
dfbf9922659f06be1e68dfde9189e86f8630b0b9b7ae6cf69bb9135394fc6ae8
BLAKE2b-256 checksum
How to use checksums
8e25f9294e76d789048c9788c46a6e7818d01c5ea3db332e85a8b6c9b43ac069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / openTSNE-0.6.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl

Download URL openTSNE-0.6.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Size 2.5 MB
Tags CPython 3.9 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
05dcdbc51cd1fd89c1c8913cc5e5b1a35b510fe91ee7f63065a404093a192855
BLAKE2b-256 checksum
How to use checksums
c0221c9da424d0f06576127a55d59b7bc56c4b0fd03255f94a10b2a594bf9733
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

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

Download URL openTSNE-0.6.1-cp39-cp39-macosx_10_14_x86_64.whl
Size 501.6 kB
Tags CPython 3.9 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
30c876de25e48be06e042a7362415505f52677736d5f7a7b231ed58f4f1f3ae9
BLAKE2b-256 checksum
How to use checksums
4c7635e196d31cdde7a8039ed6244dd4002dfe674dc44dd3fc3c50845c640d5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

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

Download URL openTSNE-0.6.1-cp38-cp38-win_amd64.whl
Size 422.4 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
427f47e1eb5b861fca6c81799935b3e7305414b6e146fcb9464cb840a910c986
BLAKE2b-256 checksum
How to use checksums
3d3eeccb2674ab85cda33d347a6443f7b59464885a1a33ae3eaa71d252f9c3d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / openTSNE-0.6.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl

Download URL openTSNE-0.6.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Size 2.7 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
0b266fe0d3465213e876d8f13d891b27b2a5465110972966716f70532db3c2c0
BLAKE2b-256 checksum
How to use checksums
72e40d8bcba8b122f40331d74650ad6102a5cb019a4907e3b5978bf82662e5c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

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

Download URL openTSNE-0.6.1-cp38-cp38-macosx_10_14_x86_64.whl
Size 487.1 kB
Tags CPython 3.8 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
fdea687d5a1b824fcf792604bda2fc3d35b940693a3a9e599a3c30c13be1dc8a
BLAKE2b-256 checksum
How to use checksums
2fd18a6ba80a50beea894dcb0959129396ec6732170d5584eb58865a0a744da5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

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

Download URL openTSNE-0.6.1-cp37-cp37m-win_amd64.whl
Size 413.1 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
f30086aee5910aa3496e22b39ebf45953b445cd3223b2c104e3ed829658de368
BLAKE2b-256 checksum
How to use checksums
da0b2832fea9bcdbb8f8a5feb0d21b98056a8e807948bd352f3c467412fc370d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / openTSNE-0.6.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl

Download URL openTSNE-0.6.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Size 2.4 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
273c9f90ccbc5a39f11039ee29570d6e9e005e9e1d21c0b108cb43936a0fbfdb
BLAKE2b-256 checksum
How to use checksums
e9690b049291d151ac8fd48dff7a8bb38f9b8bae6cd0b894e4c2655684f9f78d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

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

Download URL openTSNE-0.6.1-cp37-cp37m-macosx_10_14_x86_64.whl
Size 486.1 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
30bf1e66ac8b7676e58869d0e41690b8cda1784ad589455594360af37ddd3509
BLAKE2b-256 checksum
How to use checksums
9ce1ebd812537b90cd8d4f7aaf6004aa49ad61eee35f156fc799be74a0293c9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

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

Download URL openTSNE-0.6.1-cp36-cp36m-win_amd64.whl
Size 413.1 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
f079fa837815d11c4513bc8d341509b442b906ab06fde96ea15ad88ecdf31ed4
BLAKE2b-256 checksum
How to use checksums
fdb172e6e778d25ad2c2e1b94e4c3c8de929244d016f23ad9e3714dd74bed634
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / openTSNE-0.6.1-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl

Download URL openTSNE-0.6.1-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Size 2.4 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
d93887b95c747a7fc09cf02d346a15907fb3db7c9fbbaa3a211dd627a3222a3e
BLAKE2b-256 checksum
How to use checksums
b0c7c8deed14e53ff7e3680679ac4d1803970f4ce635af51df3227c546221b06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

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

Download URL openTSNE-0.6.1-cp36-cp36m-macosx_10_14_x86_64.whl
Size 486.1 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
d1b020ec3bc331607d36adcda566387140b5b340e588bce06e01f8a737c6b03b
BLAKE2b-256 checksum
How to use checksums
102333b3175dbadcb49ea321d2954cf877326a48b952ea04f40d0f3a900b6576
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Security for openTSNE 0.6.1

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