{"title":"NanoAbLLaMA: construction of nanobody libraries with protein large language models.","authors":"Xin Wang, Haotian Chen, Bo Chen, Lixin Liang, Fengcheng Mei, Bingding Huang","doi":"10.3389/fchem.2025.1545136","DOIUrl":null,"url":null,"abstract":"<p><strong>Introduction: </strong>Traditional methods for constructing synthetic nanobody libraries are labor-intensive and time-consuming. This study introduces a novel approach leveraging protein large language models (LLMs) to generate germline-specific nanobody sequences, enabling efficient library construction through statistical analysis.</p><p><strong>Methods: </strong>We developed NanoAbLLaMA, a protein LLM based on LLaMA2, fine-tuned using low-rank adaptation (LoRA) on 120,000 curated nanobody sequences. The model generates sequences conditioned on germlines (IGHV3-301 and IGHV3S5301). Training involved dataset preparation from SAbDab and experimental data, alignment with IMGT germline references, and structural validation using ImmuneBuilder and Foldseek.</p><p><strong>Results: </strong>NanoAbLLaMA achieved near-perfect germline generation accuracy (100% for IGHV3-301, 95.5% for IGHV3S5301). Structural evaluations demonstrated superior predicted Local Distance Difference Test (pLDDT) scores (90.32 ± 10.13) compared to IgLM (87.36 ± 11.17), with comparable TM-scores. Generated sequences exhibited fewer high-risk post-translational modification sites than IgLM. Statistical analysis of CDR regions confirmed diversity, particularly in CDR3, enabling the creation of synthetic libraries with high humanization (>99.9%) and low risk.</p><p><strong>Discussion: </strong>This work establishes a paradigm shift in nanobody library construction by integrating LLMs, significantly reducing time and resource demands. While NanoAbLLaMA excels in germline-specific generation, limitations include restricted germline coverage and framework flexibility. Future efforts should expand germline diversity and incorporate druggability metrics for clinical relevance. The model's code, data, and resources are publicly available to facilitate broader adoption.</p>","PeriodicalId":12421,"journal":{"name":"Frontiers in Chemistry","volume":"13 ","pages":"1545136"},"PeriodicalIF":3.8000,"publicationDate":"2025-02-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11893428/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Frontiers in Chemistry","FirstCategoryId":"92","ListUrlMain":"https://doi.org/10.3389/fchem.2025.1545136","RegionNum":3,"RegionCategory":"化学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/1/1 0:00:00","PubModel":"eCollection","JCR":"Q2","JCRName":"CHEMISTRY, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
Introduction: Traditional methods for constructing synthetic nanobody libraries are labor-intensive and time-consuming. This study introduces a novel approach leveraging protein large language models (LLMs) to generate germline-specific nanobody sequences, enabling efficient library construction through statistical analysis.
Methods: We developed NanoAbLLaMA, a protein LLM based on LLaMA2, fine-tuned using low-rank adaptation (LoRA) on 120,000 curated nanobody sequences. The model generates sequences conditioned on germlines (IGHV3-301 and IGHV3S5301). Training involved dataset preparation from SAbDab and experimental data, alignment with IMGT germline references, and structural validation using ImmuneBuilder and Foldseek.
Results: NanoAbLLaMA achieved near-perfect germline generation accuracy (100% for IGHV3-301, 95.5% for IGHV3S5301). Structural evaluations demonstrated superior predicted Local Distance Difference Test (pLDDT) scores (90.32 ± 10.13) compared to IgLM (87.36 ± 11.17), with comparable TM-scores. Generated sequences exhibited fewer high-risk post-translational modification sites than IgLM. Statistical analysis of CDR regions confirmed diversity, particularly in CDR3, enabling the creation of synthetic libraries with high humanization (>99.9%) and low risk.
Discussion: This work establishes a paradigm shift in nanobody library construction by integrating LLMs, significantly reducing time and resource demands. While NanoAbLLaMA excels in germline-specific generation, limitations include restricted germline coverage and framework flexibility. Future efforts should expand germline diversity and incorporate druggability metrics for clinical relevance. The model's code, data, and resources are publicly available to facilitate broader adoption.
期刊介绍:
Frontiers in Chemistry is a high visiblity and quality journal, publishing rigorously peer-reviewed research across the chemical sciences. Field Chief Editor Steve Suib at the University of Connecticut is supported by an outstanding Editorial Board of international researchers. This multidisciplinary open-access journal is at the forefront of disseminating and communicating scientific knowledge and impactful discoveries to academics, industry leaders and the public worldwide.
Chemistry is a branch of science that is linked to all other main fields of research. The omnipresence of Chemistry is apparent in our everyday lives from the electronic devices that we all use to communicate, to foods we eat, to our health and well-being, to the different forms of energy that we use. While there are many subtopics and specialties of Chemistry, the fundamental link in all these areas is how atoms, ions, and molecules come together and come apart in what some have come to call the “dance of life”.
All specialty sections of Frontiers in Chemistry are open-access with the goal of publishing outstanding research publications, review articles, commentaries, and ideas about various aspects of Chemistry. The past forms of publication often have specific subdisciplines, most commonly of analytical, inorganic, organic and physical chemistries, but these days those lines and boxes are quite blurry and the silos of those disciplines appear to be eroding. Chemistry is important to both fundamental and applied areas of research and manufacturing, and indeed the outlines of academic versus industrial research are also often artificial. Collaborative research across all specialty areas of Chemistry is highly encouraged and supported as we move forward. These are exciting times and the field of Chemistry is an important and significant contributor to our collective knowledge.