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

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.3
File Size Uploaded Provenance Actions
openTSNE-0.4.3.tar.gz 874.7 kB Without provenance Details for openTSNE-0.4.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for openTSNE 0.4.3
File Actions
openTSNE-0.4.3-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for openTSNE-0.4.3-cp38-cp38-win_amd64.whl
openTSNE-0.4.3-cp38-cp38-manylinux1_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.5+ x86-64 Details for openTSNE-0.4.3-cp38-cp38-manylinux1_x86_64.whl
openTSNE-0.4.3-cp38-cp38-macosx_10_14_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.14+ x86-64 Details for openTSNE-0.4.3-cp38-cp38-macosx_10_14_x86_64.whl
openTSNE-0.4.3-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for openTSNE-0.4.3-cp37-cp37m-win_amd64.whl
openTSNE-0.4.3-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details for openTSNE-0.4.3-cp37-cp37m-manylinux1_x86_64.whl
openTSNE-0.4.3-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.3-cp37-cp37m-macosx_10_14_x86_64.whl
openTSNE-0.4.3-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for openTSNE-0.4.3-cp36-cp36m-win_amd64.whl
openTSNE-0.4.3-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details for openTSNE-0.4.3-cp36-cp36m-manylinux1_x86_64.whl
openTSNE-0.4.3-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.3-cp36-cp36m-macosx_10_14_x86_64.whl

Total release size: 9.1 MB

Release files / openTSNE-0.4.3.tar.gz

Download URL openTSNE-0.4.3.tar.gz
Size 874.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7542bd290591a4329e6c917ccb107964b810cacd17612208899a000861b5861f
BLAKE2b-256 checksum
How to use checksums
3deddbf9b7d376300db381c8da3a9b79a73b42d0f63a5716ddbd622dbe6577ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.12

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

Download URL openTSNE-0.4.3-cp38-cp38-win_amd64.whl
Size 425.0 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
76fdd6578129d57786b07828167a40e89796513ac8c214aa286f5017b992cd95
BLAKE2b-256 checksum
How to use checksums
a810cc5fc6b924c94f56e4f88b15cd78c20857a8579a9f5290e3dad3b6bd7d72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.12

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

Download URL openTSNE-0.4.3-cp38-cp38-manylinux1_x86_64.whl
Size 1.9 MB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
5bff665591b0541ff742a6c6d678c7da744f4a2f1dfd371e0f9e8b1481c9064f
BLAKE2b-256 checksum
How to use checksums
9d70b881bbed395049846527ca48c6aec50a3a56b79f0283bb05de551f21363c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.12

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

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

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

Download URL openTSNE-0.4.3-cp37-cp37m-win_amd64.whl
Size 417.8 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
fec8da6a8003d47ca8a8196c57dd9f50a79c7acee3d881304ce0fee9d4078e0d
BLAKE2b-256 checksum
How to use checksums
40b19f71a4279637ff2b107a4defac94406ecc4a119eb6e0be138183a401897e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.12

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

Download URL openTSNE-0.4.3-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
3aed510f2923b64580187c7b2b135bfb7ee306d3e7004651307bcd0887ff6aef
BLAKE2b-256 checksum
How to use checksums
a9f2e31188a75359ebc5e05a2bd1f823fab53cc604a175d040d1febad0a389a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.12

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

Download URL openTSNE-0.4.3-cp37-cp37m-macosx_10_14_x86_64.whl
Size 471.2 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
f17837973f4c3842784c688f5bc2014cad1a40428e3336c5a7a8d4aae29a6e82
BLAKE2b-256 checksum
How to use checksums
88316672c920c7fea1b8f1c6919aa9165d0d0e268341f46bc5d0dc681b483564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.12

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

Download URL openTSNE-0.4.3-cp36-cp36m-win_amd64.whl
Size 417.8 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
184da8b86a2383900a15d31fd22f46556cb0e9dc619705b4363375de5e1f4da6
BLAKE2b-256 checksum
How to use checksums
cfbef6689dbd577e75ba7e49f16c88952596bc19d5270ac0cb2f720a369c7026
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.12

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

Download URL openTSNE-0.4.3-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
a5f43716e63cde9d6d637f3f91177d1042b6580154d57c9d7c43fe5cd571c0d3
BLAKE2b-256 checksum
How to use checksums
980d932d5c96f9513c446b7707f08fded68492196719ae6bd709230d9eec1946
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.12

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

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

Security for openTSNE 0.4.3

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