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

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

Built distributions (wheels)

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

Total release size: 9.1 MB

Release files / openTSNE-0.4.2.tar.gz

Download URL openTSNE-0.4.2.tar.gz
Size 874.7 kB
Tags Source
SHA-256 checksum
How to use checksums
66128744219e5ef6c6b4c9309285158a63ef88e4f57b023427a8d7181e79df50
BLAKE2b-256 checksum
How to use checksums
477a196a95119e3b602ceec9bceefdd1bde30e241ac1f8e02fa10ddf31c2acbe
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.2-cp38-cp38-win_amd64.whl

Download URL openTSNE-0.4.2-cp38-cp38-win_amd64.whl
Size 425.0 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
7efee4c93aadc99e24e3b1bd8acd8be9df693651ac190a8a3de963a3e11fa09f
BLAKE2b-256 checksum
How to use checksums
c4e43a55d5f66c8426ee740ad0ff413bf0c86cca175673c1af46e788a33542e9
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.2-cp38-cp38-manylinux1_x86_64.whl

Download URL openTSNE-0.4.2-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
ac59fd3815a7388565f17ec951e2fae50055b4ce5d7adcefeb7b2a9c14ce4db5
BLAKE2b-256 checksum
How to use checksums
fde613b81d263d24332507233e6a419c5abc2525e02f6f70c09d9f3f8c231893
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.2-cp38-cp38-macosx_10_14_x86_64.whl

Download URL openTSNE-0.4.2-cp38-cp38-macosx_10_14_x86_64.whl
Size 480.8 kB
Tags CPython 3.8 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
13a56a64c4206e9d6f5508d786a8d2bb434ee8845018cfc3256554e0587fa155
BLAKE2b-256 checksum
How to use checksums
07bed326177fbbca17fbe8262f8170e0ebfa1f01b3d39b671f2f8ee73305c37a
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.2-cp37-cp37m-win_amd64.whl

Download URL openTSNE-0.4.2-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
0ab1682073849b7a590b65145b6cec4d286d240117f7d67af1022f0cca3580b1
BLAKE2b-256 checksum
How to use checksums
cc2a82b8e3bd00a8f796e1e0c6f3200844b7230c4e07c51a89887464c762de05
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.2-cp37-cp37m-manylinux1_x86_64.whl

Download URL openTSNE-0.4.2-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
e90874d33b3d2c4beb92f7e242c35cf01c245bdcbf7709c855f612eaaa764919
BLAKE2b-256 checksum
How to use checksums
f4409a94d7fbf78a4ae6c6fe9b1ffddc41ec09e5a0b18b82d9ecb01ae3566f3d
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.2-cp37-cp37m-macosx_10_14_x86_64.whl

Download URL openTSNE-0.4.2-cp37-cp37m-macosx_10_14_x86_64.whl
Size 473.9 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
f8577bb914496a5f22918ffd78e02c0b743f5edae347363e40b571968883a530
BLAKE2b-256 checksum
How to use checksums
43a727f910890c5bfb72e4dc73ea016dc38140d3698172a435c95522b759857b
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.2-cp36-cp36m-win_amd64.whl

Download URL openTSNE-0.4.2-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
69eaa221b698a992050506ed9edd3c536e2a8aedffad719fa58fed815ce08227
BLAKE2b-256 checksum
How to use checksums
ee8f0aa3a6ab1d5e3311db658b049c0c89f1113fce4e2ac9ff1cc3cb7f28ffbe
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.2-cp36-cp36m-manylinux1_x86_64.whl

Download URL openTSNE-0.4.2-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
dfaa7eb8f60db4f44265e0323f1a38884cde7c299495544ff7dd0b99e4728d1a
BLAKE2b-256 checksum
How to use checksums
d87dba62ca9351188110de0fab2962990f282c07f146c81ddb3ea99a1d6a8d1a
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.2-cp36-cp36m-macosx_10_14_x86_64.whl

Download URL openTSNE-0.4.2-cp36-cp36m-macosx_10_14_x86_64.whl
Size 475.2 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
52dd50db1886a86942ce1252e231996ed7383edd9e8e8645c990e8abc162f98e
BLAKE2b-256 checksum
How to use checksums
9e9731ff8c0c3de1622e051634df088a9a50b000896a64ef11ebe71c9be8f36a
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.2

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