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
- 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.
- 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.
- 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
Release history Release notifications | RSS feed
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)
Built Distribution
SMOPCA-0.1.0-py3-none-any.whl
(8.1 kB
view hashes)