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

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.4.4
File Size Uploaded Provenance Actions
openTSNE-0.4.4.tar.gz 876.8 kB Without provenance Details for openTSNE-0.4.4.tar.gz

Built distributions (wheels)

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

Total release size: 8.8 MB

Release files / openTSNE-0.4.4.tar.gz

Download URL openTSNE-0.4.4.tar.gz
Size 876.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bc5fb9634e47c10d6d51a9b08bb00f76fc851f142330bd9456703a387f5dbee7
BLAKE2b-256 checksum
How to use checksums
8a92496aee352626d07727e7fa9ce5ac4e880520b6739111258e47d8e098a13f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.12

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

Download URL openTSNE-0.4.4-cp38-cp38-win_amd64.whl
Size 400.6 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
8f022cf2402d1fb27453d8ebf8f908f03a1e6ac76163fbfef9ffc2ebda58cc42
BLAKE2b-256 checksum
How to use checksums
7c2e21fa831dd01c8aa1968370e852aa2cbf9268e31103ed92dc565437eea9d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.12

Release files / openTSNE-0.4.4-cp38-cp38-manylinux1_x86_64.whl

Download URL openTSNE-0.4.4-cp38-cp38-manylinux1_x86_64.whl
Size 1.8 MB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
6d87c78bba1b2db83a90dc8e7ac89506295d34aaa3dda9198ef5aae5d11e9df6
BLAKE2b-256 checksum
How to use checksums
811a2efb4a36836f76595751f0d4366fd9ed22a85608d0654b44cff4a9dcc59c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.12

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

Download URL openTSNE-0.4.4-cp38-cp38-macosx_10_14_x86_64.whl
Size 454.2 kB
Tags CPython 3.8 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
ddaa806cd1b79d043846049a3a078e4de03a88edf401e031b2d69f73ec23b5be
BLAKE2b-256 checksum
How to use checksums
eff4b8fd590f6b4a6b6a2c2afa639c1982311696c13ec6063d40014172c5f2bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.12

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

Download URL openTSNE-0.4.4-cp37-cp37m-win_amd64.whl
Size 391.9 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
a7202617617e40cf6bae8d218ab1db7f31d3a6193ff09e13b10ecb55ebaae7d0
BLAKE2b-256 checksum
How to use checksums
4d73d4c8f578f210a1e9642535945f70e218ff09b40a633263bfc28d9702913a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.12

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

Download URL openTSNE-0.4.4-cp37-cp37m-manylinux1_x86_64.whl
Size 1.8 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
7d44af90182426dda7d453934e91ef3bf6a8ce373f300eba861db6698e1a3879
BLAKE2b-256 checksum
How to use checksums
97e5fac207c559873dcf8cb6c7b6cb566e398932731cde7fe7707c210cae9400
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.12

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

Download URL openTSNE-0.4.4-cp37-cp37m-macosx_10_14_x86_64.whl
Size 453.9 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
471a220caf42d955c0fef88296b3b9c45f01fa1c2c57751108c38732eafd7aa8
BLAKE2b-256 checksum
How to use checksums
4b8ba2e83faf61655f0c247c1ef09eb4661ba1bcdb5b3579ad8d0fcac538c705
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.12

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

Download URL openTSNE-0.4.4-cp36-cp36m-win_amd64.whl
Size 391.8 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
415a713cc9387efb22cc78f3c8a8b956ba069b5071eb56b1ba1ada76a4528a97
BLAKE2b-256 checksum
How to use checksums
df8780219ae82fde21a1a0429668d0c0f1df7432845448c4b183be69a7998af3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.12

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

Download URL openTSNE-0.4.4-cp36-cp36m-manylinux1_x86_64.whl
Size 1.8 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
22a44eb904605ddf4a8fff6e500e7c05a39513650b1dd271a39fc12ca9ddfe7f
BLAKE2b-256 checksum
How to use checksums
793ee2d8bffa1524b5b108e3d5b00d93b458d500b5c65df7fd50b7490d38c6f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.12

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

Download URL openTSNE-0.4.4-cp36-cp36m-macosx_10_14_x86_64.whl
Size 455.7 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
d36d8b6723598bf1a96462256f6f64767cd11afdd8339607b5d34704b6951d14
BLAKE2b-256 checksum
How to use checksums
b93f4fdbbdc5a59dd900c1e4879187e1ce7e04003196b18d45f45d4d4ed8853d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.12

Security for openTSNE 0.4.4

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