Skip to main content

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for biotrainer-core 2.1.1
File Size Uploaded
biotrainer_core-2.1.1.tar.gz 33.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for biotrainer-core 2.1.1
File Interpreter ABI Platform
biotrainer_core-2.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 81.0 kB

Release files / biotrainer_core-2.1.1.tar.gz

Download URL biotrainer_core-2.1.1.tar.gz
Size 33.6 kB
Tags Source
SHA-256 checksum
How to use checksums
34d4cd2a018eaee9482dfaedf7ae8939b6d7e14fea55bb3b3ad7963b7b9ee4c4
BLAKE2b-256 checksum
How to use checksums
3979d5c6486f8ab413a11fbd11750b6859514363179f00c64bee943f1baf7b98
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.1-py3-none-any.whl

Download URL biotrainer_core-2.1.1-py3-none-any.whl
Size 47.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62c0fbe8a53da63bcac3ceed08ecc3057c1f95aa54c5060f271c38e8ace6590e
BLAKE2b-256 checksum
How to use checksums
1b2ad6c61901672b82dcf56f5f8543967fa3fdacb6d31bb1d83b70315c6f489d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.1.0

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page