Metadata-Version: 2.4
Name: compgate
Version: 0.3.1
Summary: RE-CAPT six-gate composition-aware interpretation framework (with gate_T) and the CAR (Composition-Adjusted Replication) statistic for sepsis whole-blood transcriptomics
Project-URL: Homepage, https://doi.org/10.5281/zenodo.21945412
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: scipy
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Dynamic: license-file

# compGate 0.2.0

Reference implementation of the **RE-CAPT** six-gate composition-aware
interpretation framework and the **CAR** (Composition-Adjusted Replication)
statistic, as introduced in the R10.4 manuscript and extended with the
temporal-kinetics gate (T) in R10.6 ("The composition wall of sepsis blood
transcriptomics: a six-gate audit").

- `recap_gate(matrix, meta, ...)` — per-gene d, marker-residual d, fraction-residual d, CAF.
- `gate_T(times, per_subject_values)` — temporal-kinetics characterization (rise-and-return versus sustained shift).
- `gate_report(per_gene)` — six-gate checklist summary.
- `CAR(replicating_genes, per_gene)` — proportion of replicating genes whose effect survives composition adjustment.

The template single-file variant is `05_Code/recap_gate_template.py`.
The package is frozen on Zenodo together with the R10.4 deliverable
(DOI: 10.5281/zenodo.22071054); the R10.6 re-upload is the next author-side step, and the manuscript cites only frozen versions.
