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), 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, massive speed improvements, enabling t-SNE to scale to millions of data points and various tricks to improve global alignment of the resulting visualizations.

Macosko 2015 mouse retina t-SNE embedding

A visualization of 44,808 single cell transcriptomes obtained from the mouse retina [5] 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

Note that openTSNE requires a C/C++ compiler. numpy must also be installed.

In order for openTSNE to utilize multiple threads, the C/C++ compiler must also implement 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}
}

References

Metadata

Release files for openTSNE 0.3.12

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.3.12
File Size Uploaded Provenance Actions
openTSNE-0.3.12.tar.gz 835.7 kB Without provenance Details for openTSNE-0.3.12.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for openTSNE 0.3.12
File Actions
openTSNE-0.3.12-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for openTSNE-0.3.12-cp37-cp37m-win_amd64.whl
openTSNE-0.3.12-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details for openTSNE-0.3.12-cp37-cp37m-manylinux1_x86_64.whl
openTSNE-0.3.12-cp37-cp37m-macosx_10_13_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.13+ x86-64 Details for openTSNE-0.3.12-cp37-cp37m-macosx_10_13_x86_64.whl
openTSNE-0.3.12-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for openTSNE-0.3.12-cp36-cp36m-win_amd64.whl
openTSNE-0.3.12-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details for openTSNE-0.3.12-cp36-cp36m-manylinux1_x86_64.whl
openTSNE-0.3.12-cp36-cp36m-macosx_10_13_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.13+ x86-64 Details for openTSNE-0.3.12-cp36-cp36m-macosx_10_13_x86_64.whl

Total release size: 5.2 MB

Release files / openTSNE-0.3.12.tar.gz

Download URL openTSNE-0.3.12.tar.gz
Size 835.7 kB
Tags Source
SHA-256 checksum
How to use checksums
35538017e7479c96aa3da7841fea22d7353762fecb1cec98b7431922db7861dc
BLAKE2b-256 checksum
How to use checksums
1d0faa7b2a52ffa461c03a50923bbb7bc0af3cfb84eca6e891fbc68cc10bb875
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.12

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

Download URL openTSNE-0.3.12-cp37-cp37m-win_amd64.whl
Size 367.2 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
612a6ff6046e59aa833fa3ac0ac83ee7ab7c5559b72e4f767a1317bbe4a1f66f
BLAKE2b-256 checksum
How to use checksums
b574dd254016e9e5eb9276c265667630840c99fb6ce4fae0de1f5141f23ef084
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.12

Release files / openTSNE-0.3.12-cp37-cp37m-manylinux1_x86_64.whl

Download URL openTSNE-0.3.12-cp37-cp37m-manylinux1_x86_64.whl
Size 1.4 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
a859d384804a6d9f4457a0f8174d9b426877ee70fbb6ae1291f3eebae13736f4
BLAKE2b-256 checksum
How to use checksums
f91c7a88afbbd476ad7337685f7210862452dd35672752af98eff0ae39e7c6ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.12

Release files / openTSNE-0.3.12-cp37-cp37m-macosx_10_13_x86_64.whl

Download URL openTSNE-0.3.12-cp37-cp37m-macosx_10_13_x86_64.whl
Size 388.9 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
9f1ed666230e0d69d536331164121ef720c5fdc7c8c7944da2b979691aabfa56
BLAKE2b-256 checksum
How to use checksums
1fa5dbdd4d9d127106c25b0ace0a28b60468572c667a878805052e938af5e529
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.12

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

Download URL openTSNE-0.3.12-cp36-cp36m-win_amd64.whl
Size 367.0 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
bd023884485b33c9545ffaee4772cfb2ca7c81dad59c18aff70fbfde7fa25d2f
BLAKE2b-256 checksum
How to use checksums
6c7a5dc153c7585ffb5b2b87f410b7cb84f8a875c2e14acc845cf293d6552710
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.12

Release files / openTSNE-0.3.12-cp36-cp36m-manylinux1_x86_64.whl

Download URL openTSNE-0.3.12-cp36-cp36m-manylinux1_x86_64.whl
Size 1.4 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
5ce5230e71b55a1b02d67076c48d7e85273890f6ba42425f6fb73d39f432c410
BLAKE2b-256 checksum
How to use checksums
55eb271a75dab4d5dac7ebc5429f00570c2b4b764e12412517f131761eaf5beb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.12

Release files / openTSNE-0.3.12-cp36-cp36m-macosx_10_13_x86_64.whl

Download URL openTSNE-0.3.12-cp36-cp36m-macosx_10_13_x86_64.whl
Size 389.9 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
8b16baf2c84d59046daaaeeefa2dfa5a5ad9f1becd1f15e407b870161954e6c5
BLAKE2b-256 checksum
How to use checksums
5793e1854716b8c3008ff16d07f759ef8fab931d3920c19d02921e29baa75d19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.12

Security for openTSNE 0.3.12

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