MuCST v1.0
MuCST: restoring and integrating heterogeneous morphology images and spatial transcriptomics data with contrastive learning
Yu Wang, Xiaoke Ma
we present a flexible multi-modal contrastive learning for the integration of spatially resolved transcriptomics (MuCST), including histology image, spatial coordinates and transcription profiles of cells, which jointly perform denoising, elimination of heterogeneity, and compatible feature learning. We demonstrate that MuCST robustly and accurately identifies tissue subpopulations from simulated data with various types of perturbations. In cancer-related tissues, MuCST precisely identifies tumor-associated domains, reveals gene biomarkers for tumor regions, and exposes intratumoral heterogeneity. MuCST is applicable to diverse datasets generated from various platforms, such as STARmap, Visium, and omsFISH for spatial transcriptomics, and hematoxylin and eosin or fluorescence microscopy for images. Overall, MuCST facilitates the integration of multi-modal spatially resolved data, but also serves as pre-processing for data restoration, providing deeper insights into the states, functions, and organization of cells within complex biological tissues.
Installation
pip install mucstpy
Tutorial
The jupyter Notebook of the tutorial for 10 × DLPFC is accessible from : https://github.com/xkmaxidian/MuCST/blob/master/tutorials/SpatialDomainDLPFC.ipynb
The jupyter notebook of the tutorial for 10 $\times$ Human intestine section A1 is accessible from:
https://github.com/xkmaxidian/MuCST/blob/master/tutorials/SpatialDomainIntestine.ipynb
MuCST also applicable to imaging-based ST Platform:
https://github.com/xkmaxidian/MuCST/blob/master/tutorials/SpatialDomainSTARmap.ipynb
Note: Full STARmap data are uploaded at our Zendo.
System Requirements
Python support packages (Python 3.9.18):
scanpy, igraph, pandas, numpy, scipy, scanpy, anndata, sklearn, seaborn, torch, tqdm.
For more details of the used package., please refer to 'requirements.txt' file.
The coding here is a generalization of the algorithm given in the paper. MuCST is written in Python programming language. To use, please clone this repository and follow the instructions provided in the README.md.
File Descriptions:
image_feature.py - Extract morphological information from histology image.
model.py - Base code for construct MuCST model.
loss.py - Loss function of MuCST.
utils.py - Auxiliary functions for the MuCST model.
Compared spatial domain identification algorithms
Algorithms that are compared include:
Contact:
Please send any questions or found bugs to Xiaoke Ma xkma@xidian.edu.cn.
Metadata
Release files for mucstpy 1.0.7
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 |
|---|---|---|---|---|
| mucstpy-1.0.7.tar.gz | 18.4 kB | Without provenance | Details for mucstpy-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mucstpy-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for mucstpy-1.0.7-py3-none-any.whl |
Total release size: 36.5 kB
Release files / mucstpy-1.0.7.tar.gz
| Download URL | mucstpy-1.0.7.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5eed641d85247ddd862901a4ad99d24b5e03dbcbdef2496a6eb04d674504f51a
|
|
BLAKE2b-256 checksum How to use checksums |
37896090dec4ad65c3fab9093100f87b167c2374c5ab49d45a2cda07cbb9d583
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / mucstpy-1.0.7-py3-none-any.whl
| Download URL | mucstpy-1.0.7-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf5164a54d7bed1cf127684d3ea32fe3e377021c77c26e65da6b1917ea9df793
|
|
BLAKE2b-256 checksum How to use checksums |
6a802c20484c039a2c04ca625ff48ae3e314ff13f81c369a42b6ad0783c786e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for mucstpy 1.0.7
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.