Data pipeline
Use this sub-skill when the task involves a local structure file, PDB dataset
layout, MSA or template features, crop selection, weighted PDB sampling, or a
plan for PDB/AFDB/CCD curation. Start with the safe preflight helper, then use
the smallest applicable reference:
- PDB and mmCIF workflows for
PDBInput,
PDBDataset, PDBDistillationDataset, parsing, writing, assembly choice,
and conversion.
- MSA and templates for A3M/HHR/M8 layout,
pairing, cutoffs, and Kalign.
- Dataset curation for split dates, CCD,
AFDB/PDB scale, filtering, clustering, and cache planning.
- Weighted sampling for cluster mappings,
formulas, and sampler-to-dataset integration.
- Troubleshooting for failure recovery and
stop conditions.
Run scripts/validate_data_layout.py --help before using it. The helper only
checks explicitly supplied local paths, extensions, naming/layout conventions,
CSV mapping headers/IDs, dates, and crop/config consistency. It never
imports the package, downloads, parses-and-rewrites, filters, clusters,
launches workers, starts a server, runs Kalign, or trains a model.
Keep this boundary explicit: model forward and sampling belong to
model-inference; generic Alphafold3Input construction and atom conversion
belong to input-representation; Trainer/YAML ownership belongs to
training-configuration; CLI or interactive app operation belongs to
cli-serving. This sub-skill can produce the PDB-derived features those
areas consume, but does not execute their work.
Safe operating sequence
- Preflight the intended structure, MSA, template, CCD, and cluster paths with
the bundled validator.
- Confirm whether the input is curated PDB, arbitrary mmCIF, or AFDB
distillation data; do not infer this from a filename alone.
- Choose training/validation/inference/distillation semantics and an explicit
crop, length, MSA, template, and cutoff policy.
- Only after a human-approved acquisition and resource plan, load
PDBInput/a dataset and convert to atom inputs. Treat the curation and
distillation acquisition interfaces as reference-only because they are
networked, mutating, multiprocessing, or dataset-scale.
- Record missing optional features as intentional fallbacks, not as silently
verified biological coverage.
1---2name: data-pipeline-23description: "Prepare and validate AlphaFold 3 mmCIF/PDB, MSA, template, crop,4 sampling, and large-dataset curation inputs without performing unsafe5 acquisition or mutation."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/data-pipeline-29 disco-role: operating10license: MIT11---1213# Data pipeline1415Use this sub-skill when the task involves a local structure file, PDB dataset16layout, MSA or template features, crop selection, weighted PDB sampling, or a17plan for PDB/AFDB/CCD curation. Start with the safe preflight helper, then use18the smallest applicable reference:1920- [PDB and mmCIF workflows](references/pdb-mmcif-workflows.md) for `PDBInput`,21 `PDBDataset`, `PDBDistillationDataset`, parsing, writing, assembly choice,22 and conversion.23- [MSA and templates](references/msa-and-templates.md) for A3M/HHR/M8 layout,24 pairing, cutoffs, and Kalign.25- [Dataset curation](references/dataset-curation.md) for split dates, CCD,26 AFDB/PDB scale, filtering, clustering, and cache planning.27- [Weighted sampling](references/weighted-sampling.md) for cluster mappings,28 formulas, and sampler-to-dataset integration.29- [Troubleshooting](references/troubleshooting.md) for failure recovery and30 stop conditions.3132Run `scripts/validate_data_layout.py --help` before using it. The helper only33checks explicitly supplied local paths, extensions, naming/layout conventions,34CSV mapping headers/IDs, dates, and crop/config consistency. It never35imports the package, downloads, parses-and-rewrites, filters, clusters,36launches workers, starts a server, runs Kalign, or trains a model.3738Keep this boundary explicit: model forward and sampling belong to39`model-inference`; generic `Alphafold3Input` construction and atom conversion40belong to `input-representation`; Trainer/YAML ownership belongs to41`training-configuration`; CLI or interactive app operation belongs to42`cli-serving`. This sub-skill can produce the PDB-derived features those43areas consume, but does not execute their work.4445## Safe operating sequence46471. Preflight the intended structure, MSA, template, CCD, and cluster paths with48 the bundled validator.492. Confirm whether the input is curated PDB, arbitrary mmCIF, or AFDB50 distillation data; do not infer this from a filename alone.513. Choose training/validation/inference/distillation semantics and an explicit52 crop, length, MSA, template, and cutoff policy.534. Only after a human-approved acquisition and resource plan, load54 `PDBInput`/a dataset and convert to atom inputs. Treat the curation and55 distillation acquisition interfaces as reference-only because they are56 networked, mutating, multiprocessing, or dataset-scale.575. Record missing optional features as intentional fallbacks, not as silently58 verified biological coverage.