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.6.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.6.0
File Size Uploaded Provenance Actions
openTSNE-0.6.0.tar.gz 891.7 kB Without provenance Details for openTSNE-0.6.0.tar.gz

Built distributions (wheels)

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

Total release size: 14.1 MB

Release files / openTSNE-0.6.0.tar.gz

Download URL openTSNE-0.6.0.tar.gz
Size 891.7 kB
Tags Source
SHA-256 checksum
How to use checksums
62571d0da9585bb764a1dfc6a6ed51e9afcfea48a1c92a72002bd663f07b7151
BLAKE2b-256 checksum
How to use checksums
09dd9ceecfbe3045638896b47ee0fe16b725826e4965f527a6f6397b07e868fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

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

Download URL openTSNE-0.6.0-cp39-cp39-win_amd64.whl
Size 407.6 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
e850b6ad608c3557f17f711a7d20d3f0fd2eed362be14ec8b223b0ac4c6072ef
BLAKE2b-256 checksum
How to use checksums
3e04ba6a815f5b216cb6cd6d6ec280fc24a5dd23c6105c124732ba5c254cf190
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

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

Download URL openTSNE-0.6.0-cp39-cp39-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
450e36345465ca89ee9f01184d90debcbd4e1b4666c1e682a843f1fb23fbf542
BLAKE2b-256 checksum
How to use checksums
fde9aac6c3c9b2a2c5f0614fc09e400abc36d6105b637326574fca4f5aa99914
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

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

Download URL openTSNE-0.6.0-cp39-cp39-macosx_10_14_x86_64.whl
Size 488.0 kB
Tags CPython 3.9 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
8a6c795709cfbc8aa5d8af899f980a1e64772c7429fb28d6a2c8b36480c5d3a2
BLAKE2b-256 checksum
How to use checksums
37397dddda9e900ccc3faf7ce7dd89c87a3e54782d6fc9785775cae5251a3109
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

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

Download URL openTSNE-0.6.0-cp38-cp38-win_amd64.whl
Size 410.2 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
8c02d3ec7f15f38f6752e8d2adcfe4931f53eb31da93cb2bd763623422c400c2
BLAKE2b-256 checksum
How to use checksums
b13e7e80d2c2e44a971caad818bc7cc11ba53c04ef6fe4f26eef45f53f7e362d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

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

Download URL openTSNE-0.6.0-cp38-cp38-manylinux2010_x86_64.whl
Size 2.6 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
609057bf55dec9799bfe68ff20cdf4bb887f6ec95d45a29938db993f12d86322
BLAKE2b-256 checksum
How to use checksums
8fe58c68dfb8ed10f0fbd931008e47673f4bc8077c7f10f668c4edbc094c44c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

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

Download URL openTSNE-0.6.0-cp38-cp38-macosx_10_14_x86_64.whl
Size 472.0 kB
Tags CPython 3.8 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
60ead53c1e161b0eaf27869328fcdbe00d76eecfc73461f65d3a9ac877049fec
BLAKE2b-256 checksum
How to use checksums
9e796ca3af9d79406ee396f1457e50ec5219100a05df2eef10fa0b4853ebe29e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

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

Download URL openTSNE-0.6.0-cp37-cp37m-win_amd64.whl
Size 401.8 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
cc6b1807ca49583d5fad972133100e2da20faa4922ab888f84f083948f57bee7
BLAKE2b-256 checksum
How to use checksums
2109a9ae8a3224f0b55d7ba9b99a6f5f129878d5cfe7dbf0b8dfd4a2389a01c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

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

Download URL openTSNE-0.6.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
120395fbef4ec15dc2556f4f7cc414c225510b9496920302d06f5272bce08763
BLAKE2b-256 checksum
How to use checksums
deaf9b59afb6f642eb8d4beaa8b38249526b88796a58329d2a3a4d14cba3e37b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

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

Download URL openTSNE-0.6.0-cp37-cp37m-macosx_10_14_x86_64.whl
Size 471.6 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
32f9a58b4f828eecc6e4a1b3bebe03928ee6a0c5bff147c0f0a788db9f1ec48e
BLAKE2b-256 checksum
How to use checksums
2dd470dbaa7cd6dfc482031c4b582071f39e39bd576ba67b75601ee994ff2e77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

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

Download URL openTSNE-0.6.0-cp36-cp36m-win_amd64.whl
Size 401.8 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
afab05311f8a28cd0fb0a175b34667d133ed3979ba9dc85787605ac9187e3951
BLAKE2b-256 checksum
How to use checksums
a46fd6809df4383d3282abcf5ee010a53f64140a17b13f7beddc512dba06f98e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

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

Download URL openTSNE-0.6.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
efaf5d8abefec5af42e457ea2afbb62537fd490dca5617270c55e4fe8f23cfd9
BLAKE2b-256 checksum
How to use checksums
39704826557f5a6ef5ac039fe7232be0d28014f1baa4e5c809b1173c91a865ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

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

Download URL openTSNE-0.6.0-cp36-cp36m-macosx_10_14_x86_64.whl
Size 471.1 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
338e249e246fa960d9a096e9c65f9c878395555c2b3d192ae3c7c7fb6aa1638c
BLAKE2b-256 checksum
How to use checksums
5e0edd30a4c8aebae2ed592a6806758c33f0dfdb5289bf5ed7af0f6bdea8e7ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

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