Code Monkey home page Code Monkey logo

protein-design-framework's Introduction

Protein design framework

This repository present the protein design framework described in the paper. The fixed-backbone protein sequence design model (PSdesign) were built based on AlphaDesign. We also fine-tuned the ESM2 model to get a specialized version, ESM2_TadA. These codes are only available for non-commercial usage.

Requirements

The following python packages are required.

  • numpy, pandas
  • pytorch
  • torch_scatter
  • ESM2
  • biotite

Step1. Train the protein design model

$ python train_test_design_fp16_v13v3best2.py

Step2. Fine-tune the protein design model for TadA

Before runing this script, you need to prepare the dataset( using ESMFold to generated pdb files). Then set the path of checkpoint for the pre-tained model from step1. The esmfold_inference.py file is directly from ESM2.

$ python esmfold_inference.py -i seqdump_8e2p_top4791.fa -o esmfold/8e2p_top4791 > seqdump_8e2p_top4791.log
$ python train_test_design_fp16_v13v3best2_tadA.py

Step3. Fine-tune the ESM2 model for TadA

Prepare the dataset: Execute PREdata_TadA.py, providing the fasta file as input, and obtain pt files stored within the train_4791 and test_4791 directories.

$ python PREdata_TadA.py

In TadA_train.py, specify the paths for the train_4791 and test_4791 directories. Run the code for training. The training process will retain the optimal model based on the loss on the test set. Multi-GPU training is supported in the training process. Example usage:

$ CUDA_VISIBLE_DEVICES=0,1 python TadA_train.py

Step4. Generate probability distribution

Before runing this script, you need to set the path of checkpoint for the fine-tuned model from step2.

$ python run_predict_proteindesign_v3_tadA.py -i 8e2p.chainA.pdb -o finetune_tada_8e2p

Step5. Protein sequence generation

$ python generate_tada_sequences.py

Citation

Please cite the following article:

Contact

Author: Dr. Guipeng Li

Email: guipeng.lee(AT)gmail.com

protein-design-framework's People

Contributors

guipengli avatar

Stargazers

Aidi Tan avatar

Watchers

 avatar

protein-design-framework's Issues

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.