﻿# PDB residue numbers: author identifiers are not tensor row positions

Join residue annotations to PDB structures using explicit author and label numbering, insertion codes and observed-coordinate mapping instead of assuming every residue number is an array index.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-pdb-author-label-residue-index-mapping/
Language: en

## Identify the numbering system before joining

The [PDB primary-sequence guide](https://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/primary-sequences) distinguishes sequential numbering and author-provided residue numbering. A site annotation from a paper may use a different identifier system from a model's coordinate tensor. Record that system before joining labels. Subtracting a constant offset can appear to work on one structure while failing on another containing insertions, omissions or a different construct. A correct residue type at one inspected position does not validate the entire mapping.

## Preserve author identifiers as identifiers

The [author-number dictionary](https://mmcif.wwpdb.org/dictionaries/mmcif_pdbx_v50.dic/Items/_atom_site.auth_seq_id.html) defines the author residue identifier. Treat it with its chain and insertion context rather than forcing it into a globally unique numeric row key. Repeated-looking numbers can have different meanings in different chains or insertion positions. A lossy conversion that discards those fields may merge distinct residues before the model ever receives the structure.

## Keep sequence numbering separate from coordinate rows

The [label-number dictionary](https://mmcif.wwpdb.org/dictionaries/mmcif_pdbx_v50.dic/Items/_atom_site.label_seq_id.html) defines the sequence-oriented identifier used in the coordinate schema. A graph loader may still retain only residues with selected observed atoms. Its compact row positions therefore require a separate mapping. Missing coordinate observations should not cause all subsequent sequence annotations to shift onto neighboring residues. Preserve a missing-coordinate state rather than treating absence from the compact tensor as absence from the underlying polymer sequence.

## Resolve atom selection and alternative locations explicitly

Building one node per residue requires a rule for atom selection and any alternative coordinate states. Apply that rule before constructing the final residue-to-node map. Otherwise a table built from all atom rows can disagree with the reduced graph after filtering. For an inspection entry, trace an annotated residue through chain, sequence identifier, author identifier and selected coordinate row. Validate the semantic association, not merely that the selected tensor index is within bounds.

## Export the mapping with the model examples

Keep residue keys and mapping tables alongside graph tensors, predicted labels and visualizations. A later report should be able to recover the original residue identity from every model output. The existing [coordinate guide](/journal/data-guide-image-exif-box-coordinate/) and [entity-group guide](/journal/data-guide-entity-group-split-design/) support related geometry and identity checks. A protein-site benchmark becomes interpretable only when predictions can be attached to the intended biological positions without guessing which numbering convention an intermediate tool used.
