GINv3-publication
Multi-omics Global Integrative Network (GIN) context extraction and SigPN
(signaling Petri net — not stochastic PN) simulation for mechanism-oriented
analyses. This repository is the manuscript Code Availability package:
an installable toolkit (gin-multiomics
on PyPI) plus a recipe that recomputes the p53 / GINv3.11a publication numbers.
The GIN prior ships as data/GINv3.11a.sifi.gz (~75 MB). The toolkit and
publication recipe read it directly — no unpack step is required.
Citation
Upon publication, please cite the accompanying paper (title / journal / DOI to be updated here). Until then, cite this repository and the manuscript that points to it under Code Availability.
Overview
- Extract a mechanistic context subgraph from the GINv3 prior given gene (or GIN node) seeds.
- Optionally prune TF→promoter edges with a cell-specific ChIP allowlist to obtain a cell-line network (used in Supplementary Fig. 4, not required for the main-text H1 pulse).
- Run SigPN Monte-Carlo simulations for signaling interventions.
- Recompute the manuscript Stage A / Fig. 4a–d / shared-topology H1 Pulse
pipeline and assert against published fingerprints (locks under
docs/locks/).
Requirements
| Item | Notes |
|---|---|
| OS | Linux recommended for bit-identical Stage A; macOS works for toolkit use |
| Python | ≥ 3.9 |
| Disk | Bundled data/GINv3.11a.sifi.gz (~75 MB) |
| RAM / CPU | Context with --context-n-jobs 20 is cluster-scale; small demos run on a laptop |
Installation
Option A — PyPI (toolkit only)
pip install gin-multiomics
# optional plotting / SigPN extras:
pip install "gin-multiomics[sim]"
gin-multiomics -h
# or: python -m gin_tool.cli -h
PyPI ships the Python package (gin_tool / scbionet). It does not include
the ~75 MB GIN prior. For analyses that need the prior, also clone this repo
(or download the file below) and point --sifi at
data/GINv3.11a.sifi.gz (or run from the clone so the default path resolves).
Option B — clone (toolkit + publication recipe + prior)
git clone https://github.com/BIGchix/GINv3-publication.git
cd GINv3-publication
python3 -m venv .venv && source .venv/bin/activate
pip install -U pip && pip install -e ".[sim]"
export PYTHONHASHSEED=0
python scripts/reproduce_publication.py --steps prepare
# → verifies data/GINv3.11a.sifi.gz (sha256 f9bb23c4…)
Default --sifi is data/GINv3.11a.sifi.gz (included in the clone).
Standalone prior download (Release does not attach the asset):
raw v0.2.0
· data/README.md. More detail:
docs/USER_GUIDE.md.
Quick start
1. Context subgraph (default prior = compressed GIN):
python -m gin_tool.cli \
--seeds "TP53,MDM2,CDKN1A" \
--out-dir gin_out/my_context \
--context-mech-depth 2 \
--context-n-jobs 8 \
--node-list-dir ./nodeList \
--no-debias
# → gin_out/my_context/subgraph_edges.tsv
bash examples/01_custom_context.sh
2. SigPN demo (bundled toy network; no GIN prior required):
bash examples/03_sigpn_demo.sh
# → gin_out/example_sigpn_demo/spn.graphml
# → gin_out/example_sigpn_demo/spn_sim_demo/…
See examples/ for more scripts.
Workflow
seeds + data/GINv3.11a.sifi.gz
│
▼
shared context subgraph ──► SigPN simulation
│ │
│ ├─ Fig. 4a–d: six lines, fixed topology
│ └─ Fig. 4e–i: H1 B0 pulse (no prune / no chromHMM)
└── (optional) ChIP prune + chromHMM → Supplementary Fig. 4
- Context — seeds + GIN prior → mechanistic neighborhood (
python -m gin_tool.cli). - SigPN — export the Petri net and run Monte-Carlo. The manuscript main H1 B0 Pulse uses the shared Stage A topology with H1 RNA levels (no ChIP prune, no chromHMM). Cell-specific prune / chromHMM are a Supplementary sensitivity panel (docs/SIGPN_CUSTOM_SIMULATIONS.md).
- Cell prune (optional) — ChIP allowlist → cell-specific edges (docs/CHIP_ALLOWLIST.md).
From subgraph to SigPN (executable demo)
Bundled toy data under examples/demo_sigpn/ (TP53 / MDM2 / CDKN1A edges
excerpted from a publication-scale p53 neighborhood). Laptop-scale defaults:
runs=2, blocks=10.
# One-liner
bash examples/03_sigpn_demo.sh
# Equivalent explicit steps
mkdir -p gin_out/example_sigpn_demo
cp examples/demo_sigpn/subgraph_edges.tsv gin_out/example_sigpn_demo/
cp examples/demo_sigpn/place_levels.tsv gin_out/example_sigpn_demo/
python examples/run_sigpn_demo.py \
--subgraph-dir gin_out/example_sigpn_demo \
--place-levels gin_out/example_sigpn_demo/place_levels.tsv \
--runs 2 \
--blocks 10 \
--seed 0
# optional refined arm: add --chromhmm-emission-tsv runtime/chromhmm/panel_emissions/…
On your own context (after CLI, or optional prune), point --subgraph-dir at a
folder that contains subgraph_edges.tsv (and optionally place_levels.tsv).
Reproduce manuscript results
Recompute the publication pipeline (prior stays compressed throughout):
export PYTHONHASHSEED=0
python scripts/reproduce_publication.py --steps prepare
python scripts/reproduce_publication.py --steps stage_a --n-jobs 20
python scripts/assert_p53_pub_gin11a_lock.py
# Main-text H1 pulse (shared topology; no prune / no chromHMM)
python scripts/reproduce_publication.py --steps pulse --n-jobs 20 --seed 43
# Full pipeline (includes optional H1 prune for SI / legacy locks)
python scripts/reproduce_publication.py --steps all --n-jobs 20
Stage A lock target: 11,368 edges (details in docs/locks/).
Main-text pulse report tag: p53_B0_std_noprune_ablation_s43_*
(≈98% post-pulse MDM2 follow; peaks TP53 139.7@190).
expected/ is for assert / CI, not the primary reproduction path.
Platform notes (e.g. Linux freeze host vs macOS): see
docs/experiments/p53_stageA_server_vs_mac_repro_20261014.md
and the step-by-step guide REPRODUCE.md.
Documentation
| Document | Contents |
|---|---|
| docs/USER_GUIDE.md | Getting started for custom analyses |
| docs/CLI_REFERENCE.md | Recommended CLI options |
| docs/CHIP_ALLOWLIST.md | Cell ChIP allowlist format and use |
| docs/SIGPN_CUSTOM_SIMULATIONS.md | SigPN reuse; Pulse as a special case |
| REPRODUCE.md | Full manuscript recompute recipe |
| MANIFEST.md | Package contents checklist |
Repository layout
| Path | Role |
|---|---|
gin_tool/ |
Context / HME / dogma / SigPN CLI |
scbionet/spn/ |
Vendored SigPN engine |
data/GINv3.11a.sifi.gz |
Frozen GIN prior (default --sifi) |
nodeList/ · seedLists/ |
Layer lists and seeds |
runtime/chip_gin_align/ |
Example H1 allowlist |
runtime/omics_seed/ · runtime/chromhmm/ |
Example place levels / emissions |
examples/ |
Context / Stage A / SigPN demos (demo_sigpn/ toy data) |
scripts/reproduce_publication.py |
Manuscript driver (recomputes) |
expected/ |
Gold fingerprints for assert |
docs/ |
Guides, locks, experiment notes |
Historical path prefixes such as runtime/spn_phys5/ still mean SigPN.
License
MIT for code (see LICENSE). Network and omics artifacts: see NOTICE.md.
Contact
- Email: chix@big.ac.cn
- GitHub Issues on this repository (once published under Code Availability)
Metadata
Release files for gin-multiomics 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gin_multiomics-0.2.1.tar.gz | 206.7 kB | Without provenance | Details for gin_multiomics-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gin_multiomics-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for gin_multiomics-0.2.1-py3-none-any.whl |
Total release size: 452.3 kB
Release files / gin_multiomics-0.2.1.tar.gz
| Download URL | gin_multiomics-0.2.1.tar.gz |
|---|---|
| Size | 206.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4d96a3f1c3c5c50d8ad29609bcc643114be5b56d396e39b7780dd72497f4d06
|
|
BLAKE2b-256 checksum How to use checksums |
b7284a82fdc6e4bfe9cf03c5ff7d9522583b5e57fdb169b7365bae816d556e14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / gin_multiomics-0.2.1-py3-none-any.whl
| Download URL | gin_multiomics-0.2.1-py3-none-any.whl |
|---|---|
| Size | 245.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab796ef596dbd9aea5180936b999f2dbc211da3e56a57917d47831166f86b39d
|
|
BLAKE2b-256 checksum How to use checksums |
4e5186fb63ed6160e595a30db5ba58cb2c598c77a9a859b0de72ea0415b36e61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for gin-multiomics 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.