﻿# LigandMPNN atomic context: the parsed atoms are part of the conditioning

Preserve ligand atom identities, coordinates, parser selections, and context flags when comparing LigandMPNN sequence-design results and confidence summaries.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-ligandmpnn-atomic-context-parser-provenance/
Language: en

## The protein file is not the complete experiment description

A sequence-design comparison may keep the protein backbone unchanged while preparing its surrounding ligand differently. Removing nonprotein atoms during cleanup changes the information available to an atomic-context model. The resulting sequences therefore belong to different conditioning experiments, even if the protein coordinates match.

The [LigandMPNN repository](https://github.com/dauparas/LigandMPNN) documents atomic-context controls. Record the selected model type as well as the input structure rather than treating every sequence-design checkpoint as interchangeable.

## Coordinates need chemical identities

The [data utilities](https://raw.githubusercontent.com/dauparas/LigandMPNN/main/data_utils.py) construct features from parsed atoms and their element identities. A coordinate array without the corresponding atom metadata is incomplete. Reordering positions without reordering elements creates a different input while preserving tensor shapes.

Inspect the retained atoms after parsing. Preserve original identifiers, selected atoms, coordinates, and parsing decisions together. The [tensor-axis guide](/journal/tensor-axes-batch-sequence-hidden/) explains why structural compatibility does not prove that aligned arrays still describe the same objects.

## Context controls should be named in comparisons

The documented interface can mask ligand context and can use fixed-residue side-chain atoms as additional context. Those switches alter the conditioning domain; they are not merely output-format preferences.

The [runner](https://raw.githubusercontent.com/dauparas/LigandMPNN/main/run.py) binds model selection and context settings into inference. A comparison should change the intended condition explicitly and retain the rest of the setup. Equal seeds cannot compensate for a changed input geometry or atom set.

## A score-region cutoff has a narrower role

The repository distinguishes the cutoff used for ligand-related output summaries from the full meaning of atomic conditioning. A parameter affecting which residues contribute to a reported summary should not automatically be interpreted as changing every model interaction.

Record score definitions with exported sequences. A changed summary can result from changing the reporting domain, so distinguish that from a changed generated sequence or distribution. This avoids attributing a metadata change to model quality.

## Audit the input before interpreting candidates

A useful audit compares the original and parsed atom inventories, then verifies that context flags and model type match the intended experiment. Store this manifest beside generated sequences and structural outputs.

The [artifact validation guide](/journal/safetensors-artifact-validation/) motivates preserving related inputs with the weights. Computational consistency supports reproducible research; it does not establish binding, stability, or experimental biological activity of any generated candidate.
