Skip to main content

MuCST v1.0

MuCST: restoring and integrating heterogeneous morphology images and spatial transcriptomics data with contrastive learning

DOI

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.

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)

Source distribution for mucstpy 1.0.7
File Size Uploaded
mucstpy-1.0.7.tar.gz 18.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mucstpy 1.0.7
File Interpreter ABI Platform
mucstpy-1.0.7-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page