Skip to main content

A brief description of your package

Project description

One can use the Colab to evaluate our latest models.

ProteinInvBench: Benchmarking Protein Design on Diverse Tasks, Models, and Metrics

Model zoom: https://zenodo.org/record/8031783

📘Documentation | 🛠️Installation | 🚀Model Zoo | 🆕News

This repository is an open-source project for benchmarking structure-based protein design methods, which provides a variety of collated datasets, reprouduced methods, novel evaluation metrics, and fine-tuned models that are all integrated into one unified framework. It also contains the implementation code for the paper:

ProteinInvBench: Benchmarking Protein Design on Diverse Tasks, Models, and Metrics

Zhangyang Gao, Cheng Tan, Yijie Zhang, Xingran Chen, Stan Z. Li.

Introduction

ProteinInvBench is the first comprehensive benchmark for protein design. The main contributions of our paper could be listed as four points below:

  • Tasks: We extend recent impressive models from single-chain protein design to the scenarios of multi-chain and de-novoprotein design.
  • Models: We integrate recent impressive models into a unified framework for efficiently reproducing and extending them to custom tasks.
  • Metrics: We incorporate new metrics such as confidence, sc-TM, and diversity for protein design, and integrate metrics including recovery, robustness, and efficiency to formulate a comprehensive evaluation system.
  • Benchmark: We establish the first comprehensive benchmark of protein design, providing insights into the strengths and weaknesses of different methods.


(back to top)

Install via pip

pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.4.0+cu121.html
pip install -r requirements.txt
pip install PInvBench==0.1.0

Overview

Major Features
  • Unified Code Framework ProteinInvBench integrates the protein design system pipeline into a unified framework. From data preprocessing to model training, evaluating and result recording, all the methods collected in this paper could be conducted in the same way, which simplifies further analysis to the problem. In detail, ProteinInvBench decomposes computational protein design algorithms into methods (training and prediction), models (network architectures), and modules. Users can develop their own algorithms with flexible training strategies and networks for different protein design tasks.
  • Comprehensive Model Implementation ProteinInvBench collects a wide range of recent impressive models together with the datasets and reproduces all the methods in each of the datasets with restricted manners.
  • Standard Benchmarks ProteinInvBench supports standard benchmarks of computational protein design algorithms with various evaluation metrics, including novel ones such as confidence, diversity, and sc-TM. The wide range of evaluataion metrics helps to have a more comprehensive understanding of different protein design algorithms.
Code Structures
  • run/ contains the experiment runner and dataset configurations.
  • configs/ contains the model configurations
  • opencpd/core contains core training plugins and metrics.
  • opencpd/datasets contains datasets and dataloaders.
  • opencpd/methods/ contains collected models for various protein design methods.
  • opencpd/models/ contains the main network architectures of various protein design methods.
  • opencpd/modules/ contains network modules and layers.
  • opencpd/utils/ contains some details in each model.
  • tools/ contains the executable python files and script files to prepare the dateset and save checkpoints to the model.
Demo Results The result of methods collected on CATH dataset is listed as following:


(back to top)

News and Updates

[2023-06-16] ProteinInvBench v0.1.0 is released.

Installation

This project has provided an environment setting file of conda, users can easily reproduce the environment by the following commands:

git clone https://github.com/A4Bio/OpenCPD.git
cd opencpd
conda env create -f environment.yml
conda activate opencpd
python setup.py develop

Getting Started

Obtaining Dataset

The processed datasets could be found in the releases.

To note that, due to the large file size, ProteinMPNN dataset was uploaded in a separate file named mpnn.tar.gz, others could be found in data.tar.gz

Model Training

python main.py --method {method} 

(back to top)

Overview of Supported Models, Datasets, and Evaluation Metrics

We support various protein design methods and will provide benchmarks on various protein datasets. We are working on adding new methods and collecting experiment results.

  • Protein Design Methods.

    Currently supported methods

    The models and their corresponding results and checkpoints can be downloaded here

    Currently supported datasets

    To download the processed datasets, please click here The details of the datasets could be found in dataset.md

    • CATH
    • PDB
    • CASP15
    Currently supported evaluation metrics
    • Recovery
    • Confidence
    • Diversity
    • sc-TM
    • Robustness
    • Efficiency

(back to top)

License

This project is released under the Apache 2.0 license. See LICENSE for more information.

Acknowledgement

ProteinInvBench is an open-source project for structure-based protein design methods created by researchers in CAIRI AI Lab. We encourage researchers interested in protein design and other related fields to contribute to this project!

Citation

@inproceedings{
gao2023proteininvbench,
title={ProteinInvBench: Benchmarking Protein Inverse Folding on Diverse Tasks, Models, and Metrics},
author={Zhangyang Gao and Cheng Tan and Yijie Zhang and Xingran Chen and Lirong Wu and Stan Z. Li},
booktitle={Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track},
year={2023},
url={https://openreview.net/forum?id=bqXduvuW5E}
}

Contribution and Contact

For adding new features, looking for helps, or reporting bugs associated with ProteinInvBench, please open a GitHub issue and pull request with the tag "new features", "help wanted", or "enhancement". Feel free to contact us through email if you have any questions.

(back to top)

TODO

  1. Switch code to torch_lightning framework (Done)
  2. Deploy code to public server
  3. Support pip installation

InverseFolding as Evaluation Tools

export PYTHONPATH=path/ProteinInvBench
python PInvBench/evaluation_tools/InverseFolding.py --pdb_path test_pdbs --sv_fasta_path test.fasta --model UniIF --topk 5 --temp 1.0

For each pdb file in test_pdbs, we use UniIF to design the corresponding top-k sequence and save the results in test.fasta. The sampling tempertature is 1.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pinvbench-0.1.0.tar.gz (138.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PInvBench-0.1.0-py3-none-any.whl (327.6 kB view details)

Uploaded Python 3

File details

Details for the file pinvbench-0.1.0.tar.gz.

File metadata

  • Download URL: pinvbench-0.1.0.tar.gz
  • Upload date:
  • Size: 138.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for pinvbench-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c959f2bf9a85ff7e0c9ffcbbab7f591983fb3849b29a9f5dda40eaa1188e2fd1
MD5 1819754e97fc23ee8e93f3a4efa60d6e
BLAKE2b-256 3aa6375ca826f6332b411a02fb6c59c7061be25d066974c8795cecac32f411ed

See more details on using hashes here.

File details

Details for the file PInvBench-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: PInvBench-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 327.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for PInvBench-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 683bde503a381f7c211c3518c537c6981fb8a69d9a7deda84242a0b46cc4bc1f
MD5 649e996a1c8bfcb14ab8905acfe0d22b
BLAKE2b-256 c80bdf7c75d2ab8a5bccb7f973a7aee7625155d74aac454226554ad1c990f3c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page