A unifying data integration framework.
Project description
transmorph is a python framework dedicated to data integration, with a focus on single-cell applications. Dataset integration describes the problem of embedding two or more datasets together, across different batches or feature spaces, so that similar samples end up close from one another. In transmorph we aim to provide a comprehensive framework to design, apply, report and benchmark data integration models using a system of interactive building blocks supported by statistical and plotting tools. We included pre-built models as well as benchmarking databanks in order to easily set up integration tasks. This package can be used in compatibility with scanpy and anndata packages, and works in jupyter notebooks.
Transmorph is also computationally efficient, and can scale to large datasets with competitive integration quality.
Documentation
https://transmorph.readthedocs.io/en/latest/
Installation
transmorph can be installed either from source of from the python repository PyPi. PyPi version is commonly more stable, but may not contain latest features, while you can find the development version on GitHub. Using a python environment is highly recommended (for instance pipenv) in order to easily handle dependencies and versions. transmorph has only be tested for python >=3.9, on Linux and Windows systems.
See the instructions: https://transmorph.readthedocs.io/en/latest/sections/installation.html
Quick starting with a pre-built model
All transmorph models take a list or a dictionary containing AnnData objects as input for data integration. Let us start by loading some benchmarking data, gathered from [Chen 2020] (3.4GB size).
from transmorph.datasets import load_chen_10x
chen_10x = load_chen_10x()
One can then either create a custom integration model, or load a pre-built transmorph model. We will choose the EmbedMNN model with default parameters for this example, which embeds all datasets into a common abstract 2D space.
from transmorph.models import EmbedMNN
model = EmbedMNN()
model.transform(chen_10x)
Integration embedding coordinates can be gathered in each AnnData object, in AnnData.obsm['X_transmorph'].
chen_10x['P01'].obsm['X_transmorph']
One can for instance use a plotting function from transmorph to display integration results.
from transmorph.utils.plotting import scatter_plot
scatter_plot(chen_10x, use_rep="X_transmorph")
scatter_plot(chen_10x, use_rep="X_transmorph", color_by="class")
Citing transmorph
If you find transmorph useful for your research, please consider citing our pre-print which can be found on bioRxiv.
@article{fouche2022transmorph,
title={transmorph: a unifying computational framework for single-cell data integration},
author={Fouch{\'e}, Aziz, Chadoutaud, Lo{\¨i}c, Delattre, Olivier and Zinovyev, Andrei},
journal={bioRxiv},
year={2022}
}
References
Project details
Release history Release notifications | RSS feed
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 transmorph-0.2.6b0.tar.gz
.
File metadata
- Download URL: transmorph-0.2.6b0.tar.gz
- Upload date:
- Size: 687.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56921d87752b4e5d8a33fa8b401aa3f00aecbcb9ed240312acda723650a6a207 |
|
MD5 | 4d39b4deafd5fc684468a3f9a488b5f5 |
|
BLAKE2b-256 | 2265a88f88a0474e6ffdcdb7f3bb438f8e5caa52f97bc363ede0d40d832023bb |
File details
Details for the file transmorph-0.2.6b0-py3-none-any.whl
.
File metadata
- Download URL: transmorph-0.2.6b0-py3-none-any.whl
- Upload date:
- Size: 172.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcf45b3157b6c5070654cd6767993c1d04e09e6887547d35f87b06d3bc6cb366 |
|
MD5 | 3b1678528c82fc62a41ecff2d1d2a68f |
|
BLAKE2b-256 | dc993647dc87f87cf0ce3b3ac45b076f7fb38930838f987a6b18e6837afa31e8 |