Contact Map
A contact map records which residue pairs are close in 3D space. It is a compact structural representation used for folding, structure comparison, and graph construction.
Given residue coordinates , a binary contact map is:
where is a distance cutoff.
A soft distance map keeps the continuous geometry:
Contact maps are invariant to global rigid motion:
for rotation and translation . They discard global orientation and much of local frame information.
Contact Definition
The definition of changes the map:
- : simple backbone-based distance.
- : common for residue contact maps, with glycine handled specially.
- Minimum heavy-atom distance: side-chain-aware but sensitive to atom completeness.
- Residue center: coarse but stable for graph construction.
Contacts can also exclude local sequence neighbors:
so that long-range structural contacts are not dominated by adjacent residues.
Map Types
| Map | Formula / Value | Use |
|---|---|---|
| binary contact | graph edge, classification target | |
| distance map | geometry supervision and comparison | |
| binned distance | class over distance intervals | structure prediction target |
| orientation-aware map | distance plus angles/frames | richer fold constraints |
| inter-chain contact | residue pairs across chains | complex/interface modeling |
| pocket-ligand contact | residue/atom vs ligand atom | SBDD interaction features |
The map type should match the downstream claim. A binary contact map cannot fully recover chirality, side-chain orientation, or atom-level clashes.
Loss and Metrics
For binary contact prediction, a common loss is cross-entropy over residue pairs:
Because contacts are sparse, evaluation often uses top-, top-, precision, or long-range contact precision rather than plain accuracy.
For distance maps, regression or binned classification can be used:
where should respect missing residues and unresolved regions.
Use in Models
Contact maps can be:
- prediction targets
- graph edges
- structure comparison summaries
- constraints for folding or refinement
- diagnostic views for sequence-structure models
Before building a contact map from coordinates, verify Residue indexing and Protein structure cleaning.
Leakage and Preprocessing
Contact maps derived from experimental or predicted structures can leak template information:
| Source | Risk |
|---|---|
| experimental structure | may overlap with benchmark template or homolog |
| predicted structure | teacher-model leakage if used as label or input |
| MSA-derived contacts | family-level information can cross splits |
| ligand-defined pocket contacts | unavailable in blind deployment |
| missing residues treated as non-contact | false negatives from unresolved structure |
Checks
- Which atom represents a residue: , , backbone center, or all-atom minimum?
- What cutoff defines contact?
- Are sequence-neighbor contacts separated from long-range contacts?
- Does the map ignore chirality, orientation, or side-chain geometry needed by the task?
- Are missing residues masked rather than treated as far-away residues?
- Is the contact definition identical across train, validation, test, and inference?
- Is the contact map an input, target, metric, graph edge rule, or diagnostic?
- Are local, medium-range, long-range, and inter-chain contacts separated when needed?
- Does the split prevent homolog/template leakage?