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

MapFormula / ValueUse
binary contactgraph edge, classification target
distance mapgeometry supervision and comparison
binned distanceclass over distance intervalsstructure prediction target
orientation-aware mapdistance plus angles/framesricher fold constraints
inter-chain contactresidue pairs across chainscomplex/interface modeling
pocket-ligand contactresidue/atom vs ligand atomSBDD 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:

SourceRisk
experimental structuremay overlap with benchmark template or homolog
predicted structureteacher-model leakage if used as label or input
MSA-derived contactsfamily-level information can cross splits
ligand-defined pocket contactsunavailable in blind deployment
missing residues treated as non-contactfalse 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?