Skip to main content

GINv3-publication

License: MIT Python 3.9+

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) 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.
  • Run SigPN Monte-Carlo simulations for signaling interventions.
  • Recompute the manuscript Stage A / prune / 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

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…)

After install, the CLI is available as:

python -m gin_tool.cli -h
# or: gin-multiomics -h

Default --sifi is data/GINv3.11a.sifi.gz (included in the clone). Standalone download (Release does not attach the ~75 MB 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
        │
        ▼
  context subgraph  ──►  (optional) ChIP prune  ──►  SigPN simulation
  1. Context — seeds + GIN prior → mechanistic neighborhood (python -m gin_tool.cli).
  2. Cell prune (optional) — ChIP allowlist → cell-specific edges (docs/CHIP_ALLOWLIST.md).
  3. SigPN — export the Petri net and run Monte-Carlo (demo below). The manuscript H1 B0 Pulse is a special-case intervention script; for other designs reuse the same engine (docs/SIGPN_CUSTOM_SIMULATIONS.md).

From subgraph to SigPN (executable demo)

Bundled toy data under examples/demo_sigpn/ (TP53 / MDM2 / CDKN1A edges excerpted from the publication H1-pruned network). 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 \
  --chromhmm-emission-tsv runtime/chromhmm/panel_emissions/h1_wa01_E003_promoter_emission.tsv \
  --runs 2 \
  --blocks 10 \
  --seed 0

On your own context (after CLI or 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

# Full pipeline (cluster-scale: prune + Pulse, etc.)
python scripts/reproduce_publication.py --steps all --n-jobs 20

Stage A lock target: 11,368 edges (details in docs/locks/).
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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gin-multiomics 0.2.0
File Size Uploaded Provenance Actions
gin_multiomics-0.2.0.tar.gz 206.1 kB Without provenance Details for gin_multiomics-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gin-multiomics 0.2.0
File Interpreter ABI Platform Actions
gin_multiomics-0.2.0-py3-none-any.whl Python 3 none any Details for gin_multiomics-0.2.0-py3-none-any.whl

Total release size: 451.1 kB

Release files / gin_multiomics-0.2.0.tar.gz

Download URL gin_multiomics-0.2.0.tar.gz
Size 206.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9b52e94136f0d5fb4af8d13c32316efc679d8419bb1d11e1f5077eab81e18797
BLAKE2b-256 checksum
How to use checksums
66e43700df0d50a1ab4672d5b52e383f78722321e2de620807db0e320c072df6
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.0-py3-none-any.whl

Download URL gin_multiomics-0.2.0-py3-none-any.whl
Size 245.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0ab2b844acbc1a824412d0c0da60e13cd7089b62609b412ccaa4634c229ffa2
BLAKE2b-256 checksum
How to use checksums
18a761dcf8b0d2d8cb34ea37b65fd6c35ecb5f15b359c22b0d65fe771ea8d357
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.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page