A tools to simulate spatial transcriptomics data.
Project description
Spider
Spider is a flexible and unified framework for simulating ST data by leveraging spatial neighborhood patterns among cells through a conditional optimization algorithm. By inputting spatial patterns extracted from real data or user-specified transition matrix, Spider assigns cell type labels through the BSA algorithm that improves the computational efficiency of conventional simulated annealing algorithm. Gene expression profiles for individual cell types can be generated either using real or simulated data by Splatter or scDesign2. Finally, spot-level ST data can be simulated by aggregating cells inside generated spots using 10X spatial encoding scheme or user-specified generation rules.
Manuscript
Please see our manuscript Yang, Wei et al. (2023) in BioRxiv to learn more.
The Key features of Spider
- Characterize spatial patterns by cell type composition and their transition matrix.
- Flexible to implement most existing simulation methods as special cases.
- Design the batched simulated annealing algorithm to generate ST data for 1 million cells in < 5 minutes.
- Generate various scenarios of the tumor immune micro-environment by capturing the dynamic changes in diverse immune cell components and transition matrices.
- Provide customized data generation APIs for special application scenarios, such as the tissue layer structure implemented by Napari interface and some regular structures for reference.
Software dependencies
anndata matplotlib numba numpy pandas PyQt5 scanpy scikit_learn scipy seaborn squidpy
installation
Install Spider via PyPI by using:
pip install st-spider
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file st-spider-0.0.8.tar.gz.
File metadata
- Download URL: st-spider-0.0.8.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
734866f578959d47844a5e4d9976c715988bd3c21816175bbb5be895983d813d
|
|
| MD5 |
4b37680982f42e3f51c1ab04be2a236f
|
|
| BLAKE2b-256 |
3162d62e04422d1a5d41ae94d9237854d7466ef6c4a75aa72b5362f750ab3b9c
|
File details
Details for the file st_spider-0.0.8-py2.py3-none-any.whl.
File metadata
- Download URL: st_spider-0.0.8-py2.py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85acb46158cfcecbcd2df1ed510a2d7e9e8b9087c552a82ec3550efcd143462c
|
|
| MD5 |
0fad0ac013d5946ea3a1774163e96a8d
|
|
| BLAKE2b-256 |
a43fe04dd34104b933bb127ef237b90f4e2c66ba67f30a16b380159cd517f6cb
|