SpaMosaic
SpaMosaic is a Python package for spatial multi-omics data integration using contrastive learning and graph neural networks. It supports integration of partially overlapping modalities and facilitates downstream analyses such as spatial domain identification and modality imputation.
🔧 Features
- Horizontal integration: integrates multiple slices within a single modality
- Vertical integration: integrates multiple modalities measured from the same slice
- Mosaic integration: integrates multiple slices with overallping modalities
- Imputation: imputes expression profiles of missing omics
🚀 Installation
Required Dependencies
SpaMosaic requires external installation of the following packages (not installed automatically):
- PyTorch (version ≥ 2.0)
- PyTorch Geometric (torch-scatter, torch-sparse, etc.)
- harmony-pytorch (version ≥ 0.1.7)
Once these dependencies are installed, simply run:
pip install spamosaic
⚠️ Note Both CPU and GPU versions of PyTorch and PyTorch Geometric are compatible with SpaMosaic.
📚 Documentation
📖 Full tutorials and API reference: 👉 https://spamosaic.readthedocs.io
📄 License
SpaMosaic is released under the MIT License. © 2025 Jinmiao Lab
Metadata
Release files for spamosaic 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spamosaic-1.0.3.tar.gz | 30.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spamosaic-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.2 kB
Release files / spamosaic-1.0.3.tar.gz
| Download URL | spamosaic-1.0.3.tar.gz |
|---|---|
| Size | 30.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a747191db2622ab1f304e84f67aaf5ce4e8c9e9e16b032a201077ecdbe5bb486
|
|
BLAKE2b-256 checksum How to use checksums |
025c162f534e51d6b8c79bac190660e8193ab150067fc2a1f9802381a84b5747
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|
Release files / spamosaic-1.0.3-py3-none-any.whl
| Download URL | spamosaic-1.0.3-py3-none-any.whl |
|---|---|
| Size | 35.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3fbff3eca9d2fd65d668fe1a7aca7b79f7f4b1c2393206656af449ea22fbb903
|
|
BLAKE2b-256 checksum How to use checksums |
71fc48b502a0732146a04847353cb28c0fa3a5898287d3819d0452d2e67c3057
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|