Skip to main content

openTSNE

Build Status Documentation Status 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.7 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

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

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.6.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.6.2
File Size Uploaded Provenance Actions
openTSNE-0.6.2.tar.gz 796.9 kB Without provenance Details for openTSNE-0.6.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for openTSNE 0.6.2
File Actions
openTSNE-0.6.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for openTSNE-0.6.2-cp310-cp310-win_amd64.whl
openTSNE-0.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for openTSNE-0.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
openTSNE-0.6.2-cp310-cp310-macosx_10_15_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.15+ x86-64 Details for openTSNE-0.6.2-cp310-cp310-macosx_10_15_x86_64.whl
openTSNE-0.6.2-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for openTSNE-0.6.2-cp39-cp39-win_amd64.whl
openTSNE-0.6.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for openTSNE-0.6.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
openTSNE-0.6.2-cp39-cp39-macosx_10_15_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.15+ x86-64 Details for openTSNE-0.6.2-cp39-cp39-macosx_10_15_x86_64.whl
openTSNE-0.6.2-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for openTSNE-0.6.2-cp38-cp38-win_amd64.whl
openTSNE-0.6.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for openTSNE-0.6.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
openTSNE-0.6.2-cp38-cp38-macosx_10_14_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.14+ x86-64 Details for openTSNE-0.6.2-cp38-cp38-macosx_10_14_x86_64.whl
openTSNE-0.6.2-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for openTSNE-0.6.2-cp37-cp37m-win_amd64.whl
openTSNE-0.6.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details for openTSNE-0.6.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
openTSNE-0.6.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.6.2-cp37-cp37m-macosx_10_14_x86_64.whl

Total release size: 15.0 MB

Release files / openTSNE-0.6.2.tar.gz

Download URL openTSNE-0.6.2.tar.gz
Size 796.9 kB
Tags Source
SHA-256 checksum
How to use checksums
92ea18afd4e34df8fb536c813c36533de892d96511f6683721003398b4fcf2e9
BLAKE2b-256 checksum
How to use checksums
0406c5e3f4456f8b7aed601e382fedd550702bd08aa045585e45db22233a9237
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Release files / openTSNE-0.6.2-cp310-cp310-win_amd64.whl

Download URL openTSNE-0.6.2-cp310-cp310-win_amd64.whl
Size 388.3 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
14cbbc406ed7f6bd5c7dc8881c5f14d931a5693dc831e89d9ce2325a4741309f
BLAKE2b-256 checksum
How to use checksums
18bf4a77d1aafa08477541610e71040d865acf1d12cb940183ea1824134256e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Release files / openTSNE-0.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openTSNE-0.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.7 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6f1739c5f01e0b435c993a85040d536b4f2cb203b37b72e3dbbf9e6437b94ac6
BLAKE2b-256 checksum
How to use checksums
ed00480b93e8e785ac38ce5b6c99b01b1d5e3fe03bf1d80ac7da083c552f9b69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Release files / openTSNE-0.6.2-cp310-cp310-macosx_10_15_x86_64.whl

Download URL openTSNE-0.6.2-cp310-cp310-macosx_10_15_x86_64.whl
Size 492.3 kB
Tags CPython 3.10 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
bcda086f0bcaa4b21e708e24ccd640f54d5c64753648e67c1bebca3f2310a8a6
BLAKE2b-256 checksum
How to use checksums
758eb93cae7908bf8e57a9ef5a58ced7cf84bd07bdca73fff5b471e904131290
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Release files / openTSNE-0.6.2-cp39-cp39-win_amd64.whl

Download URL openTSNE-0.6.2-cp39-cp39-win_amd64.whl
Size 387.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
f756c682e588f63eaabdaf321294d5590ac070ff5b5824e817bedd30c9b54df1
BLAKE2b-256 checksum
How to use checksums
67410f7cb386339a59251de0b03b0889469a59672e4ae40b05d0b2967ad3351f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Release files / openTSNE-0.6.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openTSNE-0.6.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.7 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
402a765f19324414b2b5743d17d3d09a2ad60750253a8a47008dc7bff7333f6d
BLAKE2b-256 checksum
How to use checksums
16a41b7e7a87181147fddddf7009f1dbe84702db1a46abd13fa304315bf0480e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Release files / openTSNE-0.6.2-cp39-cp39-macosx_10_15_x86_64.whl

Download URL openTSNE-0.6.2-cp39-cp39-macosx_10_15_x86_64.whl
Size 491.1 kB
Tags CPython 3.9 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
244b389ec5251bc3d9f6193db8f9c1eafd4d603adfa88c99839d67e437371bc1
BLAKE2b-256 checksum
How to use checksums
e83e951c10ac4e064845a5adf0352eb9ced937a87e8b6231fe0698d41205c632
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

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

Download URL openTSNE-0.6.2-cp38-cp38-win_amd64.whl
Size 388.1 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
87af2abc4f860e59bad1288036b89497cac48b9f4e8db40b8c180dd56162ab68
BLAKE2b-256 checksum
How to use checksums
229af05c7c7c0abf3fc3936c404b4526e2a73f5db376afc196ff4d42325f5090
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Release files / openTSNE-0.6.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openTSNE-0.6.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.7 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0e166eda980cfdd8dc57f4286be8fccffc231aebcbf54249c286b6c07da76bd0
BLAKE2b-256 checksum
How to use checksums
37ce8e8f0371c6ab7e4104c08f8ee4f3c8a96599388ffe6bf4bf92d37f7e7b25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

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

Download URL openTSNE-0.6.2-cp38-cp38-macosx_10_14_x86_64.whl
Size 479.9 kB
Tags CPython 3.8 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
207847efb973e8eef4c753894dbcbb4bc73aef09b8e9f1c26a9c351f2814cce7
BLAKE2b-256 checksum
How to use checksums
69180f99325c6187db39d4f4591f8c22f103c3aa428abb1e82055022f7961083
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

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

Download URL openTSNE-0.6.2-cp37-cp37m-win_amd64.whl
Size 383.7 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
add3fb7ff8b31b9e11050bacb91c58db0b0f68330ea357f6d216588314ac5d43
BLAKE2b-256 checksum
How to use checksums
643f8ba7a692eb8789614990a85a97354d1858f9e3dab5e604406f8622228dc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Release files / openTSNE-0.6.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openTSNE-0.6.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.5 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a75cabbaa65b05cde87aacc36840a7c4aa353855fae88769e8bc36be6282d512
BLAKE2b-256 checksum
How to use checksums
3e355feade94b7abdfb0cfaa6e7cccdb2bb53312793630cfe26d5d97345bed63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

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

Download URL openTSNE-0.6.2-cp37-cp37m-macosx_10_14_x86_64.whl
Size 479.2 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
42b4fe40a376a11aa9471648089f45b474a568755a284bbcfb2d795ad1930054
BLAKE2b-256 checksum
How to use checksums
a85a864a5567efa875484ac1ef6bf05a219e6d873f740acf84e9d9f93ab1aa62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Security for openTSNE 0.6.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