How rosettacommons/rfantibody works
Project Type and Purpose
• RFantibody is a full-stack, multi-step computational pipeline for structure-based de novo antibody (and nanobody) design.
• It integrates three main methods – structure design using RFdiffusion (with antibody‐fine tuning), sequence design via ProteinMPNN, and in silico filtering/validation using an antibody-adapted version of RoseTTAFold2 (RF2).
• Additionally, it includes utility modules for handling Quiver files (a custom archive format for many designs) and support libraries (e.g., SE3Transformer and USalign).
Main Components
• User/host environment: Represents the end-user’s workstation or cloud compute environment equipped with Docker and an NVIDIA GPU.
• Docker Environment:
• Docker container (built via the provided Dockerfile) where the pipeline is executed.
• Input Preparation:
• HLT file preparation module (runs scripts like chothia_to_HLT.py) that formats PDB files into HLT files.
• RFdiffusion Module:
• Responsible for antibody-target docking using a fine-tuned version of RFdiffusion.
• Accepts target PDB and framework/HLT PDB as inputs.
• Outputs designed backbone structures (potentially written as either PDB or Quiver files).
• ProteinMPNN Module:
• A separate component that takes the backbone designs from RFdiffusion (or from the Quiver file) and assigns sequences to the designed CDR loops.
• RF2 Module:
• Acts as a structure predictor and confidence estimator to evaluate the designed antibodies by re-predicting their structure.
• Quiver Utilities:
• Includes command-line tools (e.g., qvfrompdbs, qvls, qvextractspecific, qvrename, qvscorefile, qvsplit) used to bundle, list, modify, and extract designs.
• External Dependencies:
• External libraries like SE3Transformer and USalign which are available in the “include” directory.
• Also mention that the project uses Python (with Poetry for environment management) and third-party libraries such as Deep Graph Library (DGL).
Representing Interactions and Data Flows
• From the “User/Host” to “Docker Environment”: indicating that Docker is required and that the entire pipeline is started from the host.
• From the “Input Preparation” module to the “RFdiffusion Module”: showing the conversion of input PDB files (with Chothia annotations) into HLT-formatted files.
• From RFdiffusion to ProteinMPNN: the backbone designs (either as individual PDBs or packaged in a Quiver file) are passed as input for sequence design.
• From ProteinMPNN to RF2 Module: the generated designs with sequences are then evaluated by RF2.
• Also, include side paths that utilize the “Quiver Utilities”, which can act both as input and output handlers between steps.
Architectural Patterns and Design Principles
• The separation of concerns is prominent: each step (RFdiffusion, ProteinMPNN, RF2) works independently and communicates via well-defined file formats (HLT files and Quiver files).
• Modularity: each module can be developed and updated separately.
• Containerization: Since the entire pipeline is encapsulated within a Docker container, show a boundary labeled “Docker Container” that encloses most of the execution modules.
• GPU Acceleration: Explicitly represent a “GPU” symbol connected to the modules that require heavy computation (RFdiffusion and RF2).