算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
constraint-inputs【设计与创意】Prepare and validate ProteinMPNN parsed-PDB JSONL and design-constraint dictionaries for fixed chains, fixed/design-only positions, tied or symmetric positions, amino-acid bias, per-residue bias, omitted amino acids, and PSSM-guided design.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a user needs to create, inspect, repair, or validate ProteinMPNN constraint input files before running protein_mpnn_run.py.
.pdb files into the --jsonl_path parsed-PDB JSONL consumed by ProteinMPNN.--chain_id_jsonl.--fixed_positions_jsonl, including the inverted --specify_non_fixed workflow for “design only these residues”.--tied_positions_jsonl, including homooligomer symmetry and positive/negative tied-chain betas.--bias_AA_jsonl or per-residue bias with --bias_by_res_jsonl.--omit_AAs, --omit_AA_jsonl, and --pssm_jsonl without relying on ad hoc local-path utilities.../inference-design/.../training-custom-models/.python helper_scripts/parse_multiple_chains.py \
--input_path data/pdbs/ \
--output_path constraints/parsed_pdbs.jsonl
A and C while all other parsed chains remain fixed:python helper_scripts/assign_fixed_chains.py \
--input_path constraints/parsed_pdbs.jsonl \
--output_path constraints/assigned_pdbs.jsonl \
--chain_list "A C"
protein_mpnn_run.py. Set SKILL_DIR to this sub-skill directory in the agent skill library.python "$SKILL_DIR/scripts/validate_constraint_jsonl.py" \
--parsed constraints/parsed_pdbs.jsonl \
--chain-id constraints/assigned_pdbs.jsonl \
--fixed-positions constraints/fixed_pdbs.jsonl \
--tied-positions constraints/tied_pdbs.jsonl \
--bias-aa constraints/bias_pdbs.jsonl \
--pssm constraints/pssm.jsonl
references/helper-cli-reference.md lists the helper commands and the ProteinMPNN flags they prepare.references/data-formats.md defines the JSONL and dictionary shapes accepted by the validator and ProteinMPNN.references/workflows.md gives copy-adaptable workflows for fixed/design-only positions, tied chains, homooligomers, amino-acid bias, and PSSM inputs.references/troubleshooting.md covers common constraint mistakes and how to diagnose them.position_list uses comma-separated per-chain lists that must align with chain_list order.seq_chain_<chain> keys in the parsed-PDB JSONL..npz inputs must provide <chain>_coef, <chain>_bias, and <chain>_odds for each designed chain; bias and odds arrays are length-by-21.Do not copy or depend on helper_scripts/other_tools/make_omit_AA.py or helper_scripts/other_tools/make_pssm_dict.py. Those utilities are hard-coded/ad hoc in the source repo. Use the schemas in references/data-formats.md and the validator in scripts/validate_constraint_jsonl.py instead.