Home

Awesome

carbonara summary

CARBonAra: Context-aware geometric deep learning for protein sequence design

Overview

CARBonAra is a deep learning framework that facilitates protein sequence design by leveraging atomic coordinates, allowing for context-aware sequence generation. This method is particularly useful for integrating protein design with molecular environments, including non-protein entities, providing more control to protein engineering.

Features

Install

You can install CARBonAra easily in a few minutes using pip and conda:

  1. Clone the repository:
git clone https://github.com/LBM-EPFL/CARBonAra
cd CARBonAra
  1. Create and activate a new conda environment:
conda create -n carbonara
conda activate carbonara
  1. Install the package and dependencies:
pip install .

Usage

Command line tool

To generate sequences using a specific protein structure:

carbonara --num_sequences 100 --imprint_ratio 0.5 examples/pdbs/2oob.pdb outputs

Python package

To use CARBonAra directly in a Python script:

from carbonara import CARBonAra, imprint_sampling

# load model
carbonara = CARBonAra(device_name="cuda")

# sample sequences
sequences, scores, pssm, structure_scaffold = imprint_sampling(
    carbonara=carbonara, 
    pdb_filepath="examples/pdbs/1zns.pdb",  # input structure
    num_sample=100,  # number of sequences to sample
    imprint_ratio=0.5,  # control sampling diversity with prior
)

For more detailed examples and use cases, see quickstart.ipynb.

Functionalities

required arguments

optional arguments

Reproducibility

Repository structure

Results

Anaconda environment

To replicate the specific environment used for development, create and activate it using:

conda env create -f carbonara.yml
conda activate carbonara

ESM-IF1 integration

For additional benchmarking with ESM-IF1, install it as follow:

conda create -n inverse python=3.9
conda activate inverse
conda install pytorch cudatoolkit=11.3 -c pytorch
conda install pyg -c pyg -c conda-forge
conda install pip
pip install ipykernel biotite
pip install git+https://github.com/facebookresearch/esm.git

License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0

Reference