biotrainer-core
A lightweight Python package providing shared data classes, I/O utilities, and helper functions for protein-related projects.
Purpose
biotrainer-core is designed as a minimal, dependency-light foundation that can be reused across multiple protein ML
projects (e.g. biotrainer) without pulling in heavy frameworks like PyTorch
or Transformers.
Features
Data Classes
Pydantic-based data models shared across protein ML workflows:
- Sequence data — representations for protein sequences and their metadata
- Protocols — supported task types (residue-level, sequence-level, contact prediction, …)
- Metrics — structured containers for evaluation metrics
- Model results & predictions — standardised output formats for biotrainer models
- Embedding statistics — summary statistics over embedding spaces
- AutoEval — data classes for automated evaluation tasks, reports, and benchmark datasets (FLIP, PBC)
H5 File Handling
Utilities for reading and writing HDF5 files used to store protein embeddings:
H5Database— high-level interface for embedding databases- Low-level helpers for chunked I/O and dataset management
Functions
Pure utility functions with no side effects:
- Hashing — deterministic sequence hashing
- Seeding — reproducible random seed management
- Ranking — ranking helpers for evaluation
- Bootstrapping — confidence interval estimation via bootstrapping
Input Files
- FASTA parsing — read and validate FASTA files into typed sequence objects
Installation
pip install biotrainer-core
License
MIT — see LICENSE for details.
Metadata
Release files for biotrainer-core 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| biotrainer_core-2.1.0.tar.gz | 33.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| biotrainer_core-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 81.0 kB
Release files / biotrainer_core-2.1.0.tar.gz
| Download URL | biotrainer_core-2.1.0.tar.gz |
|---|---|
| Size | 33.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c8edafd29367da4708c9637132b9183903fc1bcad4b8e8ed9ede18011f4409d
|
|
BLAKE2b-256 checksum How to use checksums |
b63a53540acc63b7ad9e38b1a38c7c03e3cd24c22bff79e9bdaf276d55d14996
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / biotrainer_core-2.1.0-py3-none-any.whl
| Download URL | biotrainer_core-2.1.0-py3-none-any.whl |
|---|---|
| Size | 47.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3477b2527e8dea66b4a4783d76de0a2fe0c8da3697de0b1670092e1e4afed2b0
|
|
BLAKE2b-256 checksum How to use checksums |
1f399fffc6777506c1fa83787efb9e54ef96765349b101151d38d51d526aa3ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|