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 1.0.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 1.0.0
File Size Uploaded Provenance Actions
openTSNE-1.0.0.tar.gz 792.8 kB Without provenance Details for openTSNE-1.0.0.tar.gz

Built distributions (wheels)

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

Total release size: 19.8 MB

Release files / openTSNE-1.0.0.tar.gz

Download URL openTSNE-1.0.0.tar.gz
Size 792.8 kB
Tags Source
SHA-256 checksum
How to use checksums
03dafa41632ece9e9217d78769ed2d65e6086bdcab8bc8631d115b7d0ad06763
BLAKE2b-256 checksum
How to use checksums
52fa2d625c36712341f3c792d226ff229495d41e8b612f9344292c2822dde7a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / openTSNE-1.0.0-cp311-cp311-win_amd64.whl

Download URL openTSNE-1.0.0-cp311-cp311-win_amd64.whl
Size 384.2 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
0c3b136c1e05aedcfd59b96c903e6c4d7eec8585fc87bca4695071db51f8a355
BLAKE2b-256 checksum
How to use checksums
b0365603f431f0ef84dfc04863150af04906ef66c70d803ffd5a9367cb4c08a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / openTSNE-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openTSNE-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.8 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e589883f7ee3fa6a5c38ef103bf4a522e891ca3a30c4155ceda3dc86ee3abaf0
BLAKE2b-256 checksum
How to use checksums
2dd2c7ef5f621a91043bd9b62543b07b9d9b5edf04055cfbe88b1d662f22a3f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / openTSNE-1.0.0-cp311-cp311-macosx_10_12_universal2.whl

Download URL openTSNE-1.0.0-cp311-cp311-macosx_10_12_universal2.whl
Size 882.0 kB
Tags CPython 3.11 macOS 10.12+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
81e1583fd5b70c457d2bc34bb0c1ea620ac9af7e30f3a7ee98a6077c4f6b5827
BLAKE2b-256 checksum
How to use checksums
d5f4ecd558f62816738d128e98af60bd58e9c51690a0d9b78a49178bdd830bba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

Download URL openTSNE-1.0.0-cp310-cp310-win_amd64.whl
Size 386.3 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
b2069adddd0c4624d203bf8ee63a0f3c938142d25a3f41ddf7968ba6178c1973
BLAKE2b-256 checksum
How to use checksums
8ffe8f144b288639c3fc65e916468cc99746e6c642077e4d07e18b2ee06b858c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

Download URL openTSNE-1.0.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
780a7ee8bb28d3d1fb2b79eab789ef7c4310bf0883e0bc169d56e9b336a98320
BLAKE2b-256 checksum
How to use checksums
09cd43c96d2666684380f225bbc86d83d84c8b9bf2e693fa5a16fa8e0fc47133
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

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

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

Download URL openTSNE-1.0.0-cp39-cp39-win_amd64.whl
Size 390.4 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
07ef7174daf920d8bb034ae985c301c98b0c895cc51d62e3770652595892593e
BLAKE2b-256 checksum
How to use checksums
8e5121be022936c1693ed2ea8a8ba79ee4ee451cc9bb17b88c7a05076fe8e20b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

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

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

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

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

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

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

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

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

Download URL openTSNE-1.0.0-cp38-cp38-macosx_10_12_x86_64.whl
Size 486.2 kB
Tags CPython 3.8 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
4676086ecf65301ff4991fb1a16e8482503403f53dc3264e0a1500c11449ef4f
BLAKE2b-256 checksum
How to use checksums
2c7f8b454273e51702dbaf3d3289b5a9d63026ee52fbadbb8684cd76b897c60e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

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

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

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

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

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

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