Benchmarks & Interactive Slide Decks¶
SeroGen maintains reproducible Marimo notebooks in scripts/ covering every stage of the pipeline: single-pass bacterial & prophage ORF prediction, polysaccharide-specific 1D-CNN gene role training and layer sweeping, and de novo capsular polysaccharide (CPS) locus discovery, hybrid MCL clustering, and pan-locus database construction.
Each notebook is configured with a native 16:9 Marimo slide layout (scripts/layouts/*.slides.json) and a cached session snapshot (scripts/__marimo__/session/*.py.json) that exports directly into the interactive slide decks embedded in this section.
-
Single-Pass Bacterial & Prophage ORF Benchmark
Evaluates
OrfPredictoron Escherichia coli K-12 MG1655 (CP014225.1,4.66 Mb) and its 9 embedded cryptic/lambdoid prophages, demonstrating how 29-state frameshift/overlap decoding and sliding 4-kb GC adaptation recover95.6%of prophage 3'-stops (+17rescued ORFs) and99.1%of host CDSs in a single pass at>60 Mb/s. -
Polysaccharide-Specific CNN Gene Role Classifier
Multi-source reference curation (
UniProtKB,UniRef50,NCBI IPG,KEGG), Optuna TPE hyperparameter optimization, Numba-parallel 8-layer representation sweep, and held-out validation (>90%accuracy & Macro F1) across all 29 functionalGeneRoles (src/serogen/data/model.npz), beating remote homology in the< 25%identity twilight zone. -
S. pneumoniae De Novo CPS Locus Discovery & Database
4-stage validation of de novo CPS locus discovery (
LocusPredictor), hybrid CNN-rescued MCL orthogroup clustering (Clusterer), directed pan-locus graph construction (Loci.as_pan_graph), contig-split stitching (100%recovery across intergenic & mid-ORF breaks), and leave-one-out novelty detection (LocusMatcher).
Running Notebooks Locally¶
All notebooks can be launched interactively as reactive web apps, slide presentations, or editable Marimo notebooks via uv:
# Launch any notebook directly in Marimo's fullscreen slide presentation mode
uv run --with marimo --with altair marimo run scripts/benchmark_prophage_orfs.py
uv run --with marimo --with altair marimo run scripts/benchmark_spneumo_db.py
uv run --with marimo --with altair --with optuna marimo run scripts/train_gene_classifier.py