Skip to main content

The initial package of MuCST

Project description

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.

Project details


Download files

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

Source Distribution

mucstpy-1.0.7.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

mucstpy-1.0.7-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file mucstpy-1.0.7.tar.gz.

File metadata

  • Download URL: mucstpy-1.0.7.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for mucstpy-1.0.7.tar.gz
Algorithm Hash digest
SHA256 5eed641d85247ddd862901a4ad99d24b5e03dbcbdef2496a6eb04d674504f51a
MD5 42fd7aa1fa4a813339f0cc737c3cfe2f
BLAKE2b-256 37896090dec4ad65c3fab9093100f87b167c2374c5ab49d45a2cda07cbb9d583

See more details on using hashes here.

File details

Details for the file mucstpy-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: mucstpy-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for mucstpy-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cf5164a54d7bed1cf127684d3ea32fe3e377021c77c26e65da6b1917ea9df793
MD5 3253b98ce8443a2ec9f3b6f6b6c184f9
BLAKE2b-256 6a802c20484c039a2c04ca625ff48ae3e314ff13f81c369a42b6ad0783c786e3

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