[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AWV4Y79T6NNZ83TTZCFPC3":3,"skill-same:01M7AWV4Y79T6NNZ83TTZCFPC3":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":14,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M7AWV4Y79T6NNZ83TTZCFPC3","ligandmpnn",null,"Inverse-fold a backbone with ligand, nucleic-acid, and metal context using LigandMPNN (Dauparas et al. 2023, github.com\u002Fdauparas\u002FLigandMPNN). Reach for this skill to redesign the residues lining a binding pocket around a bound small molecule or cofactor, to design metal-coordinating sites where the geometry must be respected, or to get threaded designed-sequence PDBs out of any MPNN run.","flyme2bluemoon\u002Fskills","flyme2bluemoon","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F37197710?v=4","01M7AWSKCXRPGZSNS26MTB5YR4","Matthew Shen","01M7AWSKE11G83QK1885PSGJ3K",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fflyme2bluemoon\u002Fskills\u002Fblob\u002Fmain\u002Fskills-examples\u002Fclaude-science-skills\u002Fligandmpnn\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ligandmpnn\ndescription: >\n  Inverse-fold a backbone with ligand, nucleic-acid, and metal context using\n  LigandMPNN (Dauparas et al. 2023, github.com\u002Fdauparas\u002FLigandMPNN). Reach for\n  this skill to redesign the residues lining a binding pocket around a bound\n  small molecule or cofactor, to design metal-coordinating sites where the\n  geometry must be respected, or to get threaded designed-sequence PDBs out of\n  any MPNN run.\nlicense: Apache-2.0\nmetadata:\n  category: biomodels\n  display-name: LigandMPNN\n  # github.com\u002Fdauparas\u002FLigandMPNN\u002Fblob\u002Fmain\u002FLICENSE: MIT (© 2024 Justas\n  # Dauparas). verified 2026-06-30\n  third_party:\n    - kind: weights\n      name: LigandMPNN\n      license: MIT\n      terms_url: https:\u002F\u002Fgithub.com\u002Fdauparas\u002FLigandMPNN\u002Fblob\u002Fmain\u002FLICENSE\n---\n\n# LigandMPNN\n\nLigandMPNN extends the ProteinMPNN graph with non-protein atoms — small\nmolecules, nucleic acids, and metals are visible to the network — so it is the\nright inverse-folding tool whenever the design surface includes a bound ligand\nor cofactor that vanilla `proteinmpnn` would ignore. The same `run.py` is also\nthe most convenient runner for the other MPNN families because, unlike the\noriginal ProteinMPNN script, it threads designs back onto the input structure\nand writes PDBs alongside the FASTA. Code and weights are MIT\n(github.com\u002Fdauparas\u002FLigandMPNN). The model is small enough to run on CPU —\nfor a handful of designs on one structure that is seconds and usually faster\nthan dispatching, so the normal path is local with\n`pip install torch numpy biopython ProDy ml_collections dm-tree`; a GPU helps\nfor batched campaigns.\n\n## Running it\n\n```bash\npip install torch numpy biopython ProDy ml_collections dm-tree\ngit clone --depth 1 https:\u002F\u002Fgithub.com\u002Fdauparas\u002FLigandMPNN.git ligandmpnn\ncd ligandmpnn\nsed -i 's\u002Fnp\\.int\\b\u002Fnp.int64\u002Fg' openfold\u002Fnp\u002Fresidue_constants.py   # repo pins numpy 1.23; alias removed in >=1.24\nbash get_model_params.sh .\u002Fmodel_params\npython run.py \\\n  --model_type ligand_mpnn \\\n  --checkpoint_ligand_mpnn .\u002Fmodel_params\u002Fligandmpnn_v_32_010_25.pt \\\n  --pdb_path complex.pdb \\\n  --out_folder out \\\n  --batch_size 8 --number_of_batches 4 \\\n  --temperature 0.1 \\\n  --fixed_residues \"A45 A46 A47 A48\"\n```\n\nResidue selections are space-separated `{chain}{resnum}` tokens inside one\nquoted string (`\"A45 A46 B10\"`; insertion codes append directly, `\"B82A\"`).\nThat is the format for `--fixed_residues` and `--redesigned_residues`;\n`--bias_AA_per_residue` and `--omit_AA_per_residue` instead take a path to a\nJSON file whose keys use the same `{chain}{resnum}` form, and\n`--chains_to_design` is comma-separated (`\"A,B\"`). If you want to redesign only the pocket, naming the pocket residues\nin `--redesigned_residues` is usually shorter than fixing everything else.\n\nUnder `--out_folder` you get `seqs\u002F\u003Cstem>.fa` (headers carry\n`overall_confidence` and `ligand_confidence`), `backbones\u002F\u003Cstem>_{1..N}.pdb`\nwith the designed sequence threaded onto the input coordinates, and — with\n`--pack_side_chains 1` — full-atom packed models in `packed\u002F`. The threaded\nPDBs are the reason to prefer this runner even for protein-only jobs.\n\n## Model types — which one to pick\n\n| `--model_type` | sees | use |\n|---|---|---|\n| `ligand_mpnn` | backbone + ligand\u002FNA\u002Fmetal atoms | binding-pocket or active-site design |\n| `protein_mpnn` | backbone only | protein–protein; same weights as `proteinmpnn` |\n| `soluble_mpnn` | backbone only, soluble-trained | expression-biased prior; see `solublempnn` |\n| `*_membrane_mpnn` | backbone + membrane label | transmembrane designs |\n\nEach model type has its own `--checkpoint_\u003Ctype>` flag; the wrong pairing is\ncaught at load time, but the default checkpoint path is relative to the repo,\nso run from inside the clone or pass the absolute path.\n\n## ProDy compiles from source on py3.11 — `pip install` fails without a C compiler\n\n`run.py` imports ProDy unconditionally for ligand atom parsing. On py3.11 the\nprebuilt wheel is missing on PyPI, so `pip install ProDy` compiles from source\nand needs a working C\u002FC++ compiler. On Modal's `add_python` bases the default\n`CXX=clang++` points at a missing binary — `apt_install(\"build-essential\")`\nand export `CC=gcc CXX=g++` before the install. On most CPU-local Python\ndistributions the sdist builds in ~10 s if no wheel matches your Python.\n\n## Turning ligand context off changes the answer, not the model\n\n`--ligand_mpnn_use_atom_context 0` keeps the ligand-aware weights but masks the\nligand atoms at inference. That is useful for an ablation — the difference\nbetween context-on and context-off tells you how much the ligand is shaping the\ndesign — but it is **not** equivalent to running `protein_mpnn`, which uses a\ndifferent checkpoint trained without those features. For a fair protein-only\nbaseline, switch `--model_type`.\n\n## Stripped HETATM or a chain filter silently drops the ligand — the design comes back pocket-blind\n\nLigandMPNN does not warn when no ligand atoms are found; it just runs as if\n`--model_type protein_mpnn` had been picked. The two common ways this happens\nare an input PDB whose HETATM records were stripped by an upstream\nclean-up step, and `--parse_these_chains_only` naming the protein chains but\nnot the ligand's. If `ligand_confidence` in the FASTA header is missing or\nzero across every design, the model never saw the ligand — fix the input, do\nnot trust the sequences.\n\n## Errors worth recognizing\n\n| You see | It means \u002F do this |\n|---|---|\n| `ModuleNotFoundError: No module named 'tree'` | `pip install dm-tree` — the vendored openfold imports it unconditionally. |\n| `module 'numpy' has no attribute 'int'` | Run the `sed` patch on `openfold\u002Fnp\u002Fresidue_constants.py`, or pin `numpy\u003C1.24` (py≤3.11 only). |\n| `error: command 'clang' failed` while `pip install ProDy` | See the ProDy gotcha above — `apt_install(\"build-essential\")` and `env({\"CC\":\"gcc\",\"CXX\":\"g++\"})`. |\n| `FileNotFoundError` for `model_params\u002F...` | Checkpoints not fetched — run `bash get_model_params.sh .\u002Fmodel_params` from inside the clone. |\n\n---\n\n**Next:** fold the designs in complex with the ligand via `boltz` or `chai1`\n(both accept SMILES\u002FCCD) and filter on ipTM and ligand placement.\n","# LigandMPNN\n\nLigandMPNN extends the ProteinMPNN graph with non-protein atoms — small\nmolecules, nucleic acids, and metals are visible to the network — so it is the\nright inverse-folding tool whenever the design surface includes a bound ligand\nor cofactor that vanilla `proteinmpnn` would ignore. The same `run.py` is also\nthe most convenient runner for the other MPNN families because, unlike the\noriginal ProteinMPNN script, it threads designs back onto the input structure\nand writes PDBs alongside the FASTA. Code and weights are MIT\n(github.com\u002Fdauparas\u002FLigandMPNN). The model is small enough to run on CPU —\nfor a handful of designs on one structure that is seconds and usually faster\nthan dispatching, so the normal path is local with\n`pip install torch numpy biopython ProDy ml_collections dm-tree`; a GPU helps\nfor batched campaigns.\n\n## Running it\n\n```bash\npip install torch numpy biopython ProDy ml_collections dm-tree\ngit clone --depth 1 https:\u002F\u002Fgithub.com\u002Fdauparas\u002FLigandMPNN.git ligandmpnn\ncd ligandmpnn\nsed -i 's\u002Fnp\\.int\\b\u002Fnp.int64\u002Fg' openfold\u002Fnp\u002Fresidue_constants.py   # repo pins numpy 1.23; alias removed in >=1.24\nbash get_model_params.sh .\u002Fmodel_params\npython run.py \\\n  --model_type ligand_mpnn \\\n  --checkpoint_ligand_mpnn .\u002Fmodel_params\u002Fligandmpnn_v_32_010_25.pt \\\n  --pdb_path complex.pdb \\\n  --out_folder out \\\n  --batch_size 8 --number_of_batches 4 \\\n  --temperature 0.1 \\\n  --fixed_residues \"A45 A46 A47 A48\"\n```\n\nResidue selections are space-separated `{chain}{resnum}` tokens inside one\nquoted string (`\"A45 A46 B10\"`; insertion codes append directly, `\"B82A\"`).\nThat is the format for `--fixed_residues` and `--redesigned_residues`;\n`--bias_AA_per_residue` and `--omit_AA_per_residue` instead take a path to a\nJSON file whose keys use the same `{chain}{resnum}` form, and\n`--chains_to_design` is comma-separated (`\"A,B\"`). If you want to redesign only the pocket, naming the pocket residues\nin `--redesigned_residues` is usually shorter than fixing everything else.\n\nUnder `--out_folder` you get `seqs\u002F\u003Cstem>.fa` (headers carry\n`overall_confidence` and `ligand_confidence`), `backbones\u002F\u003Cstem>_{1..N}.pdb`\nwith the designed sequence threaded onto the input coordinates, and — with\n`--pack_side_chains 1` — full-atom packed models in `packed\u002F`. The threaded\nPDBs are the reason to prefer this runner even for protein-only jobs.\n\n## Model types — which one to pick\n\n| `--model_type` | sees | use |\n|---|---|---|\n| `ligand_mpnn` | backbone + ligand\u002FNA\u002Fmetal atoms | binding-pocket or active-site design |\n| `protein_mpnn` | backbone only | protein–protein; same weights as `proteinmpnn` |\n| `soluble_mpnn` | backbone only, soluble-trained | expression-biased prior; see `solublempnn` |\n| `*_membrane_mpnn` | backbone + membrane label | transmembrane designs |\n\nEach model type has its own `--checkpoint_\u003Ctype>` flag; the wrong pairing is\ncaught at load time, but the default checkpoint path is relative to the repo,\nso run from inside the clone or pass the absolute path.\n\n## ProDy compiles from source on py3.11 — `pip install` fails without a C compiler\n\n`run.py` imports ProDy unconditionally for ligand atom parsing. On py3.11 the\nprebuilt wheel is missing on PyPI, so `pip install ProDy` compiles from source\nand needs a working C\u002FC++ compiler. On Modal's `add_python` bases the default\n`CXX=clang++` points at a missing binary — `apt_install(\"build-essential\")`\nand export `CC=gcc CXX=g++` before the install. On most CPU-local Python\ndistributions the sdist builds in ~10 s if no wheel matches your Python.\n\n## Turning ligand context off changes the answer, not the model\n\n`--ligand_mpnn_use_atom_context 0` keeps the ligand-aware weights but masks the\nligand atoms at inference. That is useful for an ablation — the difference\nbetween context-on and context-off tells you how much the ligand is shaping the\ndesign — but it is **not** equivalent to running `protein_mpnn`, which uses a\ndifferent checkpoint trained without those features. For a fair protein-only\nbaseline, switch `--model_type`.\n\n## Stripped HETATM or a chain filter silently drops the ligand — the design comes back pocket-blind\n\nLigandMPNN does not warn when no ligand atoms are found; it just runs as if\n`--model_type protein_mpnn` had been picked. The two common ways this happens\nare an input PDB whose HETATM records were stripped by an upstream\nclean-up step, and `--parse_these_chains_only` naming the protein chains but\nnot the ligand's. If `ligand_confidence` in the FASTA header is missing or\nzero across every design, the model never saw the ligand — fix the input, do\nnot trust the sequences.\n\n## Errors worth recognizing\n\n| You see | It means \u002F do this |\n|---|---|\n| `ModuleNotFoundError: No module named 'tree'` | `pip install dm-tree` — the vendored openfold imports it unconditionally. |\n| `module 'numpy' has no attribute 'int'` | Run the `sed` patch on `openfold\u002Fnp\u002Fresidue_constants.py`, or pin `numpy\u003C1.24` (py≤3.11 only). |\n| `error: command 'clang' failed` while `pip install ProDy` | See the ProDy gotcha above — `apt_install(\"build-essential\")` and `env({\"CC\":\"gcc\",\"CXX\":\"g++\"})`. |\n| `FileNotFoundError` for `model_params\u002F...` | Checkpoints not fetched — run `bash get_model_params.sh .\u002Fmodel_params` from inside the clone. |\n\n---\n\n**Next:** fold the designs in complex with the ligand via `boltz` or `chai1`\n(both accept SMILES\u002FCCD) and filter on ipTM and ligand placement.\n",{"name":5,"license":15,"metadata":24,"description":32},{"category":25,"third_party":26,"display-name":29},"biomodels",[27],{"kind":28,"name":29,"license":30,"terms_url":31},"weights","LigandMPNN","MIT","https:\u002F\u002Fgithub.com\u002Fdauparas\u002FLigandMPNN\u002Fblob\u002Fmain\u002FLICENSE","Inverse-fold a backbone with ligand, nucleic-acid, and metal context using LigandMPNN (Dauparas et al. 2023, github.com\u002Fdauparas\u002FLigandMPNN). Reach for this skill to redesign the residues lining a binding pocket around a bound small molecule or cofactor, to design metal-coordinating sites where the geometry must be respected, or to get threaded designed-sequence PDBs out of any MPNN run.\n","main","9a28ca56870fad42cc4efa04a1d487c07a561ab1","skills-examples\u002Fclaude-science-skills\u002Fligandmpnn","https:\u002F\u002Fgithub.com\u002Fflyme2bluemoon\u002Fskills","https:\u002F\u002Fgithub.com\u002Fflyme2bluemoon","https:\u002F\u002Fflyme2bluemoon.github.io","Computer Science and Biology @ McGill University | making computer do cool thing","2026-10-31 13:32:13",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add flyme2bluemoon\u002Fskills --skill ligandmpnn",{"tool":47,"command":48},"bunx","bunx skills add flyme2bluemoon\u002Fskills --skill ligandmpnn",{"tool":50,"command":51},"pnpm","pnpm dlx skills add flyme2bluemoon\u002Fskills --skill ligandmpnn","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fflyme2bluemoon\u002Fskills\u002Fblob\u002Fmain\u002Fskills-examples\u002Fclaude-science-skills\u002Fligandmpnn\u002FSKILL.md",true,[],[56,63,70,77,84,91],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":30,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AWZ83KYJ9YSB4E5VQJ1K9B","unslop","Edit substantive human-facing prose to remove AI writing patterns while preserving meaning and tone.","https:\u002F\u002Fgithub.com\u002Fflyme2bluemoon\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Funslop\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":30,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AWZ4FJPVNRMFFJC6JSHHKQ","pstack-principle-type-system-discipline","Apply when designing types, reviewing a function signature, or writing code in any statically-typed language. Make illegal states unrepresentable, brand semantic primitives, parse external data at boundaries, refuse to lie to the compiler, exhaust variants, derive from authoritative schemas.","https:\u002F\u002Fgithub.com\u002Fflyme2bluemoon\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Fpstack-principle-type-system-discipline\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":30,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AWZ11K4KET3ASESNABPE52","pstack-principle-test-behavior-not-implementation","Apply when you write, change, or keep a test. Call the code the way its users do and assert the result they observe against a literal expected value. If the test would still pass when every imported function returns undefined, rewrite the assertion or delete the test.","https:\u002F\u002Fgithub.com\u002Fflyme2bluemoon\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Fpstack-principle-test-behavior-not-implementation\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":30,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AWYWT47M5JG7XV6ZK6QSSX","pstack-principle-subtract-before-you-add","Apply when sequencing an addition, refactor, or rewrite. Remove dead weight, redundant validators, and stub references first, then build on the simpler base.","https:\u002F\u002Fgithub.com\u002Fflyme2bluemoon\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Fpstack-principle-subtract-before-you-add\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":30,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AWYTNNHNGHB583NEV888BB","pstack-principle-sequence-verifiable-units","Sequence migrations or dependent changes around meaningful verification boundaries.","https:\u002F\u002Fgithub.com\u002Fflyme2bluemoon\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Fpstack-principle-sequence-verifiable-units\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":30,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7AWYQ2C15PV2W2V6ZVMK3ZM","pstack-principle-separate-before-serializing-shared-state","Apply when concurrent actors might write to the same file, branch, key, or state object. Eliminate the sharing first; serialize structurally only when one shared writer is a real invariant.","https:\u002F\u002Fgithub.com\u002Fflyme2bluemoon\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Fpstack-principle-separate-before-serializing-shared-state\u002FSKILL.md",[],[]]