Skip to main content

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


Download files

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

Source Distribution

st-spider-0.0.4.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

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

st_spider-0.0.4-py2.py3-none-any.whl (27.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file st-spider-0.0.4.tar.gz.

File metadata

  • Download URL: st-spider-0.0.4.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for st-spider-0.0.4.tar.gz
Algorithm Hash digest
SHA256 716de792374d0df70198430317bbe941817e685dd041baaff3776dfd34711fd9
MD5 281fd4808c43f69d0ba151c68be1bf83
BLAKE2b-256 8b442c2ccc3bf57d188f5329fabfd58d62816e1e44b30548f94e367d0a8f5266

See more details on using hashes here.

File details

Details for the file st_spider-0.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: st_spider-0.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 27.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for st_spider-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 edd0d22f29a67c9f7a4decc28d2a4a1eff0144531283bb9d14faa793cdbe0562
MD5 1c3f2dd2b2d339754b1ff69709fb4a20
BLAKE2b-256 2adbc0e7340028b736ba53dae769b6d45a5130cb25c61afbc867fa5163d5c185

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