算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
inverse-folding【设计与创意】Use ESM-IF1 for fixed-backbone protein inverse design, sequence log-likelihood scoring, multichain conditioning, coordinate extraction, and structure encoder representations.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task needs ESM-IF1 to design or score protein sequences from known backbone coordinates. It covers fixed-backbone sequence sampling, single-chain and multichain complex conditioning, PDB/mmCIF coordinate extraction, missing-coordinate handling, conditional log-likelihood scoring, and encoder representations.
esm.pretrained.esm_if1_gvp4_t16_142M_UR50() and model.sample(...).score_sequence(...) or score_sequence_in_complex(...).--multichain-backbone or multichain_util APIs.structure-prediction sub-skill for ESMFold forward folding from sequence to structure.model-embeddings sub-skill for generic protein language-model embeddings that do not use backbone coordinates.variant-effect-prediction sub-skill for mutation scoring without a structure-conditioned inverse-folding model.torch-geometric and a compatible biotite API..pdb or .cif, choose the target chain ID, and decide whether to condition on only the target chain or the whole complex.scripts/inverse_folding_cli_helper.py to construct safe commands before running downloads or GPU jobs.model, alphabet = esm.pretrained.esm_if1_gvp4_t16_142M_UR50() and call model.eval() before sampling or scoring.references/workflows.md gives task recipes for sampling, scoring, multichain conditioning, encoder outputs, and diagnostic workflows.references/api-reference.md lists the supported ESM-IF1 loader and inverse-folding APIs.references/data-formats.md describes coordinate tensors, PDB/mmCIF requirements, FASTA input/output, CSV scoring output, and missing-coordinate conventions.references/troubleshooting.md maps common dependency, data, runtime, and biological-quality failures to fixes.Use scripts/inverse_folding_cli_helper.py for self-contained command construction and input validation:
python scripts/inverse_folding_cli_helper.py sample structure.pdb --chain C --outpath designs.fasta
python scripts/inverse_folding_cli_helper.py score structure.pdb variants.fasta --chain C --outpath scores.csv --multichain-backbone
The helper prints a dry-run command by default. Add --execute only when the environment is ready for model loading, potential torch hub downloads, and a long CPU/GPU run.