Skip to main content

RFantibody

Designs antibody and nanobody loops against a target: RFdiffusion, then ProteinMPNN, then RoseTTAFold2 filtering.

Model ID rfantibody

How it works​

A job runs the whole pipeline: backbone design, sequence design, then RoseTTAFold2 scoring. It is slow and always a queued job. Send target_pdb and framework_pdb together, or neither: empty settings run the built-in influenza haemagglutinin and nanobody example. hotspots lists target residues to engage (letters, digits and commas) and loops the loops to design, in the form H1:7,H2:6,H3:5-13.

Settings​

settings of POST /submit-job and POST /validate-job with "type": "rfantibody". Unknown fields are refused, and an optional field you leave out takes the model's own default. GET /tools/rfantibody/schema returns the same fields as JSON Schema.

FieldTypeRequiredLimits
target_pdbstringnoup to 3,000,000 characters
framework_pdbstringnoup to 3,000,000 characters
hotspotsstringnoup to 200 characters
loopsstringnoup to 200 characters
n_designsintegerno1 to 10
seqs_per_structintegerno1 to 16
rf2_recyclesintegerno1 to 10
seed_deterministicbooleannosee the nested fields
  • target_pdb and framework_pdb: the text of two PDB files; give both or neither.
  • hotspots: target residues to engage, letters, digits and commas (for example chain and residue number). loops: the loops to design, in the form H1:7,H2:6,H3:5-13.
  • n_designs, seqs_per_struct and rf2_recycles size the run and its price.

Example request​

The built-in example (no files): two designs, four sequences each, ten RoseTTAFold2 recycles. This is the request the catalog prices. Send it to validate-job for a quote, then to submit-job.

{
"jobName": "rfab-example",
"type": "rfantibody",
"settings": {
"n_designs": 2,
"seqs_per_struct": 4,
"rf2_recycles": 10
}
}

Result files​

Checked against a real result.

  • scores.tsv (TSV): One row per designed sequence (n_designs x seqs_per_struct), with RF2's scores of its predicted complex and a tag that names it (samples_design_<n>_dldesign_<m>_best).
  • result.json (JSON): errors (empty when every stage ran), timings (rfdiffusion_s, proteinmpnn_s, rf2_s), gpu and gpu_seconds.

Scores:

  • interaction_pae (scores.tsv, tsv:interaction_pae; lower is better): Mean predicted aligned error between the antibody and the target, in angstroms. Lower means RF2 is surer of the interface.

  • pae (scores.tsv, tsv:pae; lower is better): Mean predicted aligned error over the whole complex, in angstroms.

  • pred_lddt (scores.tsv, tsv:pred_lddt; higher is better): Mean predicted lDDT of the complex, 0-1.

  • target_aligned_antibody_rmsd (scores.tsv, tsv:target_aligned_antibody_rmsd; lower is better): RMSD in angstroms of the antibody after aligning on the target, between the design and RF2's prediction of it.

  • No structure files are returned, only the scores. A framework_aligned_*_rmsd column holds NaN for a loop the design does not report (the captured run has NaN for L1 to L3): read it as missing, not zero.

  • In the captured run (2 designs, 4 sequences each) interaction_pae ran from 5.5 to 18.1, so a few of the sequences were far better than the rest: sort by it before reading anything else.

Runtime and limits​

A job gets at most 1,800 seconds of run time unless you send maxRuntimeS (up to 3,600 seconds with added credit); its maximum cost is held at that cap. On the free tier the cap is 600 seconds, shorter than this default, and a maxRuntimeS above it is refused as tier_limit: add credit for longer jobs. the built-in example: 2 designs, 4 sequences, 10 recycles is estimated at $0.373154 (about 413 seconds); POST /validate-job quotes your own request for free. See Pricing.

Licence​

MIT for code and weights. One weights file (the TCR weights, on Zenodo) is CC BY 4.0 and requires attribution.

Limits of the model​

The Nature paper reports VHH, scFv and antibody binders confirmed by yeast display and cryo-EM; designs from this tool are computational and need experimental testing.

Original GitHub repository