SeqTrainer is a synthetic biology ML domain toolkit focused on connecting SBOL / SynBioHub data to modern model workflows.
It is designed to be complementary to Keras and PyTorch rather than replacing them.
- Clear package layering under
seqtrainer/ - Framework-neutral core (
clients,sparql,data,transforms,models) - Optional framework adapters (
seqtrainer.keras,seqtrainer.torch) - Graph-focused utilities in
seqtrainer.graph - Application-level API entrypoints in
seqtrainer.applications - CLI foundation (
seqtrainercommand)
pip install -e .Optional extras:
pip install -e '.[torch]'
pip install -e '.[keras]'
pip install -e '.[gnn]'
pip install -e '.[dev]'seqtrainer/clients: SynBioHub and remote clients (auth/retry/pagination-ready client)seqtrainer/sparql: prefixes, builders, canonical query recipes, and typed result normalizationseqtrainer/data: SBOL loaders, recipes, materialized datasets, local snapshots/cache manifestsseqtrainer/transforms: DNA transforms and feature extractionseqtrainer/models: framework-neutral backbone/head registries and default model specsseqtrainer/keras: Keras model factories + tensorizedtf.dataadapters fromMaterializedDataset(optional dependency)seqtrainer/torch: PyTorch tensorized adapters/dataloaders, HF/DNABERT backbones, and regression/classification heads (optional dependency)seqtrainer/graph: RDF/SBOL graph conversion, schema extraction, and graph-config buildersseqtrainer/applications: task-oriented blueprintsseqtrainer/cli: command-line entrypoints
seqtrainer sparql prefixes
seqtrainer inspect-sbol data/sbol_data/sample_design_0.xml
seqtrainer dataset recipes
seqtrainer dataset build data/sbol_data/sample_design_0.xml --cache
seqtrainer model build --framework torch --task regressionThis is the first architecture-focused cleanup. Some framework integrations are intentionally placeholders with TODOs to keep a stable, minimal public surface.
The repository includes a GitHub Actions CI matrix for:
- base test suite
torchextrakerasextragnnextra- lint (
ruff) and type checks (mypy) - packaging build +
twine check