
NVIDIA/BioNeMo MSA-Search
NVIDIA NIM for MSA-Search multiple sequence alignment generation.
MSA-Search provides multiple sequence alignment (MSA), a modular pre-processing step used in folding model workflows such as OpenFold and AlphaFold2. Multiple Sequence Alignment (https://en.wikipedia.org/wiki/Multiple_sequence_alignment) identifies evolutionarily related sequences to help these models predict protein structure more accurately. It supports both protein and RNA sequence search, using GPU-accelerated MMseqs2 and Riboseek respectively.
Call BioNeMo MSA-Search on Baseten using the NIM standard MSA route.
Note: You need to procure your own NVAIE licenses to access this NIM. The NIM requires an ngc_api_key secret in your Baseten workspace — add your NVIDIA NGC API key (the nvapi-… value) as a secret named ngc_api_key before deploying.
Input
import os
import requests
MODEL_ID = os.environ["BASETEN_MODEL_ID"]
BASETEN_API_KEY = os.environ["BASETEN_API_KEY"]
BASETEN_URL = (
f"https://model-{MODEL_ID}.api.baseten.co/environments/production/sync"
"/biology/colabfold/msa-search/predict"
)
sequence = "LSDEDFKAVFGMTRSAFANLPLWKQQNLKKEKGLF"
payload = {"sequence": sequence}
response = requests.post(
BASETEN_URL,
headers={
"Authorization": f"Bearer {BASETEN_API_KEY}",
"Content-Type": "application/json",
},
json=payload,
timeout=300,
)
response.raise_for_status()
result = response.json()
print(result)
Output
{
"a3m": ">query\nLSDEDFKAVFGMTRSAFANLPLWKQQNLKKEKGLF\n<alignment rows>"
}