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

Built distributions (wheels)

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

Total release size: 13.9 MB

Release files / openTSNE-0.5.1.tar.gz

Download URL openTSNE-0.5.1.tar.gz
Size 878.7 kB
Tags Source
SHA-256 checksum
How to use checksums
755a54ca10c1300e78181e24144fc24481cb8ab4379d27d4c8782a0a1ee37db9
BLAKE2b-256 checksum
How to use checksums
a85f3f844da0ef45f2210f6f525e9ab8092376db00f1fe343acf9ee7b72132cf
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.55.1 CPython/2.7.12

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

Download URL openTSNE-0.5.1-cp39-cp39-win_amd64.whl
Size 399.3 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
b01fb40c8953bc277503de5755084f37f3782c49d5222e0272ab77b88baf1755
BLAKE2b-256 checksum
How to use checksums
6c8c3dcecb2d3844483c4cb9519cd0bacce6142ff83a6a9854f4203c6644aa15
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.55.1 CPython/2.7.12

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

Download URL openTSNE-0.5.1-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
98295bb2982cb29918b6648fc4c239272cdf748097a2d392879ca8e70abccd04
BLAKE2b-256 checksum
How to use checksums
ffac6069527fe3c3dda706e93dba97a6b37fca20194546fdb257ffd958c93582
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.55.1 CPython/2.7.12

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

Download URL openTSNE-0.5.1-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
8058d358ffbb0149b1ba3fb35db6eedb59a0bc23977e257c559fa1622bfc6d38
BLAKE2b-256 checksum
How to use checksums
3675a870bf81be90f22c2ee849ec273f561fb618093b4c6fd3e70d81bd023f35
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.55.1 CPython/2.7.12

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

Download URL openTSNE-0.5.1-cp38-cp38-win_amd64.whl
Size 402.2 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
5230abc512f2b19e4a534f7e6cf526d644bb11115fd1f17d7c154da4959b92b3
BLAKE2b-256 checksum
How to use checksums
886e6b30e491a13bf76f23320afb742df106fb7173312a4ba375318b90dbf455
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.55.1 CPython/2.7.12

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

Download URL openTSNE-0.5.1-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
a5918703453018770a2dd811fe53923c9665a520c00c9c77080e7997fb5e839f
BLAKE2b-256 checksum
How to use checksums
5388e3b654e0b79dc902517dcaf29a48cad5ff191271e56a527641d62ac5b05c
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.55.1 CPython/2.7.12

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

Download URL openTSNE-0.5.1-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
230019205d02805dd84e93dd18e68dc3fe58b1adec73d9d4be42a26a7f5f13d3
BLAKE2b-256 checksum
How to use checksums
7ed655df398c2fb8fc965ec46f1dcf2142110a483e790ee270cd13624d605b8e
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.55.1 CPython/2.7.12

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

Download URL openTSNE-0.5.1-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
f8aa1ff77c71fdbbdcd87dc2a231e455deadfaf84305990b9333e1eea4238e99
BLAKE2b-256 checksum
How to use checksums
bc3f506acf9f4e358efbfac549e8399ae51d1eedf93592101e07d9da736a1acf
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.55.1 CPython/2.7.12

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

Download URL openTSNE-0.5.1-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
a54835511a1fa8d047d02383dee29a7f74036d7223e479211b63a910ac4ee4a7
BLAKE2b-256 checksum
How to use checksums
1b5ad9e4d08a573ac993db754e402d6d2152cb084abce4f142e641ec6d2cdc55
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.55.1 CPython/2.7.12

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

Download URL openTSNE-0.5.1-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
9db54c185d7c599214cb1bf6fc598f2ebb04a9030a52b7da8b608a34417ae9bc
BLAKE2b-256 checksum
How to use checksums
7909284458b6905d515b791620bf07680539408b2f4326b94ea4c5edbbf98903
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.55.1 CPython/2.7.12

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

Download URL openTSNE-0.5.1-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
7d86a8b977b41f5eade6fb583c8eb5041cbc0c44e22089919fde58f965da316f
BLAKE2b-256 checksum
How to use checksums
b7ccad49da14fe47fa28009fd4158e45b89111e65251e30088c0064c0f35e9dd
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.55.1 CPython/2.7.12

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

Download URL openTSNE-0.5.1-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
b621c6c43f019bbca91da26d37787e18c8c56c80ba1804719382f1874abdb78b
BLAKE2b-256 checksum
How to use checksums
7234eb223df684fc590b7b58a7cab4b356d62d8fac661b2759e2b791aec79627
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.55.1 CPython/2.7.12

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

Download URL openTSNE-0.5.1-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
1c0285b6893c7defabd8d4e9678dcbbb229272657131866bc378daba46b0b084
BLAKE2b-256 checksum
How to use checksums
9362b3c8ba6bdc0a3ea7c23ccc875a65545c8ca80a9f1102f7bee31a222c3418
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.55.1 CPython/2.7.12

Security for openTSNE 0.5.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