bioRxivBioinformaticsPreprint
flodl-bio: First Rust data, transformers and model layer for entire deep learning on biological sequences
Abstract
Python ecosystem dominates the deep learning framework. flodl-bio is a Rust crate that extends flodl, a libtorch-backed deep-learning framework, with deep learning on biological sequences. To our knowledge, flodl-bio is the first Rust crate that provides a comprehensive and practical deep learning for the biological applications, which includes the alphabet-aware sequence encoding, including one-hot and k-mer representations, padded sequences, and channels-first batches. It also includes several FASTA parsing and graph construction utilities for adjacency matrices, GCN-normalised adjacency matrices, graph Laplacians, residue contact maps, and de Bruijn graphs. Among the added functionalities, it includes AUROC and AUPRC with their associated curves; classification metrics, and the export of learned convolutional filters as MEME motifs and seeded splits. Deep biological learning includes a multi-width motif CNN, a dilated residual CNN, bidirectional LSTM and GRU architectures, and transformer encoder. On the five human transcription-factor-binding datasets in the GUE benchmark, a motif CNN with approximately 10,000 parameters, trained from scratch, outperforms all published CNN baselines. It also superseded the 2.5-billion-parameter Nucleotide Transformer on two datasets and DNABERT-2 on one. Given a fixed hardware configuration and software stack, experiments are reproducible at the bit level. See Supplementary Table S2 of Supplementary Material. flodl-bio is written in Rust and released under the MIT licence at https://github.com/sablokg/flodl-bio. The core builds with stable Rust and has no dependencies. The model tier is enabled with the flodl Cargo feature (cuda for NVIDIA GPUs) and requires libtorch and Rust 1.91 or later. The evaluation harness is in the repository's experiments directory, and the complete run outputs are archived at https://doi.org/10.5281/zenodo.23321850
- organism: human
- assay: DNA methylation
- assay: long-read sequencing
- research focus: benchmarking
- approach: deep learning
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- pysster: Classification Of Biological Sequences By Learning Sequence And Structure Motifs With Convolutional Neural Networks
Stefan Budach, Annalisa Marsico·BioinformaticsPeer-reviewed·Apr 5, 2018
- Effect of Tokenization on Transformers for Biological Sequences
Edo Dotan, Gal Jaschek, … Yonatan Belinkov·BioinformaticsPeer-reviewed·Mar 29, 2024
- Selene: a PyTorch-based deep learning library for biological sequence-level data
Kathleen Chen, Evan M. Cofer, … Olga G. Troyanskaya·Nature MethodsPeer-reviewed·Mar 28, 2019
- DeepBIO is an automated and interpretable deep-learning platform for biological sequence prediction, functional annotation, and visualization analysis
Ruheng Wang, Yi Jiang, … Leyi Wei·Nucleic Acids ResearchPeer-reviewed·Jan 19, 2023
- Deep learning in bioinformatics: introduction, application, and perspective in big data era
Yu Li, Chao Huang, … Xin Gao·MethodsPeer-reviewed·Apr 22, 2019
- dna-parser: a Python library written in Rust for fast encoding of DNA and RNA sequences
Matthieu Vilain, Stéphane Aris‐Brosou·bioRxiv·Jan 21, 2026