BASEN: Base-level genome-copy abundance estimation for long-read metagenomics


November 1, 2026

Contents

  1. Introduction
  2. Demonstration data and methods
  3. Read preprocessing and quality control
  4. Results
  5. Discussion
  6. Human stool validation (Appendix)
  7. Code availability
  8. References
  9. Abbreviations

 

Introduction

 

Demonstration data and methods

  1. Three ZymoBIOMICS mock communities were sequenced in six Oxford Nanopore runs each. The following names are used for the mock-community analyses.

  2. NameProductCompositionGenome sizesFlow cell, kit and runsQ ≥ 20 reads per runEvaluation purpose

    Microbial (D6300)Microbial Community Standard10 species: 8 bacteria (12% gDNA each) and 2 yeasts (2% each)2.2–26.3 Mb (12-fold)Flongle (FLO-FLG114), SQK-RBK114-24; six runs, one flow cell each105–11,351
    (14,978 pooled)
    Genome-copy abundance; unrelated absent taxa for Oral
    Gut (D6331)Gut Microbiome Standard17 species (21 strains): 14 bacteria, 2 yeasts and 1 archaeon1.9–12.8 Mb (7-fold)Flongle (FLO-FLG114), SQK-RBK114-24; six runs, one flow cell each365–7,688
    (13,367 pooled)
    Genome-copy abundance; related absent taxa for Oral (shares Veillonella, Prevotella and Fusobacterium)
    Oral (D6332)Oral Microbiome Standard12 species: 12 bacteria1.9–2.7 Mb (1.4-fold)MinION (FLO-MIN114), SQK-RBK114-96; six runs on one flow cell, differing only in depth after flow-cell washes30,780–165,929Accuracy and run-to-run stability; unrelated absent taxa for Microbial



  3. Four abundance methods were evaluated using the same Kraken2 classifications, allowing differences attributable to abundance estimation and read filtering to be assessed.


  4. Methods (click each item to expand)
    1. Depth-matched subsampling
      • Rationale: The six Oral runs were generated from a single library on one flow cell and differed primarily in sequencing depth (30,780–165,929 Q ≥ 20 reads). To distinguish depth-related effects from run-to-run variation, each run was subsampled to a common depth below that of the shallowest run.
      • Each Oral run was subsampled to 25,000 reads using seqtk v1.3 (sample -s 42).
      • Bracken used the median read length of the corresponding full run; median read lengths in the subsampled datasets differed from the full runs' by at most 1.4%.
    2. Kraken2 databases and reference composition
      • Kraken2 Wood et al. (2019) v2.1.3 was run with a 35-bp k-mer length and 31-bp minimizer length.
      • A separate database was constructed for each mock community using only its corresponding catalogue reference genomes, with no host or decoy sequences included.
      • Oral: the 12 reference genomes specified by the manufacturer.
      • Microbial: the ZymoBIOMICS reference genome collection (ZymoBIOMICS.STD.refseq).
      • Gut: the 21 reference genomes specified by the manufacturer (17 species). The five E. coli strains share one species taxon, whose genome length is their mean (4.95 Mb), and their reference shares were summed.
      • Five strains of the Microbial standard were replaced from lot ZRC190633; the manufacturer manual assigns reference release v3 to all current lots and an older genome set (ZymoBIOMICS.STD.genomes.ZR160406) to the two earlier lots (v1.3.0, Appendix C). Runs 4–6 used lot 252193. Runs 1–3 came from an earlier purchase (October 2020) whose lot was not recorded, so their reads were mapped (Minimap2 v2.30) to both sets: for each of the five replaced strains they aligned with higher identity to v3 (e.g., C. neoformans 0.988 vs 0.923, E. coli 0.995 vs 0.976), and 88% of their reads from these species mapped to v3 when both sets were offered, as did 92% for runs 4–6. All six runs therefore carry the current strains, and results use v3.
      • Reference compositions were taken from the manufacturer's reported % genomic DNA, % 16S copies, % genome copies, and % cells. Each abundance method was compared against all available reference measures after renormalization over the catalogue species.
    3. Reads from absent taxa (spike-in mixtures)
      • Rationale: Real metagenomic samples contain reads from organisms whose genomes are absent from the reference database, including non-target taxa and organisms not recovered as MAGs. Pure mock communities classified against their own catalogue genomes do not contain such reads. To model this scenario, reads from a second mock community of known composition were added as reference-absent reads, allowing their classification, filtering, and impact on the abundance profile to be tracked directly.
      • Two levels of difficulty were considered:
        • Unrelated absent taxa: Microbial and Oral share no species and were therefore used as reciprocal sources of reference-absent reads. Added reads comprised 10%, 25%, or 50% of each mixture; 75% mixtures were used only for threshold analysis.
        • Related absent taxa: Gut reads were added to Oral at 10%, 25%, or 50%. Gut contains congeners of several Oral taxa but no species sharing ≥95% ANI with the Oral reference genomes, based on skani v0.3.1 Shaw and Yu (2023) and the species-level threshold described by Jain et al. (2018). The highest relevant similarity was observed for Fusobacterium nucleatum at 91.0% ANI.
      • Subsampling was performed using seqtk v1.3 with seed -s 42.
      • All reads used in spike-in mixtures were host-free, trimmed to a maximum of 5,800 bp, and filtered to Q ≥ 20.
    4. Read-filter threshold analysis
      • Rationale: the read filter has two thresholds, a maximum unassigned-k-mer fraction and a maximum Shannon diversity, with defaults of 0.5 and 1.0 in filter_low_info_reads(). To evaluate these defaults, all parameter combinations were assessed using spike-in mixtures with known read origins.
      • BASEN was recomputed across an 11 × 11 parameter grid: both thresholds were varied from 0 to 1 in increments of 0.1 (121 settings).
      • Each setting was scored with Youden's J Youden (1950):
        J = (absent-taxon reads removed / absent-taxon reads) − (catalogue reads removed / catalogue reads)
        calculated among reads classified by Kraken2.
      • The defaults were compared with all 121 settings on the related mixtures (Gut reads in Oral; the more challenging classification scenario) and checked on the eight unrelated mixtures (10, 25, 50 and 75% added, in both directions).
      • Application to other datasets: these defaults are supported by the absent taxa evaluated here. For each new study, the distributions of unassigned-k-mer fraction and Shannon diversity should be examined using plot_kmer_qc() to select thresholds appropriate for the data.
    5. Evaluation metrics
      • Accuracy: L1 distance between the estimated and reference compositions across catalogue species; lower values indicate greater agreement:
        L1 = Σ |estimated share − reference share| over the catalogue species
        with both compositions as fractions summing to 1. It ranges from 0 (identical) to 2 (no species in common); half this distance represents the minimum fraction of total abundance that must be redistributed to match the reference (e.g., L1 0.325 = 16% of the abundance misallocated).
      • Samples: each run, and for each standard the six runs pooled (reads concatenated; Bracken read length = the pooled reads' median). The 25,000-read subsample was made for Oral only.
      • Stability: SD of L1 distance and per-species coefficient of variation across the six Oral runs.
      • Effect of absent taxa: profile shift, defined as the L1 distance between a method's profile with added reads and its corresponding profile without added reads.
      • Read fate: proportion of added reads classified by Kraken2 and retained by the BASEN read-level filter.
      • Random seeds: seqtk subsampling used -s 42. Dorado, Kraken2, Bracken, Minimap2, and BASEN do not expose a random-seed parameter for the operations used here.
 

Read preprocessing and quality control

  1. Basecalling
  2. Quality assessment
  3. Read quality control
Preprocessing procedures and read counts retained at each step for every run are provided in Preprocessing.
 

Results

  1. BASEN improves agreement with genome-copy composition as genome-size variation increases
  2. Takeaway: Genome-length normalization reduces genome-size-associated abundance bias, with a larger effect in communities spanning a wider range of genome sizes.
    Run-level L1 distances for all reference compositions, species-level estimates, genome-length associations and yeast fold errors are provided in Genome-size details.

  3. BASEN achieves comparable accuracy and lower variation in error across high-depth runs
  4. Takeaway: At depths of tens of thousands of reads per run, BASEN achieves accuracy comparable to read-count methods when genome sizes are similar, with a fourfold lower SD of error across runs. This stability advantage was not observed in runs containing hundreds to a few thousand reads.
    Oral run-level L1 distances at full depth and at 25,000 reads, species-level variation and between-run variation across all three standards are provided in Accuracy and stability details.

  5. BASEN limits profile shifts caused by reads from taxa absent from the database
  6. Takeaway: Reads from absent taxa produce progressively larger shifts in read-count profiles as their proportion increases. BASEN's k-mer weighting reduces these shifts, and read filtering removes nearly all of the remaining effect while excluding 2–3% of classified catalogue reads.
    Profile shifts for all mixtures and methods, classification and retention of added reads, assigned taxa and k-mer support are provided in Absent-taxa details.

  7. Threshold analysis supports the default read-filter parameters
  8. Takeaway: The unassigned-k-mer fraction is the principal contributor to filtering in these mixtures. A threshold of 0.5 excludes nearly all classified absent-taxon reads, while the complete filter removes 2–3% of classified catalogue reads. Shannon thresholds above 0.8 have little additional effect on profile shift. These results support 0.5 and 1.0 as the defaults of filter_low_info_reads() used for the mock-community analyses.
    Before applying these defaults to a new study, examine the distributions of unassigned-k-mer fraction and Shannon diversity (plot_kmer_qc()) and select values appropriate for your data; filter_low_info_reads() accepts user-defined thresholds.
 

Discussion

 

AppendixHuman stool validation

Takeaway: BASEN profiles were closer to Illumina-derived genome-copy estimates than Kraken2 in all 19 samples. BLAST comparisons further showed lower agreement with the Kraken2 genus among filtered reads than among retained reads for four of the five cohort taxa, after adjustment for read length and sample. This supports enrichment of likely false-positive assignments among filtered reads, although most filtered reads still agreed at genus level for four of the five taxa.
Sample processing, comparisons with Illumina-derived profiles, BLAST analyses of filtered and retained reads, and study limitations are provided in Human stool analysis.  

Code availability

 

References

 

Abbreviations

Click to expand
    ANI, average nucleotide identity
    BASEN, Base-level Abundance estimation with Species-assigned Evidence using Nanopore
    BASEN-nf, BASEN without read filtering
    bp, base pair
    CV, coefficient of variation
    gDNA, genomic DNA
    L1, sum of absolute differences between two compositions
    MAG, metagenome-assembled genome
    ONT, Oxford Nanopore Technologies
    Q, Phred-scaled read quality (Dorado mean Q)
    QC, quality control
    SD, standard deviation