SpaTranslator
- SpaTranslator is a graph-based generative model for cross-modality prediction in spatial omics data. It enables the in silico generation of missing omics modalities—such as spatial ATAC-seq, RNA-seq, and histone modification profiles—across paired or unpaired tissue sections, by leveraging spatial neighborhood information and adversarial learning.
🧠 Highlights
- 🔄 Cross-modality generation between spatial transcriptomics and epigenomics/proteomics
- 📈 Superior performance on 12 benchmark datasets over state-of-the-art methods (multiDGD, JAMIE, scButterfly, scPair)
- 🧬 Supports multiple data types: RNA, ATAC, histone marks (H3K27me3, H3K4me3), protein
- 📍 Graph Neural Network integration for spatial structure modeling
- 🧪 Flexible in intra- and inter-dataset prediction tasks
📂 Datasets
SpaTranslator is benchmarked on:
- Spatial-ATAC-RNA-seq (mouse brain)
- MISAR-seq (mouse brain at stages E11, E13, E15, E18)
- 10x Visium RNA-Protein (human tonsil&lymph node)
Detailed documentation is written in the jupyter notebook
🚀 Installation Guide
Install with pip
conda create -n SpaTranslator python==3.9
pip install spatranslator
Install PyTorch Geometric and Related Dependencies It's crucial to install versions of these packages that match your PyTorch and CUDA versions: https://pytorch-geometric.readthedocs.io/en/latest/install/installation.html#installation-from-source
The following command installs pyg_lib, torch_scatter, torch_sparse, torch_cluster, and torch_spline_conv. Note: The URL https://data.pyg.org/whl/torch-2.6.0+cu124.html specifies wheels for PyTorch 2.6.0 and CUDA 12.4. Adjust ${TORCH} and ${CUDA} in the URL below to match your installed PyTorch version and CUDA version. You can find the correct URL on the PyTorch Geometric installation page.
# Example for PyTorch 2.6.0 and CUDA 12.4
# YOU MUST ADJUST THE URL BASED ON YOUR PYTORCH AND CUDA VERSION
pip install torch_geometric
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.6.0+cu124.html
📄 License
SpaTranslator is released under the MIT License.
You are free to use, modify, and distribute this software for academic and non-commercial purposes with proper attribution.
📬 Contact
If you have questions, feature requests, or would like to contribute:
- 💡 Issues: Please submit via the GitHub Issues Page
- ✉️ Email:
maosheng@westlake.edu.cn/donghongyu@westlake.edu.cn
Metadata
Release files for SpaTranslator 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spatranslator-1.0.8.tar.gz | 28.2 kB | Without provenance | Details for spatranslator-1.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spatranslator-1.0.8-py3-none-any.whl | Python 3 | none | any | Details for spatranslator-1.0.8-py3-none-any.whl |
Total release size: 56.7 kB
Release files / spatranslator-1.0.8.tar.gz
| Download URL | spatranslator-1.0.8.tar.gz |
|---|---|
| Size | 28.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b21b50686f17fe677643d9230f18d8f5f38f431645ef172d915aa52ae96a5c42
|
|
BLAKE2b-256 checksum How to use checksums |
35da3e1367af8d8f8369e31ea5122f6a59f08dc45e391bcaad32b3ac7c2c8a70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / spatranslator-1.0.8-py3-none-any.whl
| Download URL | spatranslator-1.0.8-py3-none-any.whl |
|---|---|
| Size | 28.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32540fe841bd8c14987688487cc6ef83717ed04b34cac1f40058e584fe78a839
|
|
BLAKE2b-256 checksum How to use checksums |
c1546a2cddfad4847c282ac5f5299bd8e759b5295b0e50e06c081d2c96b3686d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Security for SpaTranslator 1.0.8
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.