Skip to main content

spMetaTME spMetaTME: A spatial atlas of tumour microenvironment metabolism and interactions

Project description

spMetaTME

PyPI version Documentation Status

spMetaTME: Leveraging self-supervised graph neural networks to decode spatial metabolic communities and metabolic interactions for unveiling tumour heterogeneity within the tumour microenvironment

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).

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.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spmetatme-0.1.tar.gz (50.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spmetatme-0.1-py3-none-any.whl (46.8 kB view details)

Uploaded Python 3

File details

Details for the file spmetatme-0.1.tar.gz.

File metadata

  • Download URL: spmetatme-0.1.tar.gz
  • Upload date:
  • Size: 50.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for spmetatme-0.1.tar.gz
Algorithm Hash digest
SHA256 eeb0a04c327fc6be4e4afdfb047342ddd671c01ec9a64853ee28a26915a9da33
MD5 7d675f675fd93f31ecc21741ea4c48a4
BLAKE2b-256 4626a8ad1213ebd924dc80e8622a25458b3b3bfccc17ed9dfd91c7a83e14cd9d

See more details on using hashes here.

File details

Details for the file spmetatme-0.1-py3-none-any.whl.

File metadata

  • Download URL: spmetatme-0.1-py3-none-any.whl
  • Upload date:
  • Size: 46.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for spmetatme-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee494f46e60713bb0e55ce2d47420248643d2721d4f66649c322c8d0288f0a0d
MD5 f83419de8da5c7e24b067926ea7f4f06
BLAKE2b-256 8b3d2e14a5bd7467c6a4e04223d21f9ad780b2211ed5766c6f02de41cde17ba9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page