router_screen: a reference implementation of the ionic router enumeration
Abstract
A dependency-free reference implementation of the ionic router screen: the enumeration that identifies charged residues exchanging one salt-bridge partner for another between the active and inactive states of a protein, together with the Wilson score interval used to decide occupancy. An ionic router is a charged residue that exchanges salt-bridge partners between two activation states. In each state it binds at least one oppositely charged partner that it does not bind in the other. Each arm is itself a lock, and the two are mutually exclusive, so one is closed in each state and the pivot is never free. Charged positions are aspartate, glutamate, arginine, lysine and histidine, scored on the atoms carrying the formal charge in each. These are the charged-atom sets of Barlow and Thornton (J Mol Biol 1983;168:867-885), histidine included; they additionally treat the chain termini as charged, which this screen does not. Every ordered pair of a charged position with a partner at least five sequence positions distant is formed, and for each structure the minimum distance between any charged atom of one and any charged atom of the other is computed. Where either residue lacks resolved charged atoms the edge is not scorable in that structure and contributes to neither numerator nor denominator. An edge is retained when its two charged groups approach within 7.0 angstrom in at least one structure. Positions holding at least two retained partners form triples, and a directed triple assigns one partner to the active state and one to the inactive. The distance criterion is not fixed in advance. It is evaluated at 17 points from 3.00 to 7.00 angstrom in steps of 0.25. An arrangement is admissible at a criterion when both off-diagonal cells, the forbidden contacts, have zero present counts there. A cell with no scorable structures also carries a zero present count, so admissibility records that no forbidden contact has been observed rather than that one has been excluded. Selection requires that signature together with both on-diagonal cells placed above majority occupancy, meaning the Wilson score interval lower bound exceeds 0.50 on each. No floor is imposed on the number of scorable structures in any cell, and none is required, because the interval supplies one. The same interval orders the selected arrangements and assigns the remainder to tiers by the upper bound on the weaker cell. All intervals are at 95 percent, without continuity correction, with z equal to 1.959964. Requires Python 3.9 or later and no third-party packages. Reads mmCIF and PDB, optionally gzipped. The program prints its own version and the SHA-256 of its source on every run, so output can be traced to the exact file that produced it. A built-in self-test checks the interval against five bounds printed in the paper and runs the full pipeline on synthetic structures encoding one router and two arrangements that must not be selected. This deposit implements the enumeration and the interval and nothing else. It does not retrieve structures, assign activation-state labels, assign generic residue numbering, or reproduce any other component of the analysis it was written for, and it is not part of the Deep EigenMatics DEEP DISCOVERY AI Platform.