Research preview. Cinch reports candidate bacterial genome dependencies. A retained edge is not, by itself, molecular epistasis, a fitness interaction, or causality.
A bacterial whole-genome collection may contain
creating an enormous, sparse and difficult-to-interpret search space. At the same time, bacterial genomics already provides cgMLST/wgMLST profiles that group sequence variation into biologically named loci. Cinch uses that locus-level abstraction:
This is a candidate-discovery framework: it compresses the search from nucleotide coordinates to interpretable loci before evaluating dependence and graph structure.
For isolate
where
PT and TP remain separate computational orientations, but may be displayed jointly
as P↔T. The TT channel is what allows two nearly universal genes to have
For state variables
MI/NMI quantify dependence magnitude, not sign or direction. The enriched state cell is described separately through the observed/expected contingency residual:
For loci reliably co-located on the same contig, the frozen order distance is
requiring at least five same-contig observations. Different-contig pairs remain
NA; they are never assigned an artificial large distance. Each channel has its
own empirical conditional envelope
Take-home: local order/bp dependence decays toward a low baseline, whereas the
legacy phylogenetic curve has a distinct far-distance tail. The plotted point area
is proportional to
Across all 3,955,078 SPN534 locus pairs, legacy phylogenetic distance is available
for 3,624,696; order and bp are available for the same 990,661 pairs. When both are
defined, FIG06_DISTANCE_COMPARISON.
HC69 is a single-linkage allele-difference threshold, not “69 clusters” and not a
model producing adjusted p/q-values. Let
The frozen threshold is therefore stated explicitly wherever this SPN534 result is shown; later design decisions are kept in the development-history document.
The retained TT example follows the complete frozen chain:
The negative development contrast is
Take-home: high TT information is insufficient when the driver is only a population identity tag; recurrent support changes the interpretation.
Among 985 high-MI pairs in the Coinfinder audit, 982 (99.70%) are direct published association/dissociation edges and 963 (97.77%) lie in the same published component. This is concordance with a published dependency method, not causal ground truth or an unseen accuracy estimate. The V-ATPase control further shows that a dependency may be detected correctly and then interpreted as local linkage.
Take-home: Cinch recovers the established P/A dependency structure while the P↔T/TT channels define its additional information domain.
Take-home: the
SPN534 is a 534-genome Streptococcus pneumoniae development case, not an
unseen validation cohort. Frozen settings are HC69,
| stage | PP | PT | TP | TT |
|---|---|---|---|---|
| eligible | 2,902,845 | 1,180,977 | 2,109,466 | 67,853 |
| high information | 646 | 606 | 853 | 76 |
| order filtered | 309 | 303 | 448 | 42 |
| HC69 recurrent | 50 | 71 | 160 | 1 |
| Neff filtered | 4 | 58 | 160 | 1 |
The result contains 223 oriented records and 223 unique unordered locus pairs. The published tree, HC69 strip and the exact P/T states for the four PP plus one TT examples use the same 534-isolate order.
Take-home: retained state drivers are visible in their phylogenetic-background context rather than being presented as context-free scores.
The frozen table forms a 167-locus, 223-edge candidate dependency network.
It is pre-ARACNE: the frozen configuration has ARACNE: false and
network_construction: false; graph construction here is a presentation of the
network-ready table, not another statistical filter. Communities are descriptive
graph partitions, not automatically pathways.
Take-home: most retained candidates occupy one large component, with a small set of disconnected dependency components. Use the interactive network for channel filters, ego views, product search and exact edge metadata.
The actual WGS input contract is a reference CDS FASTA plus genome FASTA files:
git clone https://github.com/Naclist/Cinch.git
cd Cinch
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
python -m pip install -e ".[test]"
pytest -q
cinch wgs \
-r examples/tiny_wgs/input/ref.cds.fasta \
-p tiny -t 4 \
--phenotype examples/tiny_wgs/input/phenotype.tsv \
examples/tiny_wgs/input/genomes/*.fasta
cinch filter --wgs_results tiny.cinch --hc 2 --order-threshold 2The toy's --hc 2 is a toy-specific HC level, not the SPN534 recurrence-count
criterion. SPN534 provenance, versioned assembly mappings and SHA256 manifests are
under examples/spn534/provenance.
| path | purpose |
|---|---|
cinch/frozen_v1 |
state construction, MI/NMI, hierarchy, order distance, recurrence and Neff |
docs/SCIENTIFIC_NARRATIVE.md |
full mathematical/scientific walkthrough |
docs/FIGURE_INDEX.md |
result figures and exact evidence source |
docs/DEVELOPMENT_HISTORY.md |
decisions, failures and frozen/future boundaries |
examples/tiny_wgs |
fully redistributable demo |
examples/spn534 |
frozen tables, diagnostics, tree states, network and checksums |
site |
GitHub Pages source |
FROZEN_CINCH_WGS_V1.yaml |
machine-readable freeze contract |
- MI/NMI measures dependence, not causality.
- HC recurrence is not an adjusted significance test.
- Order distance reduces obvious local linkage; it does not prove function.
- ARACNE, if used later, is post-filter redundancy pruning and cannot define significance.
- SPN534 informed development and must not be presented as unseen validation.
Comparator inputs originate from fwhelan/coinfinder-manuscript and Whelan, Rusilowicz & McInerney (2020), doi:10.1099/mgen.0.000338.
No redistribution license has yet been selected; public source visibility is not a grant of reuse rights.





