算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
binder-design【设计与创意】Design protein-protein binders with RFdiffusion, including target/binder contig ordering, hotspot residues, flexible peptide targets, scaffold-guided PPI runs, and downstream backbone assessment boundaries.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants RFdiffusion commands or debugging help for protein-protein binder generation against a target PDB, including hotspot-guided interface design, flexible peptide targets, or fold/scaffold-conditioned binders.
Route to binder-design for:
ppi.hotspot_res selection, formatting, and failure checks./0 chain breaks.contigmap.inpaint_str.contigmap.inpaint_str_helix, contigmap.inpaint_str_strand, or contigmap.inpaint_str_loop.scaffoldguided.scaffoldguided=True, target tensors, and scaffold directories.Route elsewhere when:
motif-scaffolding sub-skill.scaffold-guided-design sub-skill.rfdiffusion skill and its matching sub-skill.Collect these before drafting a command:
.pdb and .trb files.A1-150 or B10-35.70-100 for examples, or a fixed range like 100-100.A59,A83,A91.Use the bundled helper for safe command assembly when the user gives the needed fields:
python sub-skills/binder-design/scripts/make_binder_command.py \
--input-pdb target.pdb \
--output-prefix outputs/binder \
--target-contig A1-150 \
--binder-length 70-100 \
--hotspots A59,A83,A91 \
--num-designs 10 \
--noise-scale 0
The helper prints a run_inference.py command and performs lightweight validation for hotspot and contig formatting. It does not require RFdiffusion model weights and is safe to run for command drafting.
For a fixed target with a sampled binder length, put target residues first, then a /0 chain break, then the binder length range:
run_inference.py \
inference.output_prefix=outputs/design_ppi \
inference.input_pdb=target.pdb \
'contigmap.contigs=[A1-150/0 70-100]' \
'ppi.hotspot_res=[A59,A83,A91]' \
inference.num_designs=10 \
denoiser.noise_scale_ca=0 \
denoiser.noise_scale_frame=0
This pattern selects RFdiffusion's complex checkpoint automatically when hotspots are supplied and scaffold-guided mode is off. The generated binder region is sequence-masked; output backbones may contain poly-glycine or placeholder sequence and need downstream sequence design.
Hotspots guide where the binder should contact the target:
'ppi.hotspot_res=[A30,A33,A34]'.If hotspots are omitted while a complex model is selected, RFdiffusion can warn that a hotspot-trained model is being used without hotspots. For binder design, treat that as a sign to add hotspots or reconsider the task.
RFdiffusion runtime scales with system size, so large receptors should usually be cropped before binder design. Preserve enough target context around the intended site, avoid artificial hydrophobic patches, and keep residue numbering consistent with the hotspot list and contig. If the user supplies a cropped PDB, always ask whether hotspot residue numbers refer to the cropped file.
Binder examples often lower denoiser noise to improve design quality:
denoiser.noise_scale_ca=0 denoiser.noise_scale_frame=0 for deterministic low-noise example-style PPI runs.denoiser.noise_scale_ca=0.5 denoiser.noise_scale_frame=0.5 for a compromise that keeps more diversity.1 and can be used for exploration, but may be less optimal for PPI quality.Lower noise can reduce diversity. Suggest short pilot batches before large campaigns.
Use flexible peptide mode when the peptide target conformation should be diffused instead of fixed:
run_inference.py \
inference.output_prefix=outputs/flexible_peptide \
inference.input_pdb=peptide_target.pdb \
'contigmap.contigs=[B10-35/0 70-100]' \
'ppi.hotspot_res=[B28,B29]' \
inference.num_designs=10 \
'contigmap.inpaint_str=[B10-35]'
contigmap.inpaint_str masks structure for the peptide residues, allowing RFdiffusion to design the binder while predicting a compatible peptide conformation. This triggers an inpainting-capable checkpoint.
For secondary-structure intent, enable scaffold-guided mode and specify helix, strand, or loop masks:
run_inference.py \
inference.output_prefix=outputs/flexible_peptide_helix \
inference.input_pdb=peptide_target.pdb \
'contigmap.contigs=[70-100/0 B165-178]' \
inference.num_designs=10 \
'contigmap.inpaint_str=[B165-178]' \
scaffoldguided.scaffoldguided=True \
'contigmap.inpaint_str_helix=[B165-178]'
Do not provide both a scaffold directory and per-residue secondary-structure flags in the same scaffold-guided run; RFdiffusion asserts that these modes are mutually exclusive.
Use scaffold-guided PPI when the binder topology should come from scaffold files:
run_inference.py \
scaffoldguided.target_path=target.pdb \
inference.output_prefix=outputs/scaffolded_binder \
scaffoldguided.scaffoldguided=True \
scaffoldguided.target_pdb=True \
'ppi.hotspot_res=[A59,A83,A91]' \
scaffoldguided.target_ss=target_ss.pt \
scaffoldguided.target_adj=target_adj.pt \
scaffoldguided.scaffold_dir=scaffolds/ \
inference.num_designs=10 \
denoiser.noise_scale_ca=0 \
denoiser.noise_scale_frame=0
For scaffold tensor creation, route to scaffold-guided-design. In this sub-skill, only explain how to connect already prepared target/scaffold inputs into a PPI run.
PPI workflows can use guiding potentials, such as compactness via binder_ROG, but repo guidance cautions that potentials can interact oddly with hotspot residues. Start with no potentials as a baseline unless the user has a specific reason. If adding a compactness potential, run a small pilot and compare interface quality and failure modes before scaling.
RFdiffusion produces backbone candidates, not a complete binder validation result. After generation:
See references/downstream-assessment.md for distilled metrics and fallback assessment when STRIDE is unavailable.
Before giving a command, verify:
'contigmap.contigs=[...]' and 'ppi.hotspot_res=[...]'./0 between target and binder chains.inference.output_prefix points to a writable output location.references/workflows.md for concrete binder, flexible peptide, and scaffold-guided PPI workflows.references/downstream-assessment.md for backbone triage metrics and optional sequence/prediction boundaries.references/troubleshooting.md for Hydra, contig, hotspot, model-weight, backend, and scaffold-mode failures.