Skip to main content

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

Metadata

Release files for SMOPCA 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SMOPCA 0.1.1
File Size Uploaded Provenance Actions
smopca-0.1.1.tar.gz 8.6 kB Without provenance Details for smopca-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 17.2 kB

Release files / smopca-0.1.1.tar.gz

Download URL smopca-0.1.1.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9d2bccc1b56f56e36117088dacdd06111488069c76af1925159db29483e5a455
BLAKE2b-256 checksum
How to use checksums
43756e528d295233f825ab43e97214241df70441c49c1fa8d3ef12a3bb031abe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.0

Release files / SMOPCA-0.1.1-py3-none-any.whl

Download URL SMOPCA-0.1.1-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84d98c44069053f0f88f566cc2b89afd053b6330d92f2c9ecc6cab37fd945e57
BLAKE2b-256 checksum
How to use checksums
ae93f177b828f85ece7f62e94bf259a0c6b941828978b7d24ee012585814715a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.0

Security for SMOPCA 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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