Skip to main content

Python rewrite of SigXTalk: Dissecting crosstalk induced by cell-cell communication

Project description

py-sigxtalk logo

Package PyPI Python Versions Downloads
Meta License Stars

py-sigxtalk

Python rewrite of SigXTalk: Dissecting crosstalk induced by cell-cell communication using single-cell transcriptomic data.

Installation

pip install py-sigxtalk

Quick Start

import pysigxtalk as psx

# Load databases
rtf_db, tftg_db = psx.load_databases(species="human")

# Prepare inputs
inputs = psx.prepare_input(exp_mat, target_genes, lr_pairs, rtf_db, tftg_db)

# Run HGNN
pathways = psx.run_hgnn(inputs, epochs=10, device="cpu")

# Calculate PRS
prs_results = psx.compute_prs(inputs.exp_clu, pathways, n_estimators=10)

# Visualize
psx.plot_counts_histogram(prs_results)
psx.plot_counts_bar(prs_results, topk=20)
psx.plot_fid_spe(prs_results, key_tg="CD68")

Benchmark

Python vs R Correlation (PBMC3k dataset):

  • Pearson Correlation: 0.9912

Correlation

Visualization Gallery

Crosstalk Analysis:

Histogram Bar Chart Fid/Spe
Histogram Bar Fid/Spe
Alluvial Ridgeline Chord
Alluvial Ridgeline Chord

Network & Heatmaps:

CCI Chord CCI Circle Signal Contribution
CCI Chord CCI Circle Signal
Rec-TG Heatmap Circular Bar
Heatmap Circular

Examples

example/
├── quickstart.ipynb              # Full analysis workflow
├── benchmark.ipynb               # Python vs R comparison
├── data/                         # Input data & results
├── figures/                      # Generated figures
└── scripts/                      # Utility scripts

Citation

Hou, J. et al. Dissecting crosstalk induced by cell-cell communication using single-cell transcriptomic data. Nature Communications (2025).

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

py_sigxtalk-0.1.1.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

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

py_sigxtalk-0.1.1-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file py_sigxtalk-0.1.1.tar.gz.

File metadata

  • Download URL: py_sigxtalk-0.1.1.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.13

File hashes

Hashes for py_sigxtalk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ae3fbd69301660ed047c7e3deb26237a3c8edd4eafe33cd4af551e026c27409c
MD5 89d82f40a0e37e64966e105b740effec
BLAKE2b-256 2d8aedece51ee0c9b293a2b455d502b92a8b71f6830e92d208afe5dcbef30b22

See more details on using hashes here.

File details

Details for the file py_sigxtalk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: py_sigxtalk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.13

File hashes

Hashes for py_sigxtalk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5dc26c6e5640dabd81cee08a7879ebe3935b0c9b466a194f116d61c7bf387891
MD5 4c9bfab90d3cba1444eeae97f9711db3
BLAKE2b-256 f3fbbca6753da27a1f2c40bfc9832f9fd205ff636dcafc323dd2b9ba13b6ebbd

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