Abstract
We investigate the representation of atomic molecular environments as a list of the atoms neighboring an origin ranked by distance. We show that contact densities collected for origin-neighbor pairs of set types have regular and specific distributions when stratified by ranks. This is used to build a scoring function assessing the fitness of individual atoms with respect to their environment (FS, fitness score), as well as to characterize the contact preferences (CP) for pairs of atoms. Tested against the 3DRobot data set, the FS score was found to be highly discriminative of decoys vs native X-ray. The code is freely available on GitHub (https://github.com/DreanoLoic/Fitness_score.git).


Introduction
Knowledge-based scoring functions are widely used in docking software such as GOLD, , FlexX, Glide, and Dock, where they are used to predict poses, rank compounds and predict binding affinities. − These functions use knowledge-based potentials to model molecular interactions, which are derived from densities of presence collected for pairs of atoms normalized to a reference state. Knowledge-based functions can capture a wide range of molecular interactions, including uncommon interactions often poorly described by standard force fields. − When building such functions, a way to collect solid statistics is, for example, to focus on line-of-sight interactions between atoms. , It is moreover important to account for solvation, and solvent exposure has been used to modulate knowledge-based scoring functions, as in the Astex Statistical Potential and others. , A surface-area function such as the one used in PLIff, computed using a Voronoi tessellation algorithm, allows focusing on direct contacts while accounting for solvation. Atomic distributions have been modeled using different methods, including, for example, Gaussian mixtures.
Another way to apprehend molecular interactions is through the propensity of a pair of atoms to be in contact. Small networks present a valuable tool to represent and visualize molecular contacts. This approach has been developed by Kuhn and co-workers based on the seminal work by Taylor with the ratio of frequencies (R F) score, which is based on the propensity of atomic surfaces to interact and takes into account angular preferences for predefined SMART fragments. ,,
In previous work, we have conducted two large data-mining studies of the PDB; one in which we characterize the environments around ion pairs in both proteins and ligands; and another where we study structural isosteres of phosphate groups. For ion pairs, we characterized contact preferences through a contingency analysis. This early work was conducted using scripts, but since then we have developed a relational database to explore molecular contacts.
Here, we introduce a conceptual framework that describes the environment of a given origin atom by the list of its neighboring atoms ranked by distance. We present a key observation, in which the distribution of the neighbors collected over multiple pairs is very regular when stratified by their ranks in the list. This allows us to build a fitness score (FS) for an individual atom, derived from the distances of itk first neighbors and accounting for the types of the atoms involved as well as their ranks in the neighbor list. Furthermore, we estimate atoms’ pairwise contact preference (CP), defined as the ratio of the observed frequency of encountering a given neighbor type at a given rank to the background frequency of that type at the same rank. Overall, these scores share similarities with, respectively, knowledge-based scoring functions − ,− and the R F score developed by Taylor as well as Kuhn and co-workers. ,,
Experimental Section
Data collection and analysis were performed using Python scripts, R for statistical analysis, and a PostgreSQL database that has been described elsewhere. The database was created and populated with a Python script using the SQLAlchemy (v.2.0.13) package. Data were handled using NumPy (v.1.20.2) objects (lists of distances, identifiers, and other information). PyMOL (v.2.5.4) was used for visualization. Distance calculations were made using Sklearn (v.0.24.2) KDTree. R packages (RPostgreSQL, ggplot2, ggrepel, plyr, ca) were used for statistical analysis, density calculation, and plots.
We used 11 custom atom types defined by aggregating the 119 PDB atom denominations (Supporting Information 1). Seven of these types encoded protein atoms, and three encoded ligand heteroatoms, metals, and water molecules, respectively. Protein hydrogen atoms were assigned as an 11th type but were not considered in this study. Additionally, a twelfth “empty” type was defined to handle missing neighbors during environment construction.
We represented the molecular environment of an atom as a distance-ranked list of its neighboring atoms (Figure ). Throughout the manuscript, i denotes an origin atom (the atom whose environment is being scored) and j denotes one of its neighbors. For each origin atom i of type T i , we defined the ranked environment of size k, denoted Env k (i), as the ordered set of the k nonbonded neighbors of i, sorted by increasing distance to i. To each neighbor j ∈ Env k (i) we attached three quantities: its type T j , the distance d ij between i and j, and its rank r j , corresponding to the position 1, 2, ..., k of j inside Env k (i). Neighbors j of an origin i were defined as all atoms within 10 Å of i, a distance beyond which no significant nonbonded interactions occur. We further applied two types of filters in order to avoid considering atoms whose presence is only a result of chemical bonding. The first filter, self, excluded from Env k (i) all atoms from the residue associated with i as well as those from the residues immediately preceding and following it in the protein chain. The second filter, primary contacts, retained in Env k (i) only the closest atom from each interacting residue, thus omitting atoms that might be found only due to covalent linkage to the atom forming the primary contact. In this manuscript, the self filter was always applied whereas, different uses of the primary contact filter were investigated.
1.
Schematics illustration of the construction of the neighbor lists. The schematics portray seven labeled atoms (1–7) belonging to four amino acid residues (R1 (gray), R2 (light blue), R3 (yellow) and R4 (light green)) used to compute the self filter. The closest atomic distances (Å) from origin atom 6, used to construct the ranked lists of neighbors, are shown by dashed lines. Neighbor lists can be constructed considering only the self filter (middle-right box) and considering both the self and primary contact filters (bottom-right box).
In the last part of this manuscript, we investigated the atom types of the neighbors in Env k (i) abstracted into a k-tuple, where each position corresponds to a rank in the neighbor list. Two variants were considered: tuples preserving the rank order of Env k (i), and unordered tuples where only the set of neighbor types is retained, irrespective of their position (e.g., Oow-Nbas-Car and Car-Oow-Nbas would belong to the same unordered tuple). These k-tuples are not used in constructing the fitness score FS and the contact preference CP described below.
We used, for deriving statistics on molecular environments, a set of 22,930 unique representative structures (mean resolution 2.27 Å; standard deviation 0.66 Å) solved by X-ray crystallography, referred to as PDB30. This set was downloaded from the PDB (accessed January 2018) and is based on a BLAST search clustering (27,330 clusters sharing over 30% sequence identity), where for each cluster a representative structure with the highest resolution and more than 20 amino acids was selected.
The molecular environment of every atom in the PDB30 data set was calculated and stored in the contact_matrix table of the custom PostgreSQL database. For each origin atom, the lists of the ten closest neighbors for both full- and primary-contact configurations (i.e., with or without the primary contact filter) were stored in the environment table. If an atom had fewer than ten neighbors within the 10 Å search sphere, the remaining positions in these lists were filled with the “empty” type.
For all 1000 possible triplets (10 origin types × 10 neighbor types × 10 ranks) of origin type T i , neighbor type T j , (a pair hereafter noted T i (T j )) and rank r j ∈ {1, ..., 10}, we precomputed a reference distance density ρ T i ,T j ,r (d) from PDB30. Using R, we discretized each density into 512 distance points–which allows a very high resolution since each 1.0 Å of density is represented by ∼50 values–and stored the resulting values as tabulated files (distance, density). Each density describes the probability of observing a neighbor of type T j at distance d from an origin of type T i when that neighbor occurs at rank r in PDB30.
We used the distance densities computed from the PDB30 set to construct a knowledge-based scoring function, the fitness score (FS), which evaluates how well the local environment of an atom agrees with these reference density distributions. For each neighbor j∈Env k (i), we calculated a contribution score S T i ,T j ,r j (d ij ), abbreviated S ij , by comparing the observed distance d ij to the corresponding reference distance density distribution ρ T i ,T j ,r j (d) associated with the (origin type, neighbor type, rank) triplet (T i ,T j ,r j ). The contribution score was obtained in relation to the maximum of that normalized density distribution, such that s ij = 1 corresponded to an optimal (most probable) distance
| 1 |
By construction (eq ), s ij lies in [0, 1] and equals 1 when d ij coincides with the mode of the reference density. The atomic fitness score FS atom (i) of origin i is the arithmetic mean of the contribution score of its k ranked neighbors
| 2 |
By construction (eq ), an exception was defined where there were no neighbors at a given rank, the score s ij of this position was arbitrarily given the value of 0.5, which was chosen due to a limited impact on the score. This case was not observed at the first 3 ranks studied.
A fitness score FS structure (Q) of a structure Q was obtained by averaging FS atom (i) over all origin atoms in Q. Formally, denoting P(Q) the set of origin atoms of Q
| 3 |
The performance of the FS score was evaluated using two independent data sets. First, the 3DRobot data set, composed of 200 native structures associated each to 300 decoys generated with diverse levels of similarity, was used to evaluate the ability of the fitness score to discriminate between native and non-native conformations. The 3DRobot data set provides for each decoy a root-mean-square deviation (RMSD) to native, which was used as such for analysis. We used available scripts from the VoroMQA, 3DCNN-MQA, Discrete Optimized Protein Energy (DOPE), and RWPlus to score the 3DRobot set. To complete the analysis, solvent accessibility was computed using MODELLER. Second, a data set of 359 diverse protein structures solved by X-ray crystallography with a resolution lower than 1.0 Å was used to examine how the fitness score relates to structural descriptors such as B-factors and solvent accessibility, as well as to analyze its behavior on water molecules, which are well resolved at these of resolutions.
Building upon the same molecular environment framework, we defined the contact preference CP, which evaluates the ratio of the frequencies of observing and expecting a pair of atoms characterized by their types, taking the ranks in the neighbor list into account. For each origin atom of type T i , and each neighbor type T j observed at rank r j ∈ {1, ..., k}, we defined the observed frequency f obs(T i ,T j ,r j ) as the proportion of neighbors of type T j found at rank r j around origins of type T i . We also defined the expected frequency f exp(T j ,r j ) as the background proportion of neighbors of type T j found at the rank r j across all atom types. The contact preference ratio is then expressed as
| 4 |
A ratio CP > 1 indicates that the pair (T i , T j ) occurs more frequently than expected at that rank, whereas CP < 1 denotes an underrepresented contact. Unlike the fitness score FS, the contact preference CP is independent of interatomic distances. Of note, the relationship between pairs is nonreciprocal; meaning the rank of T j as a neighbor of T i does not necessarily match the rank of T i as a neighbor of T j .
Statistical analyses were further performed using a simple correspondence analysis in R to explore relationships between atom types and their positions in the ranked neighbor lists. For each origin atom type, a contingency table was constructed with neighbor atom types as rows and ranks r j ∈ {1, ...,10} as columns, populated with occurrence counts extracted from the environment table. The correspondence analysis decomposes this contingency table into orthogonal dimensions that summarize the association structure between atom types (rows) and ranks (columns) based on occurrence counts (cells), each dimension explaining a fraction of the total information contained in the data table.
Results
For the purpose of presenting this study, we focus on three atom types: aromatic carbon (Car in the custom types), basic nitrogen (Nbas), and water oxygen (Oow); data on other types are presented as Supporting Information. The number of origin atoms collected for these cases was 4,965,111 for Car, 867,579 for Nbas, and 2,683,524 for Oow.
The Frequency of Neighbors is Conditioned by Their Rank and Type
For all origins, the frequencies of the observed neighboring atom types vary along their ranks in the neighbor list (Supporting Information 2). For example, for Nbas there is a high proportion of carboxylate oxygens (Oox) and carbonyl groups (Oc) in the first three ranks, which is easily explained since Oox can act as a counterion and Oc as a hydrogen-bond acceptor. Nbas has also empty neighbors at high ranks, a probable consequence of the long side chains of arginine and lysine pointing toward the protein exterior in crystal structures. For the water molecules (Oow), most interactions at close range are polar, either with other water molecules or with polar protein groups.
Overall, at the ranks 3–5, the relative proportion of aliphatic carbons and sulfur atoms (Xot) generally increases. Comparing rank 1 and rank 10 (Supporting Information 2), the profiles are clearly different. At rank 10, the frequencies of neighbors are somewhat similar among the ten origins, except for the ligand atoms query (Hetatm). This reflects that molecular interactions are specific at close range. The “anomaly” for Hetatm might be explained by the inclusion of, for example, lipid–lipid and ligand-cofactor data points in the data set. The frequencies of observing different neighbors at lower ranks are not influenced by the filtering method (primary contacts or not) used to define neighbors (Supporting Information 2).
The Figure A corresponds to the case of a “classical” way of collecting the densities of pairwise distances of given atom types (some scoring functions may consider only the first closest contact). Strikingly, when accounting for possible ranks in the neighbor list, densities appear to be well stratified (Figure B,C) (all densities provided as Supporting Information 3). Indeed, there is a strong order in the position and shape of the peaks when accounting for the ranks in the neighbor list (Figure B,C). The interval between peaks is regular for most of the 1000 densities investigated (Supporting Information 3). The peaks fit well with those expected from molecular interactions. For example, the peak observed around 2.9 Å corresponds well to polar contacts (Nbas(Oow)), and around 3.8 Å to cation-π contacts (Nbas(Car)). Most irregularities correspond to ligand heteroatoms (Hetatm) or amide nitrogens (Nam) from side chain and main chain. When applying the primary contact filter, a sharper separation of the peaks is observed (Figure C, Supporting Information 3), but the shapes of the distributions do not change.
2.
Raw density distributions as a function of distance for the first ten neighbors, exemplified by a Nbas origin and Car (top panels), Nbas (middle) and Oow (bottom) in the PDB30 data set. (A) No stratification based on rank; (B, C) Stratification by neighbor rank. Neighbors are defined as either: (A, B) any atom within 10 Å, or (C) any atoms within 10 Å, but applying the primary contact filter.
The Fitness Score FS
We took advantage of the rank stratification to devise a simple score, the FS atom score, which assesses the fitness of individual atoms in a three-dimensional molecular structure. For each nonbonded neighbor j of origin atom i, an individual contribution score S ij is derived by evaluating the observed distance against the reference density for that specific atom-type pair and rank, normalized to its maximum such that S ij ∈ [0, 1] (eq ). FS atom is then defined as the average of the k such contributions (eq ). For example, using k = 3, the three nearest neighbors of water molecule 925 in the crambin crystal structure (PDB code 3NIR) (Figure A) are water molecule 924 at rank 1 (Oow, 2.73 Å), the side chain hydroxyl of tyrosine 215 at rank 2 (Oh, 2.75 Å), and the Cγ of arginine 191 at rank 3 (Xot, 4.29 Å), yielding S ij scores of 1.00, 0.85, and 0.17 respectively, and a final FS atom (Oow 925) = 0.67.
3.
Illustration of the FS atom applied to the crambin crystal structure (PDB code 3NIR). (A) Decomposition of FS atom (Oow 925) into its three contribution scores S ij (y-axis, bold), each derived from a rank- and atom-type-specific normalized reference density as a function of the observed interatomic distance (x-axis, bold). (B–D) FS atom scores mapped onto the crambin structure using Low–High color scale. (B) Protein atoms scored in the absence of crystallographic water molecules. (C) Protein atoms scored in the presence of crystallographic water molecules. (D) Crystallographic water molecules scored independently. (E) Crystallographic water molecules colored by B-factor.
The scripts provided use tables of precomputed densities (discretized into 512 elements, this number being enough to retain a fine grain in all cases) and are therefore fast to execute, 0.5 s to score crambin on a standard computer; (Figure B–E). The FS atom score does not use integration around the maxima, which is justifiable since most peaks are unimodal, and thus integration would likely result in only marginal gain in accuracy at the expense of computational cost.
The FS atom scoring function can be applied to any atom in a molecular structure, including ligands and water molecules. In general, buried atoms have higher scores than atoms at the surface (Figure B). This can be easily explained since the solvent around surface atoms is often not observed by X-ray crystallography. When we accounted for crystallographic water molecules and recalculated the FS atom for protein atoms (Figure C), the FS atom of surface atoms indeed increased. Since FS atom can be trained on any atom type, including metals and ligand atoms, we tested the approach by scoring water molecules (Figure D). As a result, we observed a correspondence where the FS atom followed the B-factor (compare Figure D,E), which will be further analyzed in this manuscript.
The method can be applied to calculate a score for a complete protein structure, the FS structure score, which is the arithmetic mean of all its FS atom scores (eq ). We benchmarked the FS structure scoring function on a well-studied data set, the 3DRobot data set. The 3DRobot data set is composed of 200 diverse native X-ray structures each accompanied by a set of 300 decoys of varying molecular similarity, expressed by the RMSD to the reference native structures. The RMSD is calculated by the Zhang group following protein alignment, and concerns only the main chain Cα deviations, not the side chains differences. We benchmarked four additional scoring functions: DOPE, an atomic distance-dependent statistical potential not dependent on adjustable parameters, based on a reference state corresponding to noninteracting atoms in a homogeneous sphere; RWplus, a pairwise distance-dependent, atomic statistical potential function, using an ideal random-walk chain as reference state, that incorporates a side-chain orientation-dependent energy term; VoroMQA, a function that combines statistical potentials with interatomic contact areas, derived from Voronoi tessellation; and 3DCNN-MQA, which uses a local structure quality evaluation with a deep neural network containing 3-dimensional convolutional neural network layers. In order to compare the functions, normalizations were conducted. The scores of the native structures were set to 0 and the scores of the decoys oriented so that more negative scores indicate a lesser quality 3D structure. We then conducted two types of normalization, one setting the standard deviation within each native-decoy set as unity, the other setting the standard deviation in the whole set as unity.
As a result, all tested scoring functions were able to discriminate well native X-ray structures (scores set to 0) from their associated decoys (scored less well, and thus obtaining negative scores. The more negative the decoys scores are, the better is the scoring function to discriminate natives from decoys) (Figure A and Supporting Information 4). When considering a stringent success criteria, ranking the native structure at the top (position 1 when ranking the scores by decreasing order), this was achieved in 90.3% of the cases for 3DNN, 85.5% for FS structure , 57.0% for VoroMQA, 31.5% for DOPE, and 21.0% for RWplus. For the DOPE, RWplus, VoroMQA, and 3DCNN-MQA functions, a correspondence between RMSD and similarity to native is apparent (Figure and Supporting Information 4): For decoys very similar to native X-ray structures (low RMSD in 0–2 Å range), normalized scores are close to 0. For these functions, most of the decoy scores are less than one standard deviation away from the native scores (Figure F in the 0–2 Å range). In contrast, the FS structure score shows a high level of discrimination, with the scores of around 80% of decoys above one standard deviation, even for decoys that have a RMSD close to 0 compared to native (Figure B). The dependency on RMSD is much less marked for FS structure in contrast to other functions (Figure A and Supporting Information 4). Upon further analysis, the lower FS structure scores for decoys are due to a drop in their individual FS atom scores concerning most of the atoms. Thus, the high decoys/native discrimination is likely driven by the local nature of the FS atom scores. Small deviations from optimal distances are in this case heavily penalized, as can be inferred from Figure A and eq .
4.
Combined densities of scores obtained when benchmarking the FS protein scoring function against established scoring functions on the 3DRobot data set. Y-axis: normalized scores, where unity is the standard deviation of the scores within each native-decoy set, the score of each native X-ray structure set to 0 (red dot), and scaling is done so that more positive values indicate better scores. X-axis, RMSD of each decoy to native. (B) Graph showing (y-axis) the percentage of decoys related to each native X-ray structure for which the score of this native X-ray structure differs by at least one standard deviation, as a function of RMSD threshold.
To generalize these otherwise qualitative results, we characterized a test set of 359 high resolution structures (resolution better than 1.0 Å). As a result, the FS atom scores appear informative about structural indicators such as B-factor (Figure A) and are clearly affected by solvent accessibility (Figure B). This is true for FS atom scores calculated both with and without crystallographic water molecules (100 866 waters in the set). For atoms located at the surface of the protein, usually more mobile or subject to crystal anisotropy (higher B-factor) and more solvent exposed (higher SASA), scores often significantly improve upon consideration of water molecules (Figures B,C and A). This means the individual FS atom scores for solvent-exposed atoms need to be corrected by including solvation, which has implications when considering ligand interactions in knowledge-based scoring functions, as accounted by others. − , That being said, when it comes to a global FS structure score, solvent-exposed atoms often represent a small proportion of the total number of atoms (Figure B) and thus have minimal impact.
5.
Distribution of the FS atom scores for all atoms from 359 high resolution structures (resolution <1.0 Å) pooled together. The scores are calculated either considering crystallographic water molecules (blue) or without (red). Top, counts of atoms. Bottom, boxplot of the scores as a function of (A) B-factor or (B) solvent accessibility. Each box represents 50% of the data.
Contact Preference CP Scores for Atom Pairs, Accounting for Ranks in the Neighbor Lists
An alternative way to assess molecular contacts is to consider pairs of interacting atoms (origin, neighbor), akin to the RF score introduced by Taylor. We developed an approach where, for each atom pair, we calculated a CP score, i.e., the ratio of the frequencies of observing and expecting this pair, taking the ranks in the neighbor list into account (eq ) (Figure ). The data can be summarized into sets of matrices, which fit well with our knowledge about molecular interactions. For example, the contact preference CP between ion pair atoms is high: it is 4.9 times more likely to observe a carboxylate oxygen counterion (Oox) at rank 1 of a basic nitrogen (Nbas), compared to the background frequencies of carboxylate oxygens at rank 1 (Figure B). Similarly, but less prominently, the contact preference CP for hydrogen bonding atoms is above unity. The most under-observed contacts are amide–amide (Nam–Nam) and carbonyl–carbonyl (Oc–Oc). This is probably due to these contacts being repulsive. When the ranks increase, the contact preference CP tends toward unity, i.e., an equal frequency of observing and expecting contacts.
6.
Contact preferences CP given as the ratio of the frequencies of observing an atom of a given type at a given rank (f obs) on the background frequencies at that rank (f exp). (A) CP around the three first ranks for an Oow origin. Boxes, types observed for selected examples. (B) Matrix of CP for all origin-neighbor combinations for the first three neighbors. The empty type may or may not be found at a given rank in a set of data. Color gradients are set within each matrix and are provided here only as a visual guide.
The contact preference CP can be illustrated on a practical example with the environment of water 925 (see also Figure A, discussed earlier). The contact preference CP (eq ) at the ranks 1, 2, and 3 are respectively 2.5, 1.6, and 0.8 (see boxes on Figure A,B). The contact preference CP is amenable to a visual output in 3D structures that is independent from the FS atom score (Figure ). Such output can be generated by parsing the contact lists, filtering contact preferences CP above or below a given threshold. Applied to the example (Figure ), the three contacts with the highest preference are highly relevant: they correspond to a salt bridge with the C-terminus (Asn46) as well as to a sulfur-π stacking contact with the disulfide bridge involving Cys4. The current script calculates directional arrows indicating origin atoms, but reciprocal contact preferences could also be calculated.
7.

Contact preferences CP (directional dashed lines, CP above 1.5, blue; otherwise above 0.5, green) for atom pairs, exemplified for arginine 10 of a crambin crystal structure (PDB code 3NIR). (A) Six selected contacts, corresponding to classical hydrogen bonds, with their ranks in the contact list. (B) The first three contacts for every side-chain atom. (C) Plot combining the FS atom score with the contact preference CP, with distances mapped.
Evaluating the Training DataMolecular Environments Taken as Tuples
We also investigated whether elements of the molecular environment lists can be considered at once as a single tuple. These lists of tuples can be constructed preserving the rank information or without order (the data associated with the tuple are pooled for all the combinations of types included in the tuple at different ranks). There are thus more tuples in the lists preserving the rank information than in the unordered ones; the maximum theoretical numbers of tuples using three positions and 11 atom types in those lists are respectively 1331 and 286 (Figure ). Environments preserving ranks contain more information, however they do not provide enough data points for representative statistics for scarcely populated environments. On the other hand, unordered-list environments cannot condition atom types to ranks in the neighbor list. Thus, each method carries its own advantages and drawbacks.
8.
Count for environments (size 3) in the training set for the origins Oow, Car and Nbas (2,683,524, 4,965,111, and 867,579 origins considered respectively). Environments are represented by triplets of atom types that can preserve rank information (left-hand panel) or be unordered (right-hand panel). (A) Histogram combining the 50 most frequent environments for three origins (Oow, Nbas, and Car). (B) Cumulative counts of possible environments and maximum theoretical number (dashed line).
Interestingly, some tuples are more often observed than others (Figure A). For example, negatively charged counterions (Oox) are often seen near basic origins (Nbas), and purely hydrophobic environments (tuples composed of exclusively Xot and Car) are seldom seen for charged queries. In fact, for Car, Nbas, and Oow, respectively 242 (18.2%), 305 (22.9%), and 271 (20.4%) out of 1331 possible rank-preserving environments are never observed. Similarly, 9 (3.2%), 17 (5.9%), and 14 (4.9%) out of 286 possible unordered-list environments are never observed. We attempted to take advantage of this and develop a score based on the ratio of observed to expected frequencies of unordered-list tuples of different sizes. The performance appeared low, and this scoring function was not further investigated.
Another interesting consideration is the number of data points required to observe different environments. When queries are used to scan the training data set, for each query, the number of observed unique environments reaches a plateau (Figure B). Considering the tuples constructed using ordered-list and unordered-list environments, the observation is similar irrespective of the query: about a million queries are necessary to see 99% of all possible rank-preserving tuples. Conversely, with only half a million queries (10%) we train ∼85–90% of all environments. This provides orders of magnitude relevant to training future scoring functions.
Discussion
Application of the FS atom and CP Scores for Structural Analysis
This paper analyzes atomic environments as rank-ordered lists. We demonstrate that, when conditioned by ranks, the environment distributions are very regular (Figure and Supporting Information 2 and 3). This feature was used to develop a function scoring the fitness of an atom with respect to its neighbors, the FS atom score, which can be generalized to score full atomic structures as a FS structure score. When benchmarked against the 3DRobot set (Figure and Supporting Information 4), the performance of the FS structure score was excellent. We also established the preferences of pairs of interacting atoms, i.e., a contact preference CP (Figure ). These two assessments can be combined for a powerful and easily computed visual evaluation of molecular complexes (Figure C). The visual output is easy to compute and may perform better than simple tools to visualize molecular complexes based on simple distances in its ability to capture the most relevant molecular interactions, for example those integrated in PyMOL, Mol viewer, NGL viewer, and PLIP. While working well in the general case (Figure ), it should be noted that the ease of calculation of the CP scores is balanced by some approximations (in contrast to RF scores): RF scores are considering the surface of each atom accessible to interactions for normalization, while CP use a more coarse frequency of expecting contacts based on counts; and CP also do not account for van der Waals radii in the computations, and thus may miss primary contacts of large atoms such as a ligand iodine atom.
In the present work, FS atom is developed directly from PDB files that typically do not include hydrogen atoms. While it adds approximations, at the same time this allow to work directly with the raw PDB files. The computation of FS atom and CP is fast, and does not require complex processing of the data, nor prior knowledge such as SMART fragments. Interestingly, FS atom scores are lower for solvent-exposed atoms in unsolvated proteins (Figures B, 3E and ), as was observed by others. There is thus a potential to correct the FS atom a score, either implicitly or explicitly by positioning water molecules directly at the protein surface.
Number of Relevant Neighbors
We empirically set the number of neighbors used to k = 3, based on the existing data: the rank dependence (Supporting Information 2); the density distribution graphs (Figure and Supporting Information 3); the effect of the number of neighbors on score vs B-factor (Figure ). This number k = 3 could be, for each query, optimized. From a chemical and geometrical perspective, the number of close interactions around an atom depends on its van der Waals radius and relates inversely to the number of connected atoms. For example, a primary amine functional group has more space around than a tertiary amine group, and thus could theoretically accommodate more interacting atoms.
Changing the number of neighbors included in the computation of the FS atom scores to k = 1 (Supporting Information 6) lowers the trend of scores following B-factor and solvent accessibility, which may be caused by too few atoms included in the calculation. In contrast, when the number of neighbors is increased to k = 10, scores appear very similar to one another and therefore less discriminative, suggesting that an optimal number of neighbors exists for calculating scores, which may be atom-type dependent.
A way to investigate the contact atoms is through the projection of the environment counts using a simple correspondence analysis (Figure ; see also Supporting Information 7). In this projection, both atom types and ranks are represented as points in the same space, where their relative proximity reflects the strength of their statistical association. Atom type points located near a rank point in the plot correspond to atom types that are most frequently observed at that rank in neighbor lists. All the starting (rank 1) environments are very specific. For basic nitrogen (Nbas) queries, the first neighbor is most frequently a carboxylate oxygen (Oox) (Figure A). For water molecules (Oow), rank 1 environments are dominated by polar atoms (Oc, Oh, Oox) and metals (Figure B). For aromatic carbons (Car) the closest environments are predominantly aromatic (Car) or charged (Nbas) (Figure C). When following the progression of ranks, the simple correspondence analysis shows inflections at 3 or 4 neighbors. As discussed previously, the environment at higher ranks seems to be converging toward the baseline environment seen by any atom, markedly toward the Empty atom type.
9.

Projection using a simple correspondence analysis of the custom atom types and the first 10 neighbors for the Nbas (Top, cross), Oow (Middle, plain circle) and Car (Down, squares) origins. The first ten neighbors are projected on dimensions 1 and 2, which explains most of the data.
Reference State
A key question in scoring function is the setting of reference state. Several approaches have been used in the literature. ,,− The scoring function used in this manuscript, the FS atom score, is based on pair potentials and does not directly use a reference state. While it can be argued that this is a drawback toward a mechanistically sound scoring function, we believe that stratification by rank significantly attenuates the need for accounting for the reference state. With similarities to the FS atom score, some machine learning scoring functions such as the machine-learning function RF-score use binned pairwise atomic distances as descriptors, without a reference state.
Conclusion
In this manuscript, we show that contact lists can be stratified by ranks, and that this property can be used to develop simple methods of scoring and assessing contact preferences. The fitness score FS atom presented here allowed a very strong discrimination of decoys and native on the 3DRobot benchmark set. The methods proposed here are amenable to large-scale unsupervised machine learning applications, since they use lists and no complex geometrical calculations beyond the initial distance calculations that is well handled by the KDtree algorithm. They could easily be used by standard structure file viewers for improved visualization of molecular interaction. The functions are simple enough to be translatable to any atoms, for example ligands or metals, without any specific adaptation.
Supplementary Material
Acknowledgments
The CSC-IT is thanked for access to computational resources and the DDCB consortium for organizing computational resources in the H.X. group. The Doctoral Programme in Chemistry and Molecular Sciences (L.D., M.B., K.V.) is thanked for organizing doctoral studies. Funding to pay the Open Access publication charges for this article was provided by University of Helsinki library.
Glossary
Abbreviations
- FS
fitness score
- FSatom
atomic fitness score
- FSstructure
protein fitness score
- CP
contact preference
- Car
Aromatic carbon
- Nbas
basic nitrogen
- Oow
Water oxygen
- Oox
carboxylate oxygen
- Oc
carbonyl oxygen
- Oh
hydroxyl oxygen
- Nam
amide nitrogen
- Xot
aliphatic and sulfur atoms
- PDB
Protein Data Bank
- RMSD
root-mean-square deviation
- SASA
solvent-accessible surface area
The script that allows calculation of the fitness score and the preference score from a pdb structure is available at https://github.com/DreanoLoic/Fitness_score.git. The output is an annotated PDB file, a PyMOL session, and a csv table. The script can handle the conversion to Sybyl type to work with ligands, which will be described elsewhere.
The Supporting Information is available free of charge at https://pubs.acs.org/doi/10.1021/acs.jcim.6c00694.
S1, Custom element types and their attributes; S2, Neighbor composition at different ranks. S3, distance densities of neighbors stratified by their ranks; S4, Benchmarking against established scoring functions; S5, Contact preferences matrices; S6, Influence of the number of neighbors on the score distributions, and S7, Correspondence analyses (PDF)
L.D.Conceptualization (colead), methodology (colead), formal analysis (colead), investigation (lead), writingoriginal draft preparation (colead), writingreview and editing (equal), visualization (colead), and project administration (colead). A.L.methodology (supporting), investigation (supporting), writingreview and editing (supporting). M.B.methodology (supporting), writingreview and editing (supporting). K.V.methodology (supporting), writingreview and editing (supporting). A.B.Conceptualization (colead), methodology (supporting), review and editing (supporting). H.X.Conceptualization (colead), methodology (colead), writingoriginal draft preparation (lead), writingreview and editing (equal), supervision (lead), project administration (colead), resources (lead). All authors have agreed to the final version of the manuscript.
Funding is acknowledged from the Strategic Research Council of the Academy of Finland for the Sustainable Drug Discovery and Development with End-of-Life Yield project (SUDDEN; decisions number 320210 and 346568) (L.D., M.B., H.X.), from the Doctoral Programme in Chemistry and Molecular Sciences and the Finnish Centre for Artificial Intelligence (K.V.); and from the Drug Discovery and Chemical Biology DDCB-HiLIFE Biocenter Finland research infrastructure (A.L.).
The authors declare no competing financial interest.
§.
also known as Evgeni Grazhdankin.
References
- Jones G., Willett P., Glen R. C., Leach A. R., Taylor R.. Development and Validation of a Genetic Algorithm for Flexible Docking. J. Mol. Biol. 1997;267(3):727–748. doi: 10.1006/jmbi.1996.0897. [DOI] [PubMed] [Google Scholar]
- Verdonk M. L., Cole J. C., Hartshorn M. J., Murray C. W., Taylor R. D.. Improved Protein-Ligand Docking Using GOLD. Proteins. 2003;52(4):609–623. doi: 10.1002/prot.10465. [DOI] [PubMed] [Google Scholar]
- Rarey M., Kramer B., Lengauer T., Klebe G.. A Fast Flexible Docking Method Using an Incremental Construction Algorithm. J. Mol. Biol. 1996;261(3):470–489. doi: 10.1006/jmbi.1996.0477. [DOI] [PubMed] [Google Scholar]
- Friesner R. A., Banks J. L., Murphy R. B., Halgren T. A., Klicic J. J., Mainz D. T., Repasky M. P., Knoll E. H., Shelley M., Perry J. K., Shaw D. E., Francis P., Shenkin P. S.. Glide: A New Approach for Rapid, Accurate Docking and Scoring. 1. Method and Assessment of Docking Accuracy. J. Med. Chem. 2004;47(7):1739–1749. doi: 10.1021/jm0306430. [DOI] [PubMed] [Google Scholar]
- Ewing T. J. A., Makino S., Skillman A. G., Kuntz I. D. D.. DOCK 4.0: Search Strategies for Automated Molecular Docking of Flexible Molecule Databases. J. Comput.-Aided Mol. Des. 2001;15(5):411–428. doi: 10.1023/A:1011115820450. [DOI] [PubMed] [Google Scholar]
- Muegge I., Martin Y. C.. A General and Fast Scoring Function for Protein-Ligand Interactions: A Simplified Potential Approach. J. Med. Chem. 1999;42(5):791–804. doi: 10.1021/jm980536j. [DOI] [PubMed] [Google Scholar]
- Muegge I.. PMF Scoring Revisited. J. Med. Chem. 2006;49(20):5895–5902. doi: 10.1021/jm050038s. [DOI] [PubMed] [Google Scholar]
- Dittrich J., Schmidt D., Pfleger C., Gohlke H.. Converging a Knowledge-Based Scoring Function: DrugScore2018. J. Chem. Inf. Model. 2019;59(1):509–521. doi: 10.1021/acs.jcim.8b00582. [DOI] [PubMed] [Google Scholar]
- Ozrin V. D., Subbotin M. V., Nikitin S. M.. PLASS: Protein-Ligand Affinity Statistical Score--a Knowledge-Based Force-Field Model of Interaction Derived from the PDB. J. Comput.-Aided Mol. Des. 2004;18(4):261–270. doi: 10.1023/B:JCAM.0000046819.20241.16. [DOI] [PubMed] [Google Scholar]
- Sippl M. J.. Boltzmann’s Principle, Knowledge-Based Mean Fields and Protein Folding. An Approach to the Computational Determination of Protein Structures. J. Comput.-Aided. Mol. Des. 1993;7(4):473–501. doi: 10.1007/BF02337562. [DOI] [PubMed] [Google Scholar]
- Sippl M. J.. Calculation of Conformational Ensembles from Potentials of Mean Force: An Approach to the Knowledge-Based Prediction of Local Structures in Globular Proteins. J. Mol. Biol. 1990;213(4):859–883. doi: 10.1016/S0022-2836(05)80269-4. [DOI] [PubMed] [Google Scholar]
- Hamelryck T., Borg M., Paluszewski M., Paulsen J., Frellsen J., Andreetta C., Boomsma W., Bottaro S., Ferkinghoff-Borg J.. Potentials of Mean Force for Protein Structure Prediction Vindicated, Formalized and Generalized. PLoS One. 2010;5(11):e13714. doi: 10.1371/journal.pone.0013714. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Taylor R.. Which Intermolecular Interactions Have a Significant Influence on Crystal Packing? CrystEngComm. 2014;16(30):6852–6865. doi: 10.1039/C4CE00452C. [DOI] [Google Scholar]
- Kuhn B., Gilberg E., Taylor R., Cole J., Korb O.. How Significant Are Unusual Protein-Ligand Interactions? Insights from Database Mining. J. Med. Chem. 2019;62:10441–10455. doi: 10.1021/acs.jmedchem.9b01545. [DOI] [PubMed] [Google Scholar]
- Mooij W. T. M., Verdonk M. L.. General and Targeted Statistical Potentials for Protein-Ligand Interactions. Proteins. 2005;61(2):272–287. doi: 10.1002/prot.20588. [DOI] [PubMed] [Google Scholar]
- Gohlke H., Hendlich M., Klebe G.. Knowledge-Based Scoring Function to Predict Protein-Ligand Interactions. J. Mol. Biol. 2000;295(2):337–356. doi: 10.1006/jmbi.1999.3371. [DOI] [PubMed] [Google Scholar]
- Verdonk M. L., Ludlow R. F., Giangreco I., Rathi P. C.. Protein-Ligand Informatics Force Field (PLIff): Toward a Fully Knowledge Driven “Force Field” for Biomolecular Interactions. J. Med. Chem. 2016;59(14):6891–6902. doi: 10.1021/acs.jmedchem.6b00716. [DOI] [PubMed] [Google Scholar]
- Rantanen V. V., Denessiouk K. A., Gyllenberg M., Koski T., Johnson M. S.. A Fragment Library Based on Gaussian Mixtures Predicting Favorable Molecular Interactions. J. Mol. Biol. 2001;313(1):197–214. doi: 10.1006/jmbi.2001.5023. [DOI] [PubMed] [Google Scholar]
- Kuhn B., Fuchs J. E., Reutlinger M., Stahl M., Taylor N. R.. Rationalizing Tight Ligand Binding through Cooperative Interaction Networks. J. Chem. Inf. Model. 2011;51(12):3180–3198. doi: 10.1021/ci200319e. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Tosstorff A., Cole J. C., Bartelt R., Kuhn B.. Augmenting Structure-Based Design with Experimental Protein-Ligand Interaction Data: Molecular Recognition, Interactive Visualization, and Rescoring. ChemMedChem. 2021;16(22):3428–3438. doi: 10.1002/cmdc.202100387. [DOI] [PubMed] [Google Scholar]
- Borrel A., Camproux A. C., Xhaard H.. Characterization of Ionizable Groups’ Environments in Proteins and Protein-Ligand Complexes through a Statistical Analysis of the Protein Data Bank. ACS Omega. 2017;2(10):7359–7374. doi: 10.1021/acsomega.7b00739. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zhang Y., Borrel A., Ghemtio L., Regad L., Gennäs G. B. A., Camproux A. C., Yli-Kauhaluoma J., Xhaard H.. Structural Isosteres of Phosphate Groups in the Protein Data Bank. J. Chem. Inf. Model. 2017;57(3):499–516. doi: 10.1021/acs.jcim.6b00519. [DOI] [PubMed] [Google Scholar]
- Briand M. A., Dreano L., Legehar A., Grazhdankin E., Ghemtio L., Xhaard H.. Exploring Cooperative Molecular Contacts Using a PostgreSQL Database System. Mol. Inf. 2023;42(5):2200235. doi: 10.1002/MINF.202200235. [DOI] [PubMed] [Google Scholar]
- Bayer, M. SQLAlchemy. In The Architecture of Open Source Applications Vol. II: Structure, Scale, and a Few More Fearless Hacks; aosabook.org, 2012. [Google Scholar]
- Harris C. R., Millman K. J., van der Walt S. J., Gommers R., Virtanen P., Cournapeau D., Wieser E., Taylor J., Berg S., Smith N. J., Kern R., Picus M., Hoyer S., van Kerkwijk M. H., Brett M., Haldane A., del Río J. F., Wiebe M., Peterson P., Gérard-Marchant P., Sheppard K., Reddy T., Weckesser W., Abbasi H., Gohlke C., Oliphant T. E.. Array Programming with NumPy. Nature. 2020;585:357–362. doi: 10.1038/s41586-020-2649-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Schrödinger, L. ; W, D. . The PyMOL Molecular Graphics System, Version 2.0 Schrödinger, LLC; 2023. http://www.pymol.org/pymol. [Google Scholar]
- Pedregosa F., Varoquaux G., Gramfort A., Michel V., Thirion B., Grisel O., Blondel M., Prettenhofer P., Weiss R., Dubourg V., Vanderplas J., Passos A., Cournapeau D., Brucher M., Perrot M., Duchesnay É.. Scikit-Learn: Machine Learning in Python. J. Mach. Learn. Res. 2011;12:2825–2830. [Google Scholar]
- R: A Language and Environment for Statistical Computing R Core Team: Vienna, Austria; 2021. https://www.R-project.org/. (accessed February 25, 2023). [Google Scholar]
- Deng H., Jia Y., Zhang Y.. 3DRobot: Automated Generation of Diverse and Well-Packed Protein Structure Decoys. Bioinformatics. 2016;32(3):378–387. doi: 10.1093/bioinformatics/btv601. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Olechnovič K., Venclovas Č.. VoroMQA: Assessment of Protein Structure Quality Using Interatomic Contact Areas. Proteins. 2017;85(6):1131–1145. doi: 10.1002/prot.25278. [DOI] [PubMed] [Google Scholar]
- Sato R., Ishida T.. Protein Model Accuracy Estimation Based on Local Structure Quality Assessment Using 3D Convolutional Neural Network. PLoS One. 2019;14(9):e0221347. doi: 10.1371/journal.pone.0221347. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Shen M., Sali A.. Statistical Potential for Assessment and Prediction of Protein Structures. Protein Sci. 2006;15(11):2507–2524. doi: 10.1110/ps.062416606. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zhang J., Zhang Y.. A Novel Side-Chain Orientation Dependent Potential Derived from Random-Walk Reference State for Protein Fold Selection and Structure Prediction. PLoS One. 2010;5(10):e15386. doi: 10.1371/journal.pone.0015386. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Šali A., Blundell T. L.. Comparative Protein Modelling by Satisfaction of Spatial Restraints. J. Mol. Biol. 1993;234(3):779–815. doi: 10.1006/jmbi.1993.1626. [DOI] [PubMed] [Google Scholar]
- Sehnal D., Bittrich S., Deshpande M., Svobodová R., Berka K., Bazgier V., Velankar S., Burley S. K., Koča J., Rose A. S.. Mol* Viewer: Modern Web App for 3D Visualization and Analysis of Large Biomolecular Structures. Nucleic Acids Res. 2021;49(W1):W431–W437. doi: 10.1093/nar/gkab314. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Rose A. S., Hildebrand P. W.. NGL Viewer: A Web Application for Molecular Visualization. Nucleic Acids Res. 2015;43(W1):W576–W579. doi: 10.1093/nar/gkv402. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Salentin S., Schreiber S., Haupt V. J., Adasme M. F., Schroeder M.. PLIP: Fully Automated Protein-Ligand Interaction Profiler. Nucleic Acids Res. 2015;43(W1):W443–W447. doi: 10.1093/nar/gkv315. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ballester P. J., Mitchell J. B. O.. A Machine Learning Approach to Predicting Protein-Ligand Binding Affinity with Applications to Molecular Docking. Bioinformatics. 2010;26(9):1169–1175. doi: 10.1093/bioinformatics/btq112. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
The script that allows calculation of the fitness score and the preference score from a pdb structure is available at https://github.com/DreanoLoic/Fitness_score.git. The output is an annotated PDB file, a PyMOL session, and a csv table. The script can handle the conversion to Sybyl type to work with ligands, which will be described elsewhere.







