bioRxivBioinformaticsPreprint
dna-parser: a Python library written in Rust for fast encoding of DNA and RNA sequences
Abstract
BackgroundThe ever-growing amount of available biological data leads modern analysis to be performed on large datasets. Unfortunately, bioinformatics tools for preprocessing and analyzing data are not always designed to treat such large amounts of data efficiently. Notably, this is the case when encoding DNA and RNA sequences into numerical representations, also called descriptors, before passing them to machine learning models. Furthermore, current Python tools available for this preprocessing step are not well suited to be integrated into pipelines resulting in slow encoding speeds. ResultsWe introduce dna-parser, a Python library written in Rust to encode DNA and RNA sequences into numerical features. The combination of Rust and Python allows to encode sequences rapidly and in parallel across multiple threads while maintaining compatibility with packages from the Python ecosystem. Moreover, this library implements many of the most widely used types of numerical feature schemes coming from bioinformaticss and natural language processing. Conclusiondna-parser is an easy to install Python library that offers many Python wheels for Linux (muslinux and manylinux), macOS, and Windows via pip (https://pypi.org/project/dna-parser/). The open source code is available on GitHub (https://github.com/Mvila035/dna_parser) along with the documentation (https://mvila035.github.io/dna_parser/documentation/).
- assay: DNA methylation
- assay: whole-genome sequencing
- research focus: software / tool
- approach: experimental assay
- 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
- DNA Features Viewer, a sequence annotation formatting and plotting library for Python
Valentin Zulkower, Susan J. Rosser·BioinformaticsPeer-reviewed·Jul 1, 2020
- HTSeq - A Python framework to work with high-throughput sequencing data
Simon Anders, Paul Theodor Pyl, Wolfgang Huber·BioinformaticsPeer-reviewed·Sep 25, 2014
- flodl-bio: First Rust data, transformers and model layer for entire deep learning on biological sequences
Gaurav Sablok, Fabrice de Stefanis·bioRxiv·Oct 26, 2026
- pyrpipe: a python package for RNA-Seq workflows
Urminder Singh, Jing Li, … Eve Syrkin Wurtele·NAR Genomics and BioinformaticsPeer-reviewed·Apr 9, 2021
- The recount3 Python package for programmatic access to uniformly processed RNA-seq data
Alexander Alsalihi, Robert M Flight, Hunter Moseley·bioRxiv·Jun 20, 2026
- Nfeature: A platform for computing features of nucleotide sequences
Megha Mathur, Sumeet Patiyal, … Gajendra P. S. Raghava·bioRxiv·Dec 14, 2021