ligandmpnn
ما الذي تفعله
تقترح هذه المهارة تسلسلات أمينية جديدة لبنية بروتين، مع مراعاة الجزيئات المرتبطة والمعادن والأحماض النووية. وهي للعلماء الذين يصممون بروتينات يجب أن تثبّت شيئًا أو ترتبط به.
متى تستخدمها
- ✓عندما تحتاج إلى إعادة تصميم الأحماض الأمينية حول جزيء صغير أو عامل مساعد مرتبط.
- ✓عندما تصمم موقع ارتباط بالمعادن ويجب أن تبقى هندسته صحيحة.
- ✓عندما تريد تحويل هيكل عمود فقري لبروتين إلى مجموعة من التسلسلات المرشحة.
رابط المهارة
https://github.com/aipoch/open-science/blob/main/resources/skills/ligandmpnn/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك اقتراح تسلسلات جديدة لجيب الارتباط في ملف البروتين هذا، مع الإبقاء على الليغاند المرتبط في مكانه؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تقدّم ملف بنية بروتين يتضمن الجزيء المرتبط. تقترح الأداة تسلسلات يمكن أن تطوي نفسها إلى هذا الشكل، وتحفظها كملفات بنية تراجعها.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
LigandMPNN
LigandMPNN extends the ProteinMPNN graph with non-protein atoms — small
molecules, nucleic acids, and metals are visible to the network — so it is the
right inverse-folding tool whenever the design surface includes a bound ligand
or cofactor that vanilla proteinmpnn would ignore. The same run.py is also
the most convenient runner for the other MPNN families because, unlike the
original ProteinMPNN script, it threads designs back onto the input structure
and writes PDBs alongside the FASTA. Code and weights are MIT
(github.com/dauparas/LigandMPNN). The model is small enough to run on CPU —
for a handful of designs on one structure that is seconds and usually faster
than dispatching, so the normal path is local with
pip install torch numpy biopython ProDy ml_collections dm-tree; a GPU helps
for batched campaigns.
Running it
pip install torch numpy biopython ProDy ml_collections dm-tree
git clone --depth 1 https://github.com/dauparas/LigandMPNN.git ligandmpnn
cd ligandmpnn
sed -i 's/np\.int\b/np.int64/g' openfold/np/residue_constants.py # repo pins numpy 1.23; alias removed in >=1.24
bash get_model_params.sh ./model_params
python run.py \
--model_type ligand_mpnn \
--checkpoint_ligand_mpnn ./model_params/ligandmpnn_v_32_010_25.pt \
--pdb_path complex.pdb \
--out_folder out \
--batch_size 8 --number_of_batches 4 \
--temperature 0.1 \
--fixed_residues "A45 A46 A47 A48"
Residue selections are space-separated {chain}{resnum} tokens inside one
quoted string ("A45 A46 B10"; insertion codes append directly, "B82A").
That is the format for --fixed_residues and --redesigned_residues;
--bias_AA_per_residue and --omit_AA_per_residue instead take a path to a
JSON file whose keys use the same {chain}{resnum} form, and
--chains_to_design is comma-separated ("A,B"). If you want to redesign only the pocket, naming the pocket residues
in --redesigned_residues is usually shorter than fixing everything else.
Under --out_folder you get seqs/<stem>.fa (headers carry
overall_confidence and ligand_confidence), backbones/<stem>_{1..N}.pdb
with the designed sequence threaded onto the input coordinates, and — with
--pack_side_chains 1 — full-atom packed models in packed/. The threaded
PDBs are the reason to prefer this runner even for protein-only jobs.
Model types — which one to pick
--model_type |
sees | use |
|---|---|---|
ligand_mpnn |
backbone + ligand/NA/metal atoms | binding-pocket or active-site design |
protein_mpnn |
backbone only | protein–protein; same weights as proteinmpnn |
soluble_mpnn |
backbone only, soluble-trained | expression-biased prior; see solublempnn |
*_membrane_mpnn |
backbone + membrane label | transmembrane designs |
Each model type has its own --checkpoint_<type> flag; the wrong pairing is
caught at load time, but the default checkpoint path is relative to the repo,
so run from inside the clone or pass the absolute path.
ProDy compiles from source on py3.11 — pip install fails without a C compiler
run.py imports ProDy unconditionally for ligand atom parsing. On py3.11 the
prebuilt wheel is missing on PyPI, so pip install ProDy compiles from source
and needs a working C/C++ compiler. On Modal's add_python bases the default
CXX=clang++ points at a missing binary — apt_install("build-essential")
and export CC=gcc CXX=g++ before the install. On most CPU-local Python
distributions the sdist builds in ~10 s if no wheel matches your Python.
Turning ligand context off changes the answer, not the model
--ligand_mpnn_use_atom_context 0 keeps the ligand-aware weights but masks the
ligand atoms at inference. That is useful for an ablation — the difference
between context-on and context-off tells you how much the ligand is shaping the
design — but it is not equivalent to running protein_mpnn, which uses a
different checkpoint trained without those features. For a fair protein-only
baseline, switch --model_type.
Stripped HETATM or a chain filter silently drops the ligand — the design comes back pocket-blind
LigandMPNN does not warn when no ligand atoms are found; it just runs as if
--model_type protein_mpnn had been picked. The t
الأسئلة الشائعة
هل تحتاج إلى حاسوب قوي؟
يمكن للأداة أن تعمل على حاسوب عادي لبضعة تصاميم. وتساعد بطاقة الرسوميات عند تشغيل دفعات كبيرة.
ما نوع الإدخال المطلوب؟
ملف بنية بروتين، ويُفضَّل أن يتضمن الجزيء المرتبط أو المعدن أو الحمض النووي.
هل الأداة مجانية؟
يذكر وصف المهارة أن الشيفرة والأوزان مُصدَرة بترخيص MIT.
التفاصيل
الوصف الأصلي من المؤلف
Inverse-fold a backbone with ligand, nucleic-acid, and metal context using LigandMPNN (Dauparas et al. 2023, github.com/dauparas/LigandMPNN). 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.
repo: aipoch/open-science
الشعبية
- نجوم GitHub
- 5.4k
- الترتيب
- #14864
- الترخيص
- Apache-2.0
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
alphafold2
5.4kيساعد وكيلك على التنبؤ بالبنية ثلاثية الأبعاد للبروتين انطلاقًا من تسلسله، بما في ذلك معقدات البروتينات، باستخدام AlphaFold2 عبر منفذ ColabFold.
boltz
5.4kيساعد وكيلك على التنبؤ ببنية معقدات البروتينات والحمض النووي والحمض الريبوزي والجزيئات الصغيرة، باستخدام نموذج Boltz-2 مفتوح المصدر، مع تقديرات اختيارية لقوة الارتباط.
borzoi
5.4kيساعد وكيلك على التنبؤ بمسارات النشاط على مستوى الجينوم، مثل التعبير وإمكانية الوصول، انطلاقًا من تسلسل الحمض النووي، ومقارنة المتغيرات بحسب أثرها المتوقع.
chai1
5.4kيساعد وكيلك على التنبؤ ببنية معقدات البروتينات والأحماض النووية والليغاندات من ملف FASTA واحد، باستخدام نموذج Chai-1 المرخّص بترخيص Apache.
مهارات مشابهة
pytorch-patterns
280kيساعد وكيلك على استخدام PyTorch في نماذج تعلم الآلة. يطبّق أفضل الممارسات لتدريب النماذج بكفاءة ويضمن نتائج قابلة للتكرار.
evm-token-decimals
280kيساعد وكيلك على تجنب أخطاء الأعداد العشرية عبر شبكات البلوكتشين المختلفة. يضمن دقة قيم الرموز في المعاملات والحسابات.
ito-inference
280kيتيح لوكيلك التحقق من توفر نماذج الذكاء الاصطناعي للاستخدام. يربط طلب الحوسبة بخدمة النموذج الجاهزة.