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.0

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.0
File Size Uploaded Provenance Actions
openTSNE-0.5.0.tar.gz 878.7 kB Without provenance Details for openTSNE-0.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for openTSNE 0.5.0
File Actions
openTSNE-0.5.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for openTSNE-0.5.0-cp39-cp39-win_amd64.whl
openTSNE-0.5.0-cp39-cp39-manylinux2010_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.12+ x86-64 Details for openTSNE-0.5.0-cp39-cp39-manylinux2010_x86_64.whl
openTSNE-0.5.0-cp39-cp39-macosx_10_14_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.14+ x86-64 Details for openTSNE-0.5.0-cp39-cp39-macosx_10_14_x86_64.whl
openTSNE-0.5.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for openTSNE-0.5.0-cp38-cp38-win_amd64.whl
openTSNE-0.5.0-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details for openTSNE-0.5.0-cp38-cp38-manylinux2010_x86_64.whl
openTSNE-0.5.0-cp38-cp38-macosx_10_14_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.14+ x86-64 Details for openTSNE-0.5.0-cp38-cp38-macosx_10_14_x86_64.whl
openTSNE-0.5.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for openTSNE-0.5.0-cp37-cp37m-win_amd64.whl
openTSNE-0.5.0-cp37-cp37m-manylinux2010_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Details for openTSNE-0.5.0-cp37-cp37m-manylinux2010_x86_64.whl
openTSNE-0.5.0-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.0-cp37-cp37m-macosx_10_14_x86_64.whl
openTSNE-0.5.0-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for openTSNE-0.5.0-cp36-cp36m-win_amd64.whl
openTSNE-0.5.0-cp36-cp36m-manylinux2010_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 Details for openTSNE-0.5.0-cp36-cp36m-manylinux2010_x86_64.whl
openTSNE-0.5.0-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.0-cp36-cp36m-macosx_10_14_x86_64.whl

Total release size: 13.9 MB

Release files / openTSNE-0.5.0.tar.gz

Download URL openTSNE-0.5.0.tar.gz
Size 878.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f8dcb1145bb61d9d8823d901df7865a9edb20d189a3df6c80832a69ca945e1f8
BLAKE2b-256 checksum
How to use checksums
bbd31d058ce67d3585991290537164d5fa6dbaf0b73569e537a090579704459d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.12

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

Download URL openTSNE-0.5.0-cp39-cp39-win_amd64.whl
Size 399.3 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
80bf71bf2c1cfbb1f64d5858ef098baeb818005872796aa8f0d24f5c03c53d62
BLAKE2b-256 checksum
How to use checksums
0116022e062d8719fae321c1c8568187e218a914a873e3578095c3fd58932ccf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.12

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

Download URL openTSNE-0.5.0-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
adedf874f0e741df38f4dcb9e1b26001b90a1430842682518465836ef25c121f
BLAKE2b-256 checksum
How to use checksums
eb6a40df4c1afcf6ac576f91be898cdd3141745e56b5d1f25369e901f2378591
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.12

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

Download URL openTSNE-0.5.0-cp39-cp39-macosx_10_14_x86_64.whl
Size 476.0 kB
Tags CPython 3.9 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
4f0495cd4fd912ff1ad8e3b45bb1c2acce4123dbe37d0deff39aed9e4d54ec35
BLAKE2b-256 checksum
How to use checksums
cc897ff5ce21fe0ebc2e2022e430d60fd4ef1542fce6d52940370e28d4eace56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.12

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

Download URL openTSNE-0.5.0-cp38-cp38-win_amd64.whl
Size 402.2 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
775c4495d8e786240578c0f12ee3401a8f6d45547d351e62785133fbc18ead1b
BLAKE2b-256 checksum
How to use checksums
6f7cde61d83be4cae843830ac91623db73c6c4990e678a2212b17b9ea81f2b79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.12

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

Download URL openTSNE-0.5.0-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
6a525768a1b812750096ad9442b90dc0b9dea92b8fd7f026aee17b8d033039a4
BLAKE2b-256 checksum
How to use checksums
8712eaa9ab4a384a3c26acdb199a53beb196ecc58ae86636cb17fb341adad9b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.12

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

Download URL openTSNE-0.5.0-cp38-cp38-macosx_10_14_x86_64.whl
Size 461.8 kB
Tags CPython 3.8 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
8563b89d029b15bc45affae3386fc85c90baed54f8402df01ac762f173bef775
BLAKE2b-256 checksum
How to use checksums
1aba076146a626e8c37d130f59a47c9c8a0f6e1d986478012f9b1e4dd4526fb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.12

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

Download URL openTSNE-0.5.0-cp37-cp37m-win_amd64.whl
Size 393.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
a0252d0136f5589dff55629e0bed87a19812e137896bbe5357a70a7d58718cdd
BLAKE2b-256 checksum
How to use checksums
7a44b0ddc856ccff09c4c554bc12a385757bcba9740da340888cf5da117abda5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.12

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

Download URL openTSNE-0.5.0-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
1d37f64b48b32be2680a45b5a5ce4cc355834af9876be57396433c40a6d6a66c
BLAKE2b-256 checksum
How to use checksums
1066ed8c9033f42e2ba81209151f1858427b448aee0bc1dfa1d2b1c77b93eda4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.12

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

Download URL openTSNE-0.5.0-cp37-cp37m-macosx_10_14_x86_64.whl
Size 461.6 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
bbaa23347da3f7346ffab54932fc81f0c6a3d650276893948c4889a7539ee2c6
BLAKE2b-256 checksum
How to use checksums
4d5ec0488617c78a927ae36c6b5186ee34bf1a803c0b266d38a34941b8dffa4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.12

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

Download URL openTSNE-0.5.0-cp36-cp36m-win_amd64.whl
Size 393.3 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
44e9e40af99e5df005f2a6a8edc4e746838de589efe4ce72608e74279c6f7dd3
BLAKE2b-256 checksum
How to use checksums
2017148f5c4cf208d6bd71bc0e270fc556878dcd2d0bdbbb454a0ca1de8898ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.12

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

Download URL openTSNE-0.5.0-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
e9ee0b351b110b98441b487bc87ec53e76c5d16ab88ea953f660050b63c9dc11
BLAKE2b-256 checksum
How to use checksums
acdc5bf88c53a97d3f1429441028d8ea7f8d539bf6c45da3f732ca54fdf59e71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.12

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

Download URL openTSNE-0.5.0-cp36-cp36m-macosx_10_14_x86_64.whl
Size 463.4 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
c2e57a7598765038ffe3c3a718485593ac47d2bf5e66e4248b620bc255350a49
BLAKE2b-256 checksum
How to use checksums
1ce7098d0186b4ab237c8882d98b1d868b46f9ac6ecf5c1e3b2b4e0a947459a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.12

Security for openTSNE 0.5.0

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