Example Requests
OpenFold2 NIM provides the following endpoint:
biology/openfold/openfold2/predict-structure-from-msa-and-template: Perform structure prediction from an input MSA and templates.
Usage
Below, we give real examples of requests that should run when the NIM is correctly configured.
Note: We do not recommend submitting requests to this endpoint using the tool, curl, as its inputs have characters that require careful escaping in bash. We recommend interacting with this endpoint using the Python request module.
Predict Structure
The endpoint accepts requests where the data is formatted as in the OpenApI Specification
Here is an example request using the Python requests module.
- The field
sequenceis required. - The field
alignmentsis optional, but omission can result in inaccurate structures. If included, the MSA content must be ina3mformat. - The field
selected_modelsis optional, but included here to reduce runtime, since the default specifies 5 models. - If you want to include templates, they must be in
hhrformat.
The following workflow is recommended when predicting structures for a given protein sequence.
- Use other tools to produce multiple-sequence-alignments, and to
put them in the
a3mformat. - Use other tools, and potentially the MSA results from step 1 to generate
template search results in an
hhrfile - Load the
a3mfiles andhhrfiles, in a Python script, and format the request as specified in the Open API specifications, included at the end of this documentation.
The runtime for structure prediction is impacted by both sequence length and the number of sequences in the multiple-sequence-alignment. On an `NVIDIA H100 80GB HBM3’ device, this example should complete in under 30 seconds.