TagGen: High-Performance Barcode Generator and Demultiplexer for High-Throughput and Long-Read Sequencing Applications
Open Access
- 30 April 2026
- journal article
- Published by F1000 Research Ltd in F1000Research
- Vol. 15, 642
Abstract
Background Long-read sequencing platforms, particularly Oxford Nanopore Technologies (ONT), have transformed transcriptomics through direct RNA sequencing. However, their higher error rates – dominated by insertions and deletions – demand longer, more robust sequence barcodes than traditional short-read applications. Existing barcode generation tools suffer from exponential complexity, becoming computationally infeasible at lengths above 12 bp and leaving a critical gap for long-read applications. Methods We developed TagGen, a high-performance barcode generator implementing Monte Carlo candidate sampling with greedy diversity selection. TagGen includes an integrated demultiplexer that assigns ONT reads to their source barcodes regardless of the tag position using a kmer voting and banded edit-distance matching pipeline. We benchmarked TagGen using Badread-simulated reads and validated barcode resilience using a literature-based nanopore error model. Results TagGen generates 96 diverse 12 bp barcodes from 100,000 candidates in under 100 milliseconds, outperforming exhaustive enumeration by up to 13,600-fold. TagGen successfully generates barcodes at 14–30 bp lengths where other available tools fail. Noise simulation demonstrates that TagGen-generated 30 bp barcodes (minimum Hamming distance ≥8) maintain 100% correct assignment at 20% total error rate, whereas traditional 10 bp barcodes degrade to 83%. At typical nanopore error rates (10–15%), taggen-generated barcodes ≥14 bp achieve >97% theoretical resolution. When inserted within a read, our systematic benchmark shows that TagGen demultiplexer achieved >90% accuracy with zero wrong-sample assignments (“end” mode) for reads ≥20 bp. Levenshtein edit distance, recommended for ONT data, improved accuracy by 10–27 percentage points over Hamming distance at equivalent parameters. Conclusions TagGen uniquely enables robust barcode design for nanopore and direct RNA sequencing applications, providing researchers with error-tolerant barcodes validated against realistic long-read error profiles, and an integrated anchor-free demultiplexer for flexible read assignment. The software is freely available at https://github.com/Arnaroo/taggen.Keywords
Funding Information
- Bootes Foundation (Grant2022)
- European Union’s Horizon 2020 (ResearchandinnovationprogramMarieSklodowska-Curiegrant)
- European Union’s Horizon 2020 (agreementNo890462)
- Australian Research Council (DiscoveryGrantDP180100111)
- Australian Research Council (DP250103133)
- Australian Research Council (FutureFellowshipGrantFT180100204)
- National Health and Medical Research Council of Australia (InvestigatorGrantGNT1175388)
- National Health and Medical Research Council of Australia (GrantAPP1147496)
This publication has 18 references indexed in Scilit:
- Generating barcodes for nanopore sequencing data with PROFundamental Research, 2024
- Molecular barcoding of native RNAs using nanopore sequencing and deep learningGenome Research, 2020
- Nanopore native RNA sequencing of a human poly(A) transcriptomeNature Methods, 2019
- Nanopore sequencing of long ribosomal DNA amplicons enables portable and simple biodiversity assessments with high phylogenetic resolution across broad taxonomic scaleGigaScience, 2019
- Indel-correcting DNA barcodes for high-throughput sequencingProceedings of the National Academy of Sciences, 2018
- Highly parallel direct RNA sequencing on an array of nanoporesNature Methods, 2018
- DNABarcodes: an R package for the systematic construction of DNA sample tagsBioinformatics, 2016
- Levenshtein error-correcting barcodes for multiplexed DNA sequencingBMC Bioinformatics, 2013
- Illumina Sequencing Library Preparation for Highly Multiplexed Target Capture and SequencingCold Spring Harbor Protocols, 2010
- Highly-multiplexed barcode sequencing: an efficient method for parallel analysis of pooled samplesNucleic Acids Research, 2010