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

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.11
File Size Uploaded Provenance Actions
openTSNE-0.3.11.tar.gz 835.3 kB Without provenance Details for openTSNE-0.3.11.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for openTSNE 0.3.11
File Actions
openTSNE-0.3.11-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for openTSNE-0.3.11-cp37-cp37m-win_amd64.whl
openTSNE-0.3.11-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details for openTSNE-0.3.11-cp37-cp37m-manylinux1_x86_64.whl
openTSNE-0.3.11-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.11-cp37-cp37m-macosx_10_13_x86_64.whl
openTSNE-0.3.11-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for openTSNE-0.3.11-cp36-cp36m-win_amd64.whl
openTSNE-0.3.11-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details for openTSNE-0.3.11-cp36-cp36m-manylinux1_x86_64.whl
openTSNE-0.3.11-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.11-cp36-cp36m-macosx_10_13_x86_64.whl

Total release size: 5.2 MB

Release files / openTSNE-0.3.11.tar.gz

Download URL openTSNE-0.3.11.tar.gz
Size 835.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a276493ee14cce59642ba966b5b0d0cf0952c11a3e70647580939208cd6a93bd
BLAKE2b-256 checksum
How to use checksums
cea08286a9bc453c1e334af6f76d215aae1cf9c18d0766ec49563423ed52426b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.12

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

Download URL openTSNE-0.3.11-cp37-cp37m-win_amd64.whl
Size 367.0 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
fb859496f666ef35837811b0ee8456d13d0d24fd5066047168d43769db2a28b5
BLAKE2b-256 checksum
How to use checksums
95fb3cbcd3c5a6cc554c8baa9e75fb604124fa55d42f88963a6de79ec3e33cec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.12

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

Download URL openTSNE-0.3.11-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
a4736cfb40dd451015f2b8758e26f2264d6e7081219bcec02a3357ec5efef0ce
BLAKE2b-256 checksum
How to use checksums
74882b8cb5f125c3395d3bd8f88f7bd0be3a9f5764f935419eb6f8db2a647853
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.12

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

Download URL openTSNE-0.3.11-cp37-cp37m-macosx_10_13_x86_64.whl
Size 393.3 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
708e00d7712000bbafb291d6b7756c665c49e7963acae5fb3ff077a17411244e
BLAKE2b-256 checksum
How to use checksums
07088c0d92976667f1ab0652924ae44f654fec801a3f1340fb0d1aa7b2865945
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.12

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

Download URL openTSNE-0.3.11-cp36-cp36m-win_amd64.whl
Size 367.2 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
85abae886a67e5f318bba9815db1e9c09a34034a63e1e89c1842b20e057c5751
BLAKE2b-256 checksum
How to use checksums
041fd8838158f2c5ceab4a545b747d236eb48b2047a62730a085387ce7d1e2a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.12

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

Download URL openTSNE-0.3.11-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
9a14732352c69cb65b208dd8ba4e76370613f6aa652ebcfac369a90d583258e0
BLAKE2b-256 checksum
How to use checksums
981d5dba2a7d96025b2d67fdd21b2ed4e049ad722cae05b245b4811cfbcf3a54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.12

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

Download URL openTSNE-0.3.11-cp36-cp36m-macosx_10_13_x86_64.whl
Size 394.4 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
d211e37788788376d9ce0884c76a48f6a901f8bd99a4a6a1980162d89420830b
BLAKE2b-256 checksum
How to use checksums
9a06f230c985a3d2270992874678c98a8bb2bd4e7dd57a0510e8d83d15446d6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.12

Security for openTSNE 0.3.11

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