Skip to main content

A novel spatially aware multi-omics dimension reduction method

Project description

Spatial Multi-Omics PCA

Spatial Multi-Omics PCA (SMOPCA) is a novel dimension reduction method to integrate multi-modal data and extract low-dimensional representations with preserved spatial dependencies among spots.

Installation

SMOPCA can be installed directly from PyPI using the following command:

pip install SMOPCA

Run SMOPCA

  1. Prepare input data
    • SMOPCA accepts gene expression and protein/atac data matrices. Each modality of the data is preprocessed and normalized separately. Initially, genes and proteins with zero counts were filtered out. Subsequently, the count matrix was normalized based on library size, followed by log-transformation and scaling to achieve unit variance and zero mean. ATAC reads are mapped to gene regions and the peak matrix is collapsed into a gene activity matrix, adhering to the established protocol from the Satija lab. The gene activity matrix was preprocessed and normalized using the same method as applied to mRNA data. Finally, we recommend to save the data into a hdf5 file.
    • Note that SMOPCA takes input matrices with columns corresponding to cells or spots.
  2. Specify model hyperparameters and Model training
    • the dimensionality of the latent factors (default 20)
    • the kernel type (default matern kernel)
    • the length_scale parameter (We set length_scale=0.25 for UMAP coordinates and length_scale=5 for simulated and real spatial coordinates.)
    • For the rest of the parameters, see more in tutorials.
  3. Downstream analysis
    • Visualization
    • Clustering analysis
    • Differential expression analysis
    • and many other tasks

Datasets

Sample datasets are provided in ./data folder. The rest of the datasets used in this study are available at https://drive.google.com/drive/folders/11RfeF_yrdSGRtXZnzPlfxojM5V4ezMVr?usp=drive_link

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

SMOPCA-0.1.0.tar.gz (8.1 kB view hashes)

Uploaded Source

Built Distribution

SMOPCA-0.1.0-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

Supported by

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