spMetaTME
spMetaTME: Leveraging self-supervised graph neural networks to decode spatial metabolic communities and metabolic interactions for unveiling tumour heterogeneity within the tumour microenvironment
- PyPI package: https://pypi.org/project/spmetatme/
- Free software: MIT License
- Documentation: https://spmetatme.readthedocs.io.
Create environment
pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu126
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.7.0+cu126.html
pip install torch_geometric
Unified CLI Usage
The spmetatme package provides a unified command line interface for your analysis pipeline.
- Detailed Instructions: CLI Guide
- Manual:
spmetatme --help
1. Infer Fluxes (Basic Example)
spmetatme infer --input data/BC_515_Section_1.h5ad --model-species human --metabolic-model breast_cancer
2. Pretrain (Basic Example)
spmetatme pretrain --training-list data/*.h5ad --metabolic-model breast_cancer --repo-id MyRepo/v1
Docker Usage
We provide a full-featured Docker image that includes all dependencies (including R's mclust for domain identification).
- Detailed Instructions: Docker Guide
Using the Docker Helper (Windows)
# Run inference
run_docker.cmd infer --input data/BC_515_Section_1.h5ad --model-species human --metabolic-model breast_cancer
# Run pretraining
run_docker.cmd pretrain --training-list data/*.h5ad --metabolic-model breast_cancer --repo-id MyRepo/v1
Manual Docker Command (Linux / Mac)
docker run --rm -it --gpus all -v $(pwd):/app spmetatme infer --input data/BC_515_Section_1.h5ad --model-species human --metabolic-model breast_cancer
Please cite
Verma, S., Doan, L. M. T., Kang, J. H., Colombo, G., Serganov, I., Zappasodi, R., Occhipinti, A., & Angione, C. spMetaTME: A spatial atlas of tumour microenvironment metabolism and interactions.
Metadata
Release files for spmetatme 0.1
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 |
|---|---|---|---|---|
| spmetatme-0.1.tar.gz | 50.6 MB | Without provenance | Details for spmetatme-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spmetatme-0.1-py3-none-any.whl | Python 3 | none | any | Details for spmetatme-0.1-py3-none-any.whl |
Total release size: 50.6 MB
Release files / spmetatme-0.1.tar.gz
| Download URL | spmetatme-0.1.tar.gz |
|---|---|
| Size | 50.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eeb0a04c327fc6be4e4afdfb047342ddd671c01ec9a64853ee28a26915a9da33
|
|
BLAKE2b-256 checksum How to use checksums |
4626a8ad1213ebd924dc80e8622a25458b3b3bfccc17ed9dfd91c7a83e14cd9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / spmetatme-0.1-py3-none-any.whl
| Download URL | spmetatme-0.1-py3-none-any.whl |
|---|---|
| Size | 46.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee494f46e60713bb0e55ce2d47420248643d2721d4f66649c322c8d0288f0a0d
|
|
BLAKE2b-256 checksum How to use checksums |
8b3d2e14a5bd7467c6a4e04223d21f9ad780b2211ed5766c6f02de41cde17ba9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for spmetatme 0.1
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.