Python rewrite of SigXTalk: Dissecting crosstalk induced by cell-cell communication
Project description
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
Visualization Gallery
Crosstalk Analysis:
| Histogram | Bar Chart | Fid/Spe |
|---|---|---|
| Alluvial | Ridgeline | Chord |
|---|---|---|
Network & Heatmaps:
| CCI Chord | CCI Circle | Signal Contribution |
|---|---|---|
| Rec-TG Heatmap | Circular Bar |
|---|---|
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
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 py_sigxtalk-0.1.2.tar.gz.
File metadata
- Download URL: py_sigxtalk-0.1.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab3bd37d15380903ab3d45f43b60dfbe11fdf2323172a72d6771a3f50fd952d1
|
|
| MD5 |
ceaed5a03c621bc184a086f6a03c94d3
|
|
| BLAKE2b-256 |
d362106ac06ea234dfc2b8ec4a396935fa38e7db0fa3c55c1294889f9ea47e06
|
File details
Details for the file py_sigxtalk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: py_sigxtalk-0.1.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1987ce25aa3ff4375aa072423d431110fa34e677e76435d24242ab0c69e7b6a
|
|
| MD5 |
5ed818894c8cc1dfd210fc5f76c1c94c
|
|
| BLAKE2b-256 |
8133243e6034b26a7d65c94fea88764950e6a1d7a97407837836b0843c53a438
|