Python client for the BioNeMo Service
Project description
BioNeMo Service Python Client
The BioNeMo Service Python Client provides a python API into the BioNeMo inference service. The BioNeMo service uses NVIDIA Triton inference infrastructure to deploy ML models relevant to biology and chemistry applications. This client exposes easy-to-use python functions that call directly to the inference service, allowing users to use state-of-the-art models with little setup.
Learn more and apply for access to BioNeMo here.
Example: Generate novel protein sequences and perform folding
from bionemo.api import BionemoClient
from time import sleep
# Create a client instance
api = BionemoClient("APIKEY")
# Generate novel proteins
novel_proteins = api.protgpt2_sync(max_length=200, num_return_sequences=10)
# Request folding of novel proteins in parallel
submitted_requests = []
for protein in novel_proteins["generated_sequences"]:
request_id = api.openfold_async(protein)
submitted_requests.append(request_id)
# Wait for results, write to disk
while len(submitted_requests):
sleep(10)
for request_id in submitted_requests:
if api.fetch_task_status(request_id) == "DONE":
folded_protein = api.fetch_result(request_id)
with open(str(request_id) + ".pdb", "w") as f:
f.write(folded_protein)
submitted_requests.remove(request_id)
Currently, the following models and workflows are available for inference:
Protein Structure Prediction:
- AlphaFold-2
- OpenFold
- ESMFold
Protein Embedding:
- ESM-2
- ESM-1nv
Docking:
- Diffdock
Protein Sequence Generation:
- ProtGPT2
Small Molecule Embedding and Generation:
- MegaMolBart
- MoFlow
- MolMIM
Multiple Sequence Alignment
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file bionemo-0.3.1.post1-py3-none-any.whl
.
File metadata
- Download URL: bionemo-0.3.1.post1-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 399e683cf96eab55e6b1a7648fbc7cdc896a9ff142f047cc42b2697f792a5937 |
|
MD5 | 53809cd8eaa37fd9ff2d30d3c01d1b23 |
|
BLAKE2b-256 | 39dee48e4f53ed6b45a8d1811373d3795893d1d63aef0426fc6e784149a2cbfc |