Skip to main content

ABlooper

Antibodies are a key component of the immune system and have been extensively used as biotherapeutics. Accurate knowledge of their structure is central to understanding their antigen binding function. The key area for antigen binding and the main area of structural variation in antibodies is concentrated in the six complementarity determining regions (CDRs), with the most important for binding and most variable being the CDR-H3 loop. The sequence and structural variability of CDR-H3 make it particularly challenging to model. Recently deep learning methods have offered a step change in our ability to predict protein structures. In this work we present ABlooper, an end-to-end equivariant deep-learning based CDR loop structure prediction tool. ABlooper rapidly predicts the structure of CDR loops with high accuracy and provides a confidence estimate for each of its predictions. On the models of the Rosetta Antibody Benchmark, ABlooper makes predictions with an average CDR-H3 RMSD of 2.49Å, which drops to 2.05Å when considering only its 76% most confident predictions.

Install

To install via PyPi:

$ pip install ABlooper

To download and install the latest version from github:

$ git clone https://github.com/brennanaba/ABlooper.git
$ pip install ABlooper/

This package requires PyTorch. If you do not already have PyTorch installed, you can do so following these instructions.

Either OpenMM or PyRosetta are required for the optional refinement and side-chain prediction steps. OpenMM and pdbfixer can be installed via conda using:

$ conda install -c conda-forge openmm pdbfixer

If you want to use PyRosetta for refinement and do not have it installed, it can be obtained from here.

Usage

To use ABlooper, you will need an IMGT numbered antibody model. If you do not already have an antibody model, you can generate one using ABodyBuilder.

To remodel the CDRs of an existing antibody model using the command line:

$ ABlooper my_antibody_model.pdb --output ABlooper_model.pdb --heavy_chain H --light_chain L

To remodel the CDRs of an existing model using the python API:

from ABlooper import CDR_Predictor

input_path = "my_antibody_model.pdb"
output_path = "ABlooper_model.pdb"

pred = CDR_Predictor(input_path, chains = ("H", "L"))
pred.write_predictions_in_pdb_format(output_path)

Two pretrained models are available. The default predicts CDRs defined by the Chothia numbering scheme (This is the model described in the paper). To get predictions of CDRs defined by the IMGT numbering scheme use:

pred = CDR_Predictor(input_path, chains = ("H", "L"), model = 'imgt')
pred.write_predictions_in_pdb_format(output_path)

I would recommend using the command line if you just want a quick antibody model. If speed is a priority, it is probably best to just use the trained pytorch model. The python class will work best if you want to incorporate CDR prediction into a pipeline or access other details such as confidence score or RMSD to original model. Both of which can be obtained as follows:

rmsd_from_input = pred.calculate_BB_rmsd_wrt_input()
confidence_score = pred.decoy_diversity 

I have been made aware that ABlooper will occasionally generate abnormal geometries. To fix this, and to generate side-chains you can do (Only works if you have PyRosetta or OpenMM installed):

$ ABlooper my_antibody_model.pdb --output ABlooper_model.pdb --model chothia --side_chains

As a default this will use OpenMM if it is installed.

Citing this work

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

@article{10.1093/bioinformatics/btac016,
    author = {Abanades, Brennan and Georges, Guy and Bujotzek, Alexander and Deane, Charlotte M},
    title = {ABlooper: fast accurate antibody CDR loop structure prediction with accuracy estimation},
    journal = {Bioinformatics},
    volume = {38},
    number = {7},
    pages = {1877-1880},
    year = {2022},
    month = {01},
    issn = {1367-4803},
    doi = {10.1093/bioinformatics/btac016},
    url = {https://doi.org/10.1093/bioinformatics/btac016},

Metadata

Release files for ABlooper 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ABlooper 1.1.2
File Size Uploaded
ABlooper-1.1.2.tar.gz 5.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for ABlooper 1.1.2
File Interpreter ABI Platform
ABlooper-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 MB

Release files / ABlooper-1.1.2.tar.gz

Download URL ABlooper-1.1.2.tar.gz
Size 5.0 MB
Tags Source
SHA-256 checksum
How to use checksums
ecc77ac0cb6282f098ba42ee9bbc115878a04f5131bffcf09d39a61ea6c0b2ef
BLAKE2b-256 checksum
How to use checksums
c436249210f22e68f6f78f868af3cfa93ab3a566aa3df3f7bb147cb0ae059d62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / ABlooper-1.1.2-py3-none-any.whl

Download URL ABlooper-1.1.2-py3-none-any.whl
Size 5.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7de6c4418b8e018664c66f5cae1d46d21435cb4d77d34ae1d8625c16a5a940e8
BLAKE2b-256 checksum
How to use checksums
de5ca7fa385ab32857ce45ae3457dbb8164aa09ea25964053efba5dc2a20f6ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page