← API reference
Structure prediction · Antibody design

ImmuneBuilder API

Deep-Learning models for predicting the structures of immune proteins.

A set of deep learning models trained to accurately predict the structure of antibodies (ABodyBuilder2), nanobodies (NanoBodyBuilder2) and T-Cell receptors (TCRBuilder2). By predicting an ensemble of structures, ImmuneBuilder also gives an error estimate for every residue in its final prediction.

Tasks

Pick a mode with task

Fields belonging to another task are ignored, so send only the ones for the task you chose.

taskMode
antibody default Antibody (Fv)
nanobody Nanobody (VHH)
tcr T-cell receptor
Request body

Fields

The same names the web form posts. See the field type table for what each kind means over HTTP.

Name Type Required Default Description
job_name string text no immunebuilder-demo Job name
heavy_sequence antibody string textarea yes EVQLVESGGGLVQPGGSLRLSCAASGFNIKDTYIHWVRQAPGKGLEWVARIYPTNGYTRYADSVKGRFTISADTSKNTAYLQMNSLRAED … Heavy-chain sequence Variable domain only; constant domains are not modelled.
light_sequence antibody string textarea yes DIQMTQSPSSLSASVGDRVTITCRASQDVNTAVAWYQQKPGKAPKLLIYSASFLYSGVPSRFSGSRSGTDFTLTISSLQPEDFATYYCQQ … Light-chain sequence
vhh_sequence nanobody string textarea yes EVQLVESGGGLVQPGGSLRLSCAASGRTFSYNPMGWFRQAPGKGRELVAAISRTGGSTYYPDSVEGRFTISRDNAKRMVYLQMNSLRAED … VHH sequence
alpha_sequence tcr string textarea yes QSVTQPDARVTVSEGASLQLRCKYSYSATPYLFWYVQYPRQGLQLLLKYYSGDPVVQGVNGFEAEFSKSNSSFHLRKASVHWSDSAVYFC … TCR alpha-chain sequence
beta_sequence tcr string textarea yes NAGVTQTPKFQVLKTGQSMTLQCAQDMNHEYMSWYRQDPGMGLRLIHYSVGAGITDQGEVPNGYNVSRSTTEDFPLRLLSAAPSQTSVYF … TCR beta-chain sequence
numbering_scheme string select no imgt Numbering scheme How the residues of the returned structure are numbered. One of: imgt, chothia, kabat, aho, martin, wolfguy, raw.
n_threads number number no 0 CPU threads for refinement 0 refines on the GPU; any other value forces OpenMM onto that many CPU threads. minimum 0, maximum 64.
no_sidechain_bond_check boolean checkbox no false Skip the strained-bond check Slightly faster, at the risk of an occasional unphysical side chain.
original_weights tcr boolean checkbox no false Use the original TCRBuilder2 weights Off by default, which uses the newer TCRBuilder2+ weights.
Example

A request that runs

These are the defaults, exactly as the web form would post them.

curl -X POST https://athanortools.com/api/immunebuilder/ \
  -H 'Content-Type: application/json' \
  -d '{
  "task": "antibody",
  "job_name": "immunebuilder-demo",
  "heavy_sequence": "EVQLVESGGGLVQPGGSLRLSCAASGFNIKDTYIHWVRQAPGKGLEWVARIYPTNGYTRYADSVKGRFTISADTSKNTAYLQMNSLRAEDTAVYYCSRWGGDGFYAMDYWGQGTLVTVSS",
  "light_sequence": "DIQMTQSPSSLSASVGDRVTITCRASQDVNTAVAWYQQKPGKAPKLLIYSASFLYSGVPSRFSGSRSGTDFTLTISSLQPEDFATYYCQQHYTTPPTFGQGTKVEIK",
  "numbering_scheme": "imgt",
  "n_threads": 0,
  "no_sidechain_bond_check": false
}'

The reply is 202 with a queued job; poll its status_url until status is succeeded or failed. See the quick start for the whole exchange.

Responses

What comes back

statusMeaning
queued Accepted, waiting for the jobs ahead of it. `position` counts how many those are.
running The tool is executing now.
succeeded Finished; `result` holds the tool's output and `license` the terms it came under.
failed Finished; `error` holds a code and a message.
cancelled Abandoned at the submitter's request; there is no result. A job cancelled before its turn never ran at all.

Errors

codeMeaning
invalid_input The client supplied invalid or incomplete input.
tool_unavailable The requested third-party dependency is not available on this host.
execution_failed A configured third-party tool exited unsuccessfully.
internal_error An adapter failed in a way it does not describe. The detail is in the server log, not the response.
not_found No job has that id. Finished jobs are dropped eventually.
unauthorized HTTP 401. The bearer token is wrong, was revoked, or belongs to an account that can no longer sign in. Nothing was run.
job_limit_reached HTTP 429. This address, not being signed in, has submitted as many jobs as it may in 24 hours. Accounts have no limit.