Programmatic access to the biocentral ecosystem.
Project description
biocentral_api - Python Client
Python API package for biocentral.
Installation
pip install biocentral-api
Basic Usage
Embedding protein sequences:
from biocentral_api import BiocentralAPI, CommonEmbedder
biocentral_api = BiocentralAPI()
# ProtT5
embedder_name = CommonEmbedder.ProtT5
reduce = True
sequence_data = {"Seq1": "MMALSLALM"}
result = biocentral_api.embed(embedder_name=embedder_name, reduce=reduce, sequence_data=sequence_data,
use_half_precision=False).run()
print(result)
For more examples, please refer to the examples folder.
Service Limitations
The following limitations are currently in place:
- Sequence Limit: The embed() API has a limit of 1,000 sequences per request. See the amylase example for how to deal with datasets that exceed this limit.
- Rate Limiting: Most endpoints have a quite strict rate limiting to distribute the available resources as fair as possible. All affected endpoints have a built-in retry mechanism to handle the rate limiting.
- 431 Forbidden: Sometimes, the DDoS Protection of the API will send a mistaken 431 forbidden response. If you encounter this, please just try to re-run your script.
Citation
Please cite our paper if you are using the biocentral API in your work:
@Article{Franz2026,
author = {Franz, Sebastian and Olenyi, Tobias and Schloetermann, Paula and Smaoui, Amine and Jimenez-Soto, Luisa F. and Rost, Burkhard},
journal = {Journal of Molecular Biology},
title = {biocentral: embedding-based protein predictions},
year = {2026},
issn = {0022-2836},
month = jan,
pages = {169673},
doi = {10.1016/j.jmb.2026.169673},
groups = {[JMB] biocentral: embedding-based protein predictions, swc_bo_engineering},
publisher = {Elsevier BV},
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
biocentral_api-1.1.2.tar.gz
(73.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file biocentral_api-1.1.2.tar.gz.
File metadata
- Download URL: biocentral_api-1.1.2.tar.gz
- Upload date:
- Size: 73.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26c38a3fab4b5656354513fb7da0d77b3cf83225be577d27a388eb4479a5c028
|
|
| MD5 |
c8d128a85e559f5eb6a452294b7f1c6c
|
|
| BLAKE2b-256 |
1cc24711c0d6684d914786663dd5357513a748f2ecfd36d97a7486709c6af6fa
|
File details
Details for the file biocentral_api-1.1.2-py3-none-any.whl.
File metadata
- Download URL: biocentral_api-1.1.2-py3-none-any.whl
- Upload date:
- Size: 159.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d347c21c7842c1b5b35ccee13d99aee87d95f850662dec69ebca510bd620d00e
|
|
| MD5 |
bfcbcb1d4c2984a9278de2679f273884
|
|
| BLAKE2b-256 |
b8147f9134c2cca03736f3eb78c56276d42f29c28b7c2f8e14730418d815a662
|