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

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.1
File Size Uploaded Provenance Actions
openTSNE-0.7.1.tar.gz 815.4 kB Without provenance Details for openTSNE-0.7.1.tar.gz

Built distributions (wheels)

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

Total release size: 15.8 MB

Release files / openTSNE-0.7.1.tar.gz

Download URL openTSNE-0.7.1.tar.gz
Size 815.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ff7cdd6982fef2b88fc758f571b32f25bf595e6ddbe406db6d3b40bf5242af5a
BLAKE2b-256 checksum
How to use checksums
6f95c27857a6bbcc1827e0062140a96c860b16bd38ca9a784e81216610adc0e9
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.1-cp310-cp310-win_amd64.whl

Download URL openTSNE-0.7.1-cp310-cp310-win_amd64.whl
Size 386.1 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
f205baf0f7a24d446bbc599fabf578b518b0c80261c930bf4235f1c61914cf2f
BLAKE2b-256 checksum
How to use checksums
6d39c69cad0cb4954c7596f4a7c099fb455f7ff14e85fd9ca76c82eb17a4c353
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.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openTSNE-0.7.1-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
d7fefe06715d6b98d560983eef0a4d74055d6b5b93cc892d11ddb6a2a60e3f9a
BLAKE2b-256 checksum
How to use checksums
3ed6d39dee94344ca1d0f8e082056ef16c1297c0c4622d31f89bfcfc90f85eb1
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.1-cp310-cp310-macosx_10_12_universal2.whl

Download URL openTSNE-0.7.1-cp310-cp310-macosx_10_12_universal2.whl
Size 898.7 kB
Tags CPython 3.10 macOS 10.12+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
386fdb6f1376777d4cab4d42766fbae24cc980148f54ef58da11e6dfe3036e79
BLAKE2b-256 checksum
How to use checksums
2c79b52ae8aafff190078fb0bf12f2f994d59be8a1595f3676100a27b8759b0a
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.1-cp39-cp39-win_amd64.whl

Download URL openTSNE-0.7.1-cp39-cp39-win_amd64.whl
Size 390.2 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
fdb4b83ea50c9e2e430cd00eca0fb1a7dc91eb537db10b4a2b2a93d2f343a6f1
BLAKE2b-256 checksum
How to use checksums
35b86aa749272055ab93ec8992660892400c738c575da54ddbe2b7b77584535c
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.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openTSNE-0.7.1-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
f02af337eb0a47e21a8b57215649268f6063561e54b3c20e068d72524d6b942e
BLAKE2b-256 checksum
How to use checksums
7772b4a8e3609aa80902db02665422e294b9640d83ad1e7d270509893d6e7822
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.1-cp39-cp39-macosx_10_12_universal2.whl

Download URL openTSNE-0.7.1-cp39-cp39-macosx_10_12_universal2.whl
Size 893.9 kB
Tags CPython 3.9 macOS 10.12+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
90c97513e37ac41bd0018b5dd77c6a918183d93aa95997f621a8cf4bda35753b
BLAKE2b-256 checksum
How to use checksums
3472790e01adf86bad8630c119f79d0360ca693af78da56e6c9e0dfc2b6594bf
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.1-cp38-cp38-win_amd64.whl

Download URL openTSNE-0.7.1-cp38-cp38-win_amd64.whl
Size 390.6 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
e6ef90fed7fc00973bac0ba0bae7d12fc3a350f8c9a001db0cbf48209cc97f25
BLAKE2b-256 checksum
How to use checksums
c89e880bd7d2f6434e7725d302044a3dbb1edadb473e440afde25af34ff1b2bc
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.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openTSNE-0.7.1-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
11f81aecd5df2c4ed663a9ce176fccd1accb9e45b178d3997ac01165ad260060
BLAKE2b-256 checksum
How to use checksums
0f08e764505739973e4c23b41b75251759f5fbc2d8a109f6342466e0b3fef4aa
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.1-cp38-cp38-macosx_10_12_x86_64.whl

Download URL openTSNE-0.7.1-cp38-cp38-macosx_10_12_x86_64.whl
Size 486.1 kB
Tags CPython 3.8 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
1efb5eea24d41d0f31eaebb531749e8bf000f68ae80cef7571fa66a91ee905f1
BLAKE2b-256 checksum
How to use checksums
635db9923966448318dfa72bb71cfb3090e1322d5f4db70e48cba1b00da45e44
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.1-cp37-cp37m-win_amd64.whl

Download URL openTSNE-0.7.1-cp37-cp37m-win_amd64.whl
Size 386.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
d69113200885ebe4771bf5bb258b3f23987cdeccbe6f6bfefe2e2f185fb73184
BLAKE2b-256 checksum
How to use checksums
b8674e6d67c3c9e76c450d4e3c37db9eea23099f779c6530c562e55ef1b0cba6
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.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openTSNE-0.7.1-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
fcdda0f285d4fb97235401017afb2ccd464a4e2c416fb80d71d51624e41b61bb
BLAKE2b-256 checksum
How to use checksums
a5a4e124ba41db84d1624635297d1350d62bcc561d2846bf62aff3bd2880a7f3
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.1-cp37-cp37m-macosx_10_12_x86_64.whl

Download URL openTSNE-0.7.1-cp37-cp37m-macosx_10_12_x86_64.whl
Size 486.2 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c82272912de0733be2d86b4558f8ad9770314b9d7879e36854b8d4e4a29fecd0
BLAKE2b-256 checksum
How to use checksums
bc94057e79594e94288b38e783194d3c72df563efa3bb81ee3b5ca381d09bdac
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.1

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