A generalization of tSNE and UMAP to single cell multimodal data
Project description
Emerging single-cell genomics technologies profile multiple types of molecules within a single cell. A fundamental step in the analysis of the produced high dimensional data is their visualization using dimensionality reduction techniques such as t-SNE and UMAP. We developed Jvis, a dimensionality reduction framework that naturally generalizes t-SNE and UMAP to the joint visualization of multimodal omics data. Our approach automatically learns a weighting of individual modalities from the data that promotes discriminative features but suppresses random noise. On 8 single-cell multimodal data sets across 5 different technologies, Jvis produced a unified embedding that better agrees with known cell states and RNA and protein velocity landscapes compared to unimodal representations.
The details for the underlying mathematics can be found in insert link here.
Van Hoan Do, Stefan Canzar, A generalization of tSNE and UMAP to single cell multimodal data, xxx.
Installing
Requirements:
Python 3.6 or greater
numpy
scipy
scikit-learn
numba
Install Options
PyPI install, presuming you have numba and sklearn and all its requirements (numpy and scipy) installed:
pip install testJvis-learn
If you have a problem with pip installation then we’d suggest installing the dependencies manually using anaconda followed by pulling umap from pip:
conda install numpy scipy
conda install scikit-learn
conda install numba
pip install testJvis-learn
How to use Jvis
The Jvis package inherits from sklearn TSNE, and UMAP. Therefore, all parameters of tSNE and UMAP are naturally extended for Jvis.
An example of making use of these options:
from Jvis import JUMAP, JTSNE
import numpy as np
# Create a toy example from a random distribution (n_cells = 500)
rna_rand = np.random.rand(500, 100)
adt_rand = np.random.rand(500, 15)
data = {'rna': rna_rand, 'adt': adt_rand} # create a dictionary of modalities.
# Run joint TSNE of the two "random" modalities.
embedding_jtsne = JTSNE(n_components=2).fit_transform(data)
# Run joint UMAP of the two "random" modalities.
embedding_jumap = JUMAP(n_neighbors=20,
min_dist=0.3,
metric='correlation').fit_transform(data)
For more realistic examples and Python scripts to reproduce the results in our paper are available at GitHub: xxx
Tunning parameters of t-SNE and UMAP can be found here: https://scikit-learn.org/stable/modules/generated/sklearn.manifold.TSNE.html
License
The JVis package is 3-clause BSD licensed.
Note that the Jvis package is inherited from scikit-learn and UMAP package under 3-clause BSD license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file testJvis-learn-0.0.6.tar.gz
.
File metadata
- Download URL: testJvis-learn-0.0.6.tar.gz
- Upload date:
- Size: 263.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1.post20200622 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cd2d051f5cb2657b6fc80f433a8a4968680eae4b4b178e9b16f207441b7c43c |
|
MD5 | b797a3569cb720a51d36ac72a1d4cde3 |
|
BLAKE2b-256 | f5f380800a1d3fe232c847c09a7669adb07a4e9c244a119d81c6b3feb4259aa6 |
File details
Details for the file testJvis_learn-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: testJvis_learn-0.0.6-py3-none-any.whl
- Upload date:
- Size: 83.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1.post20200622 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c567e2c1d4c26d5bc64649f52b36d49cef16c5c7be9960e4dd4aa9d8f97491e |
|
MD5 | cbcc7a4eef5bc037064d399048ba1c0e |
|
BLAKE2b-256 | b09e02c3a9c634f60145834be3e9d83ae97691bfe4f1a7bc59845dc9625c55b6 |