﻿# Chai-1 aligned.pqt: MSA source and pairing keys are model inputs

Preserve Chai-1 alignment query identity, source_database features, cross-chain pairing keys, and conversion rules when preparing aligned.pqt inputs.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-chai1-aligned-pqt-msa-source-pairing/
Language: en

## An alignment table contains more than sequence hits

A complex-prediction pipeline may convert existing alignments into Chai-1 input and retain only the sequence strings. That conversion can discard information the interface actually uses. Equal hit sequences do not establish equal conditioning when database source labels or cross-chain pairing differ.

The [Chai-1 workflow](https://raw.githubusercontent.com/chaidiscovery/chai-lab/main/README.md) supports additional MSA information through its documented input path. Keep the package revision with the conversion procedure because the repository also exposes development interfaces.

## The query anchors the table

The [MSA format documentation](https://raw.githubusercontent.com/chaidiscovery/chai-lab/main/examples/msas/README.md) describes `aligned.pqt` as an augmented alignment table. Its query row identifies the sequence to which the hits belong. Mixing hits from different queries into a shared table does not become valid merely because their columns can be padded to a common width.

Preserve the exact query sequence and alignment relationship. A cache keyed only by a friendly protein name can silently attach an old MSA after the input sequence changes.

## Source labels and comments have different semantics

The documented `source_database` column is featurized, while `comment` is retained for readability. Replacing source labels with arbitrary descriptive text is therefore not equivalent to editing a comment.

A conversion manifest should state how source annotations were derived. If a source is mapped into a supported category, retain the original annotation separately so that this modeling choice remains visible. Do not describe guessed source labels as observed database provenance.

## Pairing keys connect chains

The [alignment parser](https://raw.githubusercontent.com/chaidiscovery/chai-lab/main/chai_lab/data/parsing/msas/aligned_pqt.py) and format guide define pairing information used across sequences in a complex. A pairing key expresses a relationship, not simply a globally unique row identifier.

Check whether the source alignment annotations support the intended pairing. Copying the same key to unrelated hits can create an artificial association. The [data identity guide](/journal/data-guide-coco-instance-caption-identities/) develops the broader principle that related records need explicit, meaningful identifiers.

## Validate conversion as a model change

Compare retained hit rows, query identity, source features, and pairing relations before and after conversion. A small inspected complex is more informative than checking that a Parquet file opens successfully.

The [artifact validation guide](/journal/safetensors-artifact-validation/) motivates versioning this sidecar input with the checkpoint. A correctly prepared alignment supports a reproducible computational prediction; it does not establish that the resulting complex has been experimentally verified.
