data-pipeline
Prepare and validate AlphaFold 3 mmCIF/PDB, MSA, template, crop, sampling, and large-dataset curation inputs without performing unsafe acquisition or mutation.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- data-pipeline
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Prepare and validate AlphaFold 3 mmCIF/PDB, MSA, template, crop, sampling, and large-dataset curation inputs without performing unsafe acquisition or mutation.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/dataset-curation.md9.7 KB
- 参考文档references/msa-and-templates.md9.3 KB
- 参考文档references/pdb-mmcif-workflows.md11.9 KB
- 参考文档references/troubleshooting.md11.4 KB
- 参考文档references/weighted-sampling.md7.2 KB
- 脚本scripts/validate_data_layout.py17.6 KB
03 SKILL.md 正文
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.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).