算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
motif-scaffolding【设计与创意】Design scaffolds around fixed motifs or active sites with RFdiffusion contigs, target-chain chain breaks, sequence/structure masking, and checkpoint overrides.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a user needs RFdiffusion to scaffold motif residues from an input PDB, preserve or redesign parts of a motif, include a fixed target chain, or choose a motif-specific checkpoint.
/0 chain-break syntax.contigmap.inpaint_seq or motif structure with contigmap.inpaint_str.contigmap.length.ActiveSite_ckpt.pt, Complex_base_ckpt.pt, or automatic inpaint checkpoints.ppi.hotspot_res, route to the binder-design sub-skill.../scaffold-guided-design/SKILL.md.../unconditional-generation/SKILL.md.inference.input_pdb: a PDB containing every referenced motif, target, and ligand/substrate residue.10-40; RFdiffusion samples a value each design./0 with a required space after 0.$OUT_DIR/motif_run.Run from an RFdiffusion installation where rfdiffusion imports and the installed run_inference.py launcher is available:
run_inference.py \
inference.output_prefix="$OUT_DIR/motif_scaffold" \
inference.input_pdb="$INPUT_PDB" \
inference.model_directory_path="$MODEL_DIR" \
inference.num_designs=10 \
'contigmap.contigs=[10-40/A163-181/10-40]'
Keep Hydra list-like overrides in single quotes. Do not let the shell interpret brackets, commas, spaces, or embedded quotes.
A10-25 for residues 10 through 25 on chain A from inference.input_pdb.5-15 for a generated segment whose length is sampled independently each design.5-15/A10-25/30-40 to build N-terminal and C-terminal scaffold segments around one motif.A25-109/0 0-70/B17-29/0-70 to keep target chain A25-109 separate from a generated chain that contains motif B17-29.contigmap.length=70-120 when variable segment ranges must produce a generated chain in a total length window.10-100/A1083-1083/10-100/A1051-1051/10-100.See references/contig-patterns.md for validated patterns and interpretation rules.
10-40/A163-181/10-40.contigmap.inpaint_seq for nonessential motif residues that should have masked amino-acid identity./0 and use a complex checkpoint when needed.inference.ckpt_override_path=$MODEL_DIR/ActiveSite_ckpt.pt.contigmap.inpaint_str when coordinates for selected input residues should be hidden while preserving sequence context.Detailed commands are in references/workflows.md.
$MODEL_DIR/Base_ckpt.pt via RFdiffusion's automatic checkpoint choice.contigmap.inpaint_seq, contigmap.inpaint_str, or contigmap.provide_seq triggers an inpaint-capable checkpoint automatically unless inference.ckpt_override_path is set.inference.ckpt_override_path=$MODEL_DIR/Complex_base_ckpt.pt when the complex-finetuned model is desired.inference.ckpt_override_path=$MODEL_DIR/ActiveSite_ckpt.pt to reduce motif drift.contigmap.inpaint_seq masks amino-acid identities for selected input residues, letting RFdiffusion reason over better identities while keeping the motif coordinates in context.'contigmap.inpaint_seq=[A163-168/A170-171/A179]'.contigmap.inpaint_str masks structure for selected input residues and uses an inpaint-capable checkpoint./0 token creates a 200-residue index jump so RFdiffusion treats following residues as a separate chain./0 is semantically important because contig parsing splits receptor and inpaint blocks by whitespace./0 is treated as a receptor/fixed chain.contigmap.length applies to the generated/inpaint chain length, not necessarily fixed receptor length.ppi.hotspot_res, switch to binder-design guidance rather than this sub-skill alone.contigmap.contigs, contigmap.inpaint_seq, and contigmap.inpaint_str./0 , not /0/ or /0 without the separating space when a new block follows.contigmap.length is compatible with the generated segment ranges; incompatible ranges can loop and exit with a length error.inference.ckpt_override_path or the automatically selected file under inference.model_directory_path.*.pdb and *.trb; the .trb records the sampled contig and residue mappings.ActiveSite_ckpt.pt.inference.model_directory_path=$MODEL_DIR or pass the correct inference.ckpt_override_path./0 chain-break syntax and confirm the fixed target block is chain-prefixed.See references/troubleshooting.md for diagnosis details.
*.pdb contains backbone design output; designed residues are written as glycine while motif residues can retain identity context.*.trb stores config, sampled contig, mappings such as motif input/output indices, and inpaint masks.traj/ contains reverse-ordered trajectory PDBs when inference.write_trajectory=True..trb mappings for downstream motif alignment, sequence design, and filtering.Use these as templates after replacing paths:
run_inference.py \
inference.output_prefix="$OUT_DIR/design_motifscaffolding" \
inference.input_pdb="$INPUT_PDB" \
inference.model_directory_path="$MODEL_DIR" \
'contigmap.contigs=[10-40/A163-181/10-40]' \
inference.num_designs=10
run_inference.py \
inference.output_prefix="$OUT_DIR/design_motif_with_target" \
inference.input_pdb="$INPUT_PDB" \
inference.model_directory_path="$MODEL_DIR" \
'contigmap.contigs=[A25-109/0 0-70/B17-29/0-70]' \
contigmap.length=70-120 \
inference.ckpt_override_path="$MODEL_DIR/Complex_base_ckpt.pt" \
inference.num_designs=10