算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
macrocycle-design【设计与创意】Build RFpeptides macrocyclic peptide monomer and binder RFdiffusion commands, including cyclic flags, macrocycle contigs, target/binder chain layout, hotspot formatting, and validation checks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants RFdiffusion/RFpeptides commands or debugging help for macrocyclic peptide generation, either as a standalone cyclic monomer or as a cyclic peptide binder against a protein target.
Route to macrocycle-design for:
12-18.inference.cyclic=True, inference.cyc_chains, and macrocycle-specific chain layout checks.diffuser.T=50.Route elsewhere when:
../binder-design/SKILL.md.inference.symmetry; use the symmetric-oligomer sub-skill if present.../unconditional-generation/SKILL.md.Collect these before drafting a command:
run_inference.py launcher or equivalent RFdiffusion entry point..pdb and .trb files.12-18, and which generated chain(s) should be cyclic.Detailed templates are in references/workflows.md.
Standalone macrocyclic peptide monomer:
run_inference.py \
--config-name base \
inference.output_prefix=outputs/macro_monomer/design \
inference.num_designs=10 \
'contigmap.contigs=[12-18]' \
inference.cyclic=True \
diffuser.T=50 \
inference.cyc_chains='a'
Macrocyclic peptide binder:
run_inference.py \
--config-name base \
inference.output_prefix=outputs/macro_binder/design \
inference.num_designs=10 \
'contigmap.contigs=[12-18 A3-117/0]' \
inference.input_pdb=target.pdb \
inference.cyclic=True \
diffuser.T=50 \
inference.cyc_chains='a' \
'ppi.hotspot_res=[A51,A52,A50,A48,A62,A65]'
Keep Hydra list-like values in single quotes. If the user's shell or launcher needs escaped inner quotes for hotspot entries, use the equivalent form documented in references/workflows.md.
RFpeptides macrocycle runs need both cyclic settings:
inference.cyclic=True declares that at least one chain should be designed as cyclic.inference.cyc_chains='a' names the generated chain IDs to cyclize as a lowercase string.inference.cyc_chains='abcd' only when the contig creates compatible generated chains for those IDs.inference.symmetry=cN; symmetry oligomer design is a different workflow.The default base config includes inference.cyclic=False and inference.cyc_chains='a', so macrocycle commands must explicitly turn inference.cyclic=True on.
Macrocycle contigs follow RFdiffusion's normal contig syntax but the cyclic chain selection makes chain ordering important:
'contigmap.contigs=[12-18]'; this generated chain is chain a for inference.cyc_chains='a'./0, for example 'contigmap.contigs=[12-18 A3-117/0]'.RFpeptides example data notes that the GABARAP target chain A residue indices were shifted by +2 relative to PDB ID 7zkr; treat that as a warning pattern, not as a universal rule for user targets.
Use hotspots only for binder workflows with a target:
'ppi.hotspot_res=[A51,A52,A50,A48,A62,A65]'.ppi.hotspot_res=[\'A51\',\'A52\'], keep the whole override shell-safe and do not let the shell strip brackets or commas.For general non-cyclic hotspot strategy, route to binder-design; keep this sub-skill focused on the macrocycle-specific flags and layout.
Before handing off a macrocycle command, check:
inference.cyclic=True is present.inference.cyc_chains names the intended generated chain(s), usually 'a' for single macrocycles.diffuser.T=50 is set for RFpeptides-style examples unless the user deliberately changes the diffusion schedule./0 only where a target/binder chain break is intended.inference.cyc_chains.inference.output_prefix is a path prefix, not just a directory.After a successful run, expect RFdiffusion-style outputs:
output_prefix_0.pdb, output_prefix_1.pdb, and so on for final backbones.output_prefix_0.trb metadata files containing the resolved config and contig mappings.traj/ directory when inference.write_trajectory=True.Inspect final PDBs to confirm the cyclic peptide is the intended generated chain and that binder outputs include target and peptide chains in the expected layout. Backbone generation does not prove binding; macrocyclic binders still need downstream sequence design and structure/interface assessment.
references/workflows.md for monomer and binder command templates.references/troubleshooting.md for chain, hotspot, Hydra, numbering, and validation failures.