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] [5], enabling t-SNE to scale to millions of data points and various tricks to improve global alignment of the resulting visualizations [6].

Macosko 2015 mouse retina t-SNE embedding

A visualization of 44,808 single cell transcriptomes obtained from the mouse retina [7] 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 [5] below, but if you use Barnes-Hut the citations are [3] and [4].

References

Metadata

Release files for openTSNE 0.7.0

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.7.0
File Size Uploaded Provenance Actions
openTSNE-0.7.0.tar.gz 816.1 kB Without provenance Details for openTSNE-0.7.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for openTSNE 0.7.0
File Actions
openTSNE-0.7.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for openTSNE-0.7.0-cp310-cp310-win_amd64.whl
openTSNE-0.7.0-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.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
openTSNE-0.7.0-cp310-cp310-macosx_10_12_universal2.whl CPython 3.10 CPython 3.10 macOS 10.12+ universal2 (ARM64, x86-64) Details for openTSNE-0.7.0-cp310-cp310-macosx_10_12_universal2.whl
openTSNE-0.7.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for openTSNE-0.7.0-cp39-cp39-win_amd64.whl
openTSNE-0.7.0-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.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
openTSNE-0.7.0-cp39-cp39-macosx_10_12_universal2.whl CPython 3.9 CPython 3.9 macOS 10.12+ universal2 (ARM64, x86-64) Details for openTSNE-0.7.0-cp39-cp39-macosx_10_12_universal2.whl
openTSNE-0.7.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for openTSNE-0.7.0-cp38-cp38-win_amd64.whl
openTSNE-0.7.0-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.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
openTSNE-0.7.0-cp38-cp38-macosx_10_12_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.12+ x86-64 Details for openTSNE-0.7.0-cp38-cp38-macosx_10_12_x86_64.whl
openTSNE-0.7.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for openTSNE-0.7.0-cp37-cp37m-win_amd64.whl
openTSNE-0.7.0-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.7.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
openTSNE-0.7.0-cp37-cp37m-macosx_10_12_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.12+ x86-64 Details for openTSNE-0.7.0-cp37-cp37m-macosx_10_12_x86_64.whl

Total release size: 15.8 MB

Release files / openTSNE-0.7.0.tar.gz

Download URL openTSNE-0.7.0.tar.gz
Size 816.1 kB
Tags Source
SHA-256 checksum
How to use checksums
70417d6abe2c323068a51d38e873bc42dde571e12a80539da152c312acc42db7
BLAKE2b-256 checksum
How to use checksums
115591d2ea8ac42c1ec72c6c233c3062932df8b1f0cea5f9c3bdff131c75de38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

Download URL openTSNE-0.7.0-cp310-cp310-win_amd64.whl
Size 386.6 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
50b2d8315280f68aa57dd9a22f7dda53d4eb27c100f0d869f52b6c324c8f9eaa
BLAKE2b-256 checksum
How to use checksums
270597f8cab7f1b514f689668c9b744be010e54a9e59016df7eb120f43405123
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

Download URL openTSNE-0.7.0-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
2e3278254e0252912e9d71071b9ef61fa65f74eb717a79a81d5442259e97deae
BLAKE2b-256 checksum
How to use checksums
3c43d159b149303f9c17fa856ccf381d55ca45b80a7ecc0caf84493c07e16aac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / openTSNE-0.7.0-cp310-cp310-macosx_10_12_universal2.whl

Download URL openTSNE-0.7.0-cp310-cp310-macosx_10_12_universal2.whl
Size 900.1 kB
Tags CPython 3.10 macOS 10.12+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
e8cab2a1af7a1f5da391e5186c7fe0d22a37b153d04c9c78c5013ed71e38667b
BLAKE2b-256 checksum
How to use checksums
65bdb23abc4ccf895cdc7d83b4cf36f48d075a4894bd7fbf2599661f197142ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

Download URL openTSNE-0.7.0-cp39-cp39-win_amd64.whl
Size 390.8 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
3d440cf1e286bb098a2ac3c9aebbb7d7c9c5306668f27de78827536ad96d61b9
BLAKE2b-256 checksum
How to use checksums
873a83410b389a8f5de5a0fd215ab060ceb4307f9b5f6b108aa806efa04da55b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

Download URL openTSNE-0.7.0-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
28543077a910aee11778c35b763b85658ed3c961c78ab7cefb0dc49a381ff57f
BLAKE2b-256 checksum
How to use checksums
d2d357281529dda9762331f97e64b6170accc1c07e336fbfcf3346a414155956
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / openTSNE-0.7.0-cp39-cp39-macosx_10_12_universal2.whl

Download URL openTSNE-0.7.0-cp39-cp39-macosx_10_12_universal2.whl
Size 895.0 kB
Tags CPython 3.9 macOS 10.12+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
bb1bd76f6623785fc9c30a7d8226bcc573beea1228e3dce649ee6fdd486a0ad0
BLAKE2b-256 checksum
How to use checksums
876e743505ed3ae45628b5a77e07f78e36f01bb96ba45773944f884827807063
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

Download URL openTSNE-0.7.0-cp38-cp38-win_amd64.whl
Size 391.2 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
778a915e9754c13c29c37d1af6f12e9e2ad6877ae7756ab51f99aafa761816e9
BLAKE2b-256 checksum
How to use checksums
c4e046941fb9b7c48c333fca686ef69fbf1f07051dfde1184e3c406ea6a969d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

Download URL openTSNE-0.7.0-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
b88befc08fb1bdd252abec23fb3befd6376ba6533ebbb5713fbefba41411f5f5
BLAKE2b-256 checksum
How to use checksums
51e82ad15f4b91311d46314b7a6091f3cce637ee0398214c1b9ce2589ca653b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / openTSNE-0.7.0-cp38-cp38-macosx_10_12_x86_64.whl

Download URL openTSNE-0.7.0-cp38-cp38-macosx_10_12_x86_64.whl
Size 486.7 kB
Tags CPython 3.8 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0ef4bdd51f59ea58c6ec2ccb655af46f50618b84326af79cb187bcafebf3ca2f
BLAKE2b-256 checksum
How to use checksums
b7f5398ef37c7be8795f7e500e72224e27f9634f7fb3accc6ecf68d542a4598d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

Download URL openTSNE-0.7.0-cp37-cp37m-win_amd64.whl
Size 387.0 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
4e05e8c7ed9ecefe4f83e34577e2d6901580555c297f63c59c2a2c147ec04f5b
BLAKE2b-256 checksum
How to use checksums
e198d441023411f17213eefa2ed38d7b4e5d5a06391f8a333da3b385d74db863
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

Download URL openTSNE-0.7.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.6 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ea373e8f376d146f6c876dc5a72fb912809c24a7d8cc5796102f83f28e84bb5d
BLAKE2b-256 checksum
How to use checksums
d5e135e8af5f4e281e78f26998a4f773ec8461749e605a7a5f0ed5d23dca13d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / openTSNE-0.7.0-cp37-cp37m-macosx_10_12_x86_64.whl

Download URL openTSNE-0.7.0-cp37-cp37m-macosx_10_12_x86_64.whl
Size 486.8 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
37ca5310472bcf696a54c761666e4a4d30dd9c2e12f93685fb99d8ec6e4a8582
BLAKE2b-256 checksum
How to use checksums
fedf9dc016e344e11806d42332bb1835c4a21fe6146546e7937f704b1d897796
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Security for openTSNE 0.7.0

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