Skip to content

Graylab/FLAb

Repository files navigation

FLAb: Fitness Landscapes for Antibodies

Official repository for FLAb: Benchmarking deep learning methods for antibody fitness prediction. FLAb provides experimental data for six properties of therapeutic antibodies: Expression, themrostability, immunogenicity, aggregation, polyreactivity, and binding affinity. We use FLAb to assess the performance of several widely used deep learning models (AntiBERTy, IgLM, ProtGPT2, ProGen2, ProteinMPNN, ESM-IF) and compare them to physics-based Rosetta.

Biophysical Properties

Install

For easiest use, create a conda environment for each scoring and structure prediction method:

$ conda env create --name ENV_NAME --file envs/[ENV]

       Where [ENV]antiberty.yml, esmif.yml, iglm.yml, mpnn.yml, progen.yml, pyrosetta.yml

Command line usage

FLAb supports structure prediction with IgFold and perplexity scoring with AntiBERTy, ProGen2, IgLM, ESM-2, ESM-IF, proteinMPNN, and Rosetta energy.

Antibody structure prediction from sequence in csv format

Antibody sequences must be provided as a csv of sequences, where the columns are chains heavy and light and column values are the sequences. This step is necessary to complete first before scoring with structure-based methods (i.e. ESM-IF, proteinMPNN, Rosetta energy).

$ sbatch sbatch/structure.sh data/tm/Hie2022_C143_Tm.csv 

Expected output

After the script completes, antibody structures will be saved in a new directory path structures/tm/Hie2022_C143_Tm/

Perplexity scoring and correlation to fitness

Calculate perplexity for a csv of sequences with the columns heavy for heavy chain sequences, light for light chain sequences, and fitness for some experimental antibody fitness metric.

$ sbatch sbatch/score_seq.sh data/tm/Hie2022_C143_Tm.csv [MODEL] [SIZE]

       Where [MODEL]antiberty, esmif, iglm, mpnn, progen, pyrosetta

       If using progen: [SIZE]small, medium, base, oas, large, BFD90, xlarge. Otherwise leave [SIZE] blank.

For structure-based scoring methods, structures must first be predicted.

$ sbatch sbatch/score_struc.sh data/tm/Hie2022_C143_Tm.csv esmif

Expected output

After the script completes, the CSV with heavy and light sequences will be updated with a new column for uncertainty. The CSV will be saved in a new directory path within scores/tm/Hie2022_C143_Tm/

Contributions & Bug reports

FLAb is a living benchmark: We are motivated to continually expand the antibody fitness data utilized and methods evaluated. We invite contributions and encourage contributors to add data or test new models (e.g. ESM-2, CDConv, ProNet, MaSIF, MIF, CARP, ProtBERT, UniRep, ProteinBERT). To make contributions, either submit a pull request or email mchungy1@jhu.edu for help on how to integrate your data into FLAb.

If you run into any problems while using FLAb, please create a Github issue with a description of the problem and the steps to reproduce it.

Citing this work

@article{chungyoun2023flab,
    title = {FLAb: Benchmarking tasks in fitness landscape inference for antibodies},
    author = {Chungyoun, Michael and Ruffolo, Jeff and Gray, Jeffrey J},
    journal = {bioRxiv},
    doi = {https://doi.org/10.1101/2024.01.13.575504}
    year = {2023}
}