# Binder Backbone Design OpenDDE supports backbone generation at masked polymer positions directly inside `runner/batch_inference.py pred`. Masked residues are represented by generic backbone atoms (`N, CA, C, O` for protein; sugar–phosphate backbone for RNA/DNA), and their MSA/template identity is cleared automatically during featurization. | Polymer entry | Unknown residue letter(s) in `sequence` | Model residue | | --- | --- | --- | | `proteinChain` | `X` | `UNK` (`N, CA, C, O` backbone) | | `rnaSequence` | `N` (or `X`) | `N` (RNA backbone) | | `dnaSequence` | `N` (or `X`) | `DN` (DNA backbone) | Pair masked positions with `distance_constraint` (`opendde_v2`) or TFG epitope guidance (`constraint.epitope`) to steer the designed loop or binder onto a target site. For design tasks, we recommend the design-optimized checkpoint `opendde_v2_co.pt` (`-n opendde_v2 --load_checkpoint_path "$OPENDDE_ROOT_DIR/checkpoint/opendde_v2_co.pt"`). Sequence decoding from the generated backbones is performed with an external inverse-folding tool (for example, SolubleMPNN or ProteinMPNN), after which candidate sequences can be refolded and ranked with `opendde_v2`. --- ## Case 1: Epitope-conditioned VHH CDR-H3 backbone design (`opendde_v2`) Keep the VHH framework (`FR1–FR4`) and CDR1/CDR2 fixed, replace the 10-residue CDR-H3 loop with `XXXXXXXXXX`, and specify antigen epitope residues through `distance_constraint.site`: ```json [ { "name": "7st3_vhh_h3_design", "modelSeeds": [101], "sequences": [ { "proteinChain": { "sequence": "YMLDLQPETTDLYCGGGGSGGGGSGGGGSIQRTPKIQVYSRHPAENGKSNFLNCYVSGFHPSDIEVDLLKNGERIEKVEHSDLSFSKDWSFYLLYYTEFTPTEKDEYACRVNHVTLSQPKIVKWDRDMGGGGSGGGGSGGGGSGGGGSGSHSMRYFFTSVSRPGRGEPRFIAVGYVDDTQFVRFDSDAASQRMEPRAPWIEQEGPEYWDGETRKVKAHSQTHRVDLGTLRGCYNQSEAGSHTVQRMYGCDVGSDWRFLRGYHQYAYDGKDYIALKEDLRSWTAADMCAQTTKHKWEAAHVAEQLRAYLEGTCVEWLRRYLENGKETLQRTDAPKTHMTHHAVSDHEATLRCWALSFYPAEITLTWQRDGEDQTQDTELVETRPAGDGTFQKWAAVVVPSGQEQRYTCHVQHEGLPKPLTLRWEHHHHHH", "count": 1, "id": ["A"], "pairedMsaPath": "./examples/constraint/msa/7st3/1/pairing.a3m", "unpairedMsaPath": "./examples/constraint/msa/7st3/1/non_pairing.a3m" } }, { "proteinChain": { "sequence": "EVKLVESGGGLVQPGGSLRLSCAASGSIFSINTMGWYRQTPGKQRDLVADISSGGSTKYGDSVKGRFTISRDNTKNTVYLQMNSLKPEDTAVYYCXXXXXXXXXXWGQGTQVTVSS", "count": 1, "id": ["B"], "unpairedMsaPath": "./empty.a3m" } } ], "distance_constraint": { "site": [ { "source": [{"entity": 2}], "site": [{"entity": 1, "positions": [69, 72]}], "max_distance": 8.0 } ] } } ] ``` Create the empty `.a3m` placeholder so the designed antibody chain runs without an MSA while the antigen keeps its precomputed MSA, then sample backbones: ```bash touch empty.a3m python runner/batch_inference.py pred \ -i 7st3_vhh_h3_design.json \ -o ./output_design \ -n opendde_v2 \ --use_msa true \ --sample 5 \ --step 200 \ --cycle 10 ``` For single-sequence runs without any MSA, omit the `*MsaPath` fields and pass `--use_msa false`. --- ## Case 2: Paired VH–VL CDR-H3 + CDR-L3 design with TFG epitope guidance Mask both CDR-H3 on chain `H` and CDR-L3 on chain `L` with `X`, and guide the paired Fv (`movable_chains: ["H", "L"]`) onto antigen epitope residues with TFG: ```json [ { "name": "vhvl_h3_l3_design", "modelSeeds": [101], "sequences": [ { "proteinChain": { "sequence": "EVQLVESGGGLVQPGGSLRLSCAASGFTFSSYAMSWVRQAPGKGLEWVSAISGSGGSTYYADSVKGRFTISRDNSKNTLYLQMNSLRAEDTAVYYCAKXXXXXXXXXXXXWGQGTLVTVSS", "count": 1, "id": ["H"], "unpairedMsaPath": "./empty.a3m" } }, { "proteinChain": { "sequence": "DIQMTQSPSSLSASVGDRVTITCRASQSISSYLNWYQQKPGKAPKLLIYAASSLQSGVPSRFSGSGSGTDFTLTISSLQPEDFATYYCXXXXXXXXXFGQGTKVEIK", "count": 1, "id": ["L"], "unpairedMsaPath": "./empty.a3m" } }, { "proteinChain": { "sequence": "MKTIIALSYIFCLVFA...", "count": 1, "id": ["A"], "pairedMsaPath": "/path/to/antigen_msa/pairing.a3m", "unpairedMsaPath": "/path/to/antigen_msa/non_pairing.a3m" } } ], "constraint": { "movable_chains": ["H", "L"], "epitope": { "residues": [ {"entity": "3", "copy": 1, "position": "45"}, {"entity": "3", "copy": 1, "position": "48"}, {"entity": "3", "copy": 1, "position": "52"} ], "paratope": "cdr", "min_fraction": 0.5 } } } ] ``` ```bash python runner/batch_inference.py pred \ -i vhvl_h3_l3_design.json \ -o ./output_vhvl_design \ -n opendde_v2 \ --use_msa true \ --use_tfg_guidance true \ --dtype bf16 \ --enable_tf32 false \ --sample 5 ``` --- ## Case 3: Nucleic acid backbone design (`rnaSequence` / `dnaSequence`) Mask designed RNA or DNA positions with `N` alongside a target protein: ```json [ { "name": "rna_motif_design", "modelSeeds": [101], "sequences": [ { "proteinChain": { "sequence": "MKTIIALSYIFCLVFA...", "count": 1, "id": ["A"] } }, { "rnaSequence": { "sequence": "GGGNNNNNNNNCCC", "count": 1, "id": ["R"] } } ], "distance_constraint": { "site": [ { "source": [{"entity": 2}], "site": [{"entity": 1, "positions": [10, 12]}], "max_distance": 8.0 } ] } } ] ``` --- ## Downstream sequence design and refolding 1. Generated structures are written to `//seed_/predictions/_sample_.cif`, with `UNK` (`N, CA, C, O`) at masked protein positions. 2. Run an external inverse-folding model (such as SolubleMPNN or ProteinMPNN) on the generated `.cif` backbones, redesigning only the masked positions while keeping the target and framework fixed. 3. Replace the `X` positions in the input JSON with the decoded sequences and refold without constraints (`runner/batch_inference.py pred -n opendde_v2`) to rank candidates by `iptm`, `ranking_score`, and backbone RMSD.