Giter VIP home page Giter VIP logo

agn's Introduction

Anfinsen Goes Neural (AGN): a Graphical Model for Conditional Antibody Design

This is a public repository for our paper Anfinsen Goes Neural: a Graphical Model for Conditional Antibody Design.

Overview

Environmental Setup

Conda

# clone project
git clone https://github.com/lkny123/AGN.git
cd AGN

# setup environment
source scripts/install.sh

Data Preparation

Download

  1. Download all_structures.zip from the SAbDab download page.
  2. Move all_structures.zip to AGN/MEAN
  3. Unzip with unzip all_structures.zip

Pre-processing for MEAN

We use the data-preprocessing scripts provided by MEAN.

cd MEAN # in AGN/MEAN directory
bash scripts/prepare_data_kfold.sh summaries/sabdab_summary.tsv all_structures/imgt
bash scripts/prepare_data_rabd.sh summaries/rabd_summary.jsonl all_structures/imgt summaries/sabdab_all.json
bash scripts/prepare_data_skempi.sh summaries/skempi_v2_summary.jsonl all_structures/imgt summaries/sabdab_all.json

Pre-processing for ESM2

# copy data splits to AGN/data
mkdir -p ../data && \
rsync -avm --include='*/' \
--include='train.json' \
--include='valid.json' \
--include='test.json' \
--include='*.pdb' \
--exclude='*' \
summaries/ ../data/

# data pre-processing for ESM2
cd ../ # in AGN directory
bash scripts/prepare_data_kfold.sh
bash scripts/prepare_data_rabd.sh
bash scripts/prepare_data_skempi.sh

Benchmark Experiments

Task 1: Sequence and Structure Modeling

We first fine-tune/evaluate the sequence design model ESM2, then use its sequence predictions \hat{s} to train/evaluate the structure prediction model MEAN.

# Step 1: Sequence design
bash scripts/k_fold_train.sh # training sequence design model 
bash scripts/k_fold_eval.sh # evaluate AAR

# Step 2: Structure prediction 
bash scripts/generate_seqs_kfold.sh # generate sequence -- i.e., the input of the structure prediction model 
cd MEAN # in AGN/MEAN directory 
GPU=0 bash scripts/k_fold_train.sh summaries 111 mean 9901
GPU=0 bash scripts/k_fold_eval.sh summaries 111 mean 0

Task 2: Antibody-binding CDR-H3 Design

# Step 1: Sequence design
bash scripts/task2_train.sh # training sequence design model 
bash scripts/task2_eval.sh # evaluate AAR and CoSim

# Step 2: Structure prediction (MEAN)
bash scripts/generate_seqs_rabd.sh # generate sequence -- i.e., the input of the structure prediction model
cd MEAN # in AGN/MEAN directory 
GPU=0 MODE=111 DATA_DIR=summaries/cdrh3 bash train.sh mean 3
GPU=0 MODE=111 DATA_DIR=summaries/cdrh3 bash rabd_test.sh 0

Acknowledgements

We deeply appreciate the following works/repositories, on which our project heavily relies.

Citation

agn's People

Contributors

lkny123 avatar

Forkers

partrita

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.