Skip to content
oxpigPublic

About

Therapeutic Nanobody Profiler

Resources

Stars

47 stars

Watchers

0 watching

Forks

Repository files navigation



            \/                       _____ _   _ ____                   \/
           ⊂'l                      |_   _| \ | |  _ \                 ⊂'l     
            ll                        | | |  \| | |_) |                 ll     
            llama~                    | | | |\  |  __/                  llama~ 
            || ||                     |_| |_| \_|_|                     || || 
            '' ''                                                       '' ''


The Therapeutic Nanobody Profiler: characterising and predicting nanobody developability to improve therapeutic design

About

This software was developed in the Oxford Protein Informatics Group (OPIG), Department of Statistics, University of Oxford with the support of Twist Bioscience.

Authors

  • Gemma L. Gordon (University of Oxford)
  • João Gervasio (University of Oxford, Okinawa Institute of Science and Technology Graduate University)
  • Colby Souders (Twist Bioscience)
  • Charlotte M. Deane (University of Oxford)

Abstract

Developability optimisation is an important step for successful biotherapeutic design. For monoclonal antibodies, developability is relatively well characterised. However, progress for novel biotherapeutics such as nanobodies is more limited. Differences in structural features between antibodies and nanobodies render current antibody computational methods unsuitable for direct application to nanobodies. Following the principles of the Therapeutic Antibody Profiler (TAP), we have built the Therapeutic Nanobody Profiler (TNP), an open-source computational tool for predicting nanobody developability. Tailored specifically for nanobodies, it accounts for their unique properties compared to conventional antibodies for more efficient development of this novel therapeutic format. We calibrate TNP metrics using the 36 currently available clinical-stage nanobody sequences. We also collected experimental developability data for 108 nanobodies and examine how these results are related to the TNP guidelines. TNP is available as a web application which you can find on the OPIG website.

Citing this work

The code and data in this package is based on the following paper. If you use it, please cite:

@article{gordon2025,
  title={The Therapeutic Nanobody Profiler: characterizing and predicting nanobody developability to improve therapeutic design},
  author={},
  journal={bioRxiv},
  pages={},
  year={2025},
  publisher={Cold Spring Harbor Laboratory},
  doi={https://doi.org/10.1101/2025.08.11.669635}
}

Web tool

This tool is also available as a live web app:

https://tnp.opig.stats.ox.ac.uk

If you use this code or the web tool in your work, please cite the paper.

Installation

TNP is distributed through Bioconda:

conda install -c conda-forge -c bioconda tnp

TNP depends on ANARCI and HMMER from Bioconda, and on NanoBodyBuilder2, DSSP and FreeSASA. Do not install the anarci package from PyPI, which is not an official release.

NanoBodyBuilder2 downloads its trained weights on first use. Conda installs a CUDA-enabled PyTorch where it detects a GPU, and a CPU-only one otherwise.

Usage

For a single sequence:

TNP --name my_sequence --output my_sequence_output --seq [sequence]

For multiple sequences in a FASTA file:

TNP --output /path/to/output/directory --file /path/to/sequences.fasta

TNP models each sequence with NanoBodyBuilder2, then writes its results to the output directory: a log and a JSON summary of the metrics and their flags, and the models in Final_Models/. With --web, it also writes the data for the plots shown by the web application.

For more options and information, run TNP --help.

Development

To set up a development environment with Conda (or Mamba/Micromamba), in the repository:

conda env create -f environment.yml
conda activate tnp
pip install --no-deps --editable .

Run the tests with pytest. The slow end-to-end tests, which model a nanobody with NanoBodyBuilder2, are skipped unless you run pytest --runslow. Lint with ruff check, and install the pre-commit hooks with uvx pre-commit install.

scripts/compare_sasa.py compares the surface patch metrics on the clinical- stage models in paper/paper_data with the published values, or with another version of TNP.

Releasing

Bump the version, which commits the change and makes a signed tag, then push it:

uvx bump-my-version bump patch  # Or minor, or major.
git push --follow-tags

For each version tag, GitHub Actions runs the tests and makes a GitHub release with a signed source distribution. The Bioconda bot then updates the recipe.

About

Therapeutic Nanobody Profiler

Resources

Stars

47 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages