PAPERCommunity contribution
- Article
- Environmental DNA Bioinformatics
- Environmental Science & Technology
A Supervised and Visualization-Enabled Toolkit for Robust DNA Reference Database Construction in eDNA Biomonitoring
Jingze Wu, Feilong Li, Peng Yan, Weijun Lu, Bowen Li, Yulei Xie
Abstract
Environmental DNA (eDNA) and DNA-based technologies are increasingly used for biodiversity assessment, but their taxonomic resolution depends strongly on the quality, completeness, and interoperability of reference databases. Public barcode repositories often contain heterogeneous sequence lengths, inconsistent taxonomy, redundant records, and incomplete metadata, and existing tools do not always provide supervised curation, visual inspection, controlled database extension, and multiformat export in one workflow. Here, we present MFRefData (Multi-Format Reference Database), a Python-based toolkit for constructing customized reference databases using a paired CSV–FASTA architecture. MFRefData integrates NCBI sequence retrieval, primer-specific in silico PCR, standardized taxonomic annotation, VSEARCH-based dereplication, rule-based filtering, controlled database extension, visualization, and export to multiple commonly used compatible formats. Using the Pearl River fishes under standardized input conditions, MFRefData retrieved more sequences and covered more species than the refdb and CRABS toolkits, while also achieving higher sequence retrieval efficiency and memory efficiency. In an in silico mock community of 40 fish species and three mitochondrial 12S primer sets, MFRefData produced more correct species-level assignments than databases generated by the refdb and CRABS toolkits. Applied to real eDNA samples, MFRefData recovered broader species-level biodiversity signals. Overall, MFRefData provides a supervised, visualization-enabled, and multiformat framework for improving reference database transparency, technical quality control, and reproducibility, while supporting more reliable species-level taxonomic assignments in DNA-based biodiversity assessment.
1. Introduction
Environmental DNA (eDNA) and DNA-based biomonitoring depend on reference databases that can translate DNA sequences into biodiversity information with sufficient taxonomic confidence. (1−3) In routine workflows, sequences obtained from water, soil, or other environmental media are compared with reference barcode records to assign taxonomic identities, (1, 4, 5) and these assignments are then used as evidence of species occurrence. (6−8) Accordingly, annotation reliability is determined not only by sampling, sequencing, and bioinformatic pipelines, (7, 9, 10) but also by the completeness, accuracy, and traceability of the reference database. (11−13) Public barcode repositories provide essential resources for eDNA studies, yet they often contain taxonomic mislabelling, conflicting names, sequencing errors, redundant intraspecific records, missing taxa, limited intraspecific representation, and incomplete metadata. (14−16) Direct use of uncurated public data can therefore reduce the proportion of Operational Taxonomic Units (OTUs) or Amplicon Sequence Variants (ASVs) with reliable annotations and increase the risk of false-positive or false-negative biodiversity inference. (17−19) These problems are particularly relevant for biomonitoring programmes, where inaccurate species lists may affect ecological interpretation, trend assessment, and management decisions in conservation and routine eco-environmental assessment. (3, 20−22) Thus, improving the quality, traceability, and usability of local reference databases has become a critical requirement for robust and defensible DNA-based taxonomic annotation in environmental monitoring and management.
Several bioinformatic tools have been developed to support local reference database construction, evaluation, and management, (11, 23−27) but their functions and application scopes differ considerably. obiconvert provides sequence format conversion within the OBITools environment, (28) whereas GAPeDNA offers a web-based interface for assessing and visualizing coverage gaps in genetic databases for selected taxa. (29)Mitohelper and Meta-Fish-Lib are mainly designed for mitochondrial reference sequence processing in fish eDNA studies. (13, 30) Among tools for customized reference database construction, refdb primarily focuses on reference sequence management and curation, whereas CRABS provides an integrated workflow for sequence retrieval, in silico amplicon extraction, database curation, and export across taxonomic groups. (25)BOLDconnectR facilitates sequence and metadata retrieval from the BOLD System. (31, 32) These tools have advanced reference database preparation by improving data access, format conversion, coverage assessment, and customized sequence retrieval. In practice, however, users often need to combine multiple tools, manually inspect intermediate results, and repeatedly convert files before downstream analysis. (33) Some workflows also require command-line operation and detailed parameter configuration, (12, 34) which may limit routine use by ecology-oriented laboratories and monitoring practitioners. Supervised curation, data visualization, flexible database expansion, and multiformat export capabilities remain insufficiently integrated into unified workflows.
A practical strategy for improving reference database construction is to integrate standardized data organization, modular processing, supervised quality control, flexible database extension and multiformat interoperability within a unified workflow. (2, 16, 35) Such a framework should define consistent input and output structures, standardized metadata fields and explicit sequence identifiers, enabling each reference record to be traced throughout database construction. (16, 36) Database building should then be divided into independent but connected modules, including sequence acquisition, in silico PCR and amplicon extraction, taxonomic lineage annotation, sequence clustering, user-defined filtering, database extension, visualization, and multiformat export. (37−39) Supervised curation is essential because a single final sequence file does not reveal where erroneous records, missing metadata or unsuitable sequences enter the workflow. (36, 40) Preserving intermediate outputs and quality-control decisions allows users to inspect, correct and document each step, thereby improving reproducibility and auditability. (25, 26, 41) Standardized filtering and dereplication are also needed to reduce nontarget records and excessive redundancy, while retaining informative intraspecific variation. Because downstream pipelines such as QIIME2, DADA2, SINTAX, and BLAST require different database formats, interoperability is necessary for portability and reuse. (42−45) Together, these requirements define the technical basis for reference databases that are not only locally customized but also reproducible, inspectable and suitable for environmental biomonitoring.
To address these needs, we developed MFRefData, a Multi-Format Reference Database toolkit for supervised, visual, and reproducible construction of customized DNA reference databases for eDNA biomonitoring. MFRefData is built on a paired CSV–FASTA architecture, in which barcode sequences are linked to metadata, taxonomic information, and quality-control records through a shared seq_id. This design enables each reference record to be traced from sequence acquisition to final export and allows users to inspect whether records are retained, modified, or removed during database construction. MFRefData integrates sequence downloading, in silico PCR and primer-compatible amplicon extraction, taxonomic lineage annotation, VSEARCH-based dereplication, user-defined filtering, visualization, and multiformat export within a standardized workflow. MFRefData also supports the incorporation of external reference resources under defined taxonomic or quality-control criteria, reducing manual file conversion and data merging. We validated MFRefData using both an in silico mock community and real Pearl River eDNA samples to assess its performance under controlled and field-relevant conditions. By combining traceable data management, supervised curation, and downstream-compatible export, MFRefData improves database transparency and workflow reproducibility for biomonitoring.
2. Materials and Methods
2.1. Overview of the MFRefData Toolkit
The data architecture of MFRefData is organized into three main components, namely data acquisition, supervised data curation, and data visualization (Figure 1 and Table S1). To ensure continuity across the workflow, MFRefData defines standardized input and output fields for each functional module, allowing the output of one step to be directly used as the input for subsequent steps. For data acquisition, MFRefData uses NCBI as the primary sequence source. NCBI integrates multiple sequence repositories, including GenBank and RefSeq, and represents one of the most comprehensive and regularly updated nucleotide sequence resources currently available. Importantly, NCBI also provides a structured taxonomic information system in which each sequence record is associated with a unique taxonomic identifier (taxid). By parsing the NCBI taxdump database, MFRefData can retrieve standardized taxonomic lineages across seven ranks, namely kingdom, phylum, class, order, family, genus, and species. This feature provides the basis for subsequent assessment of taxonomic completeness and filtering of records with missing taxonomic information, thereby helping to reduce problems associated with incomplete taxonomic annotation.

For supervised data curation, MFRefData records multidimensional sequence information in a CSV file to meet the design requirements of a traceable and quality-controlled reference database. The recorded information can be grouped into three categories. The first category includes traceability-related metadata, such as sequence source, species name, and taxid, which allow each sequence to be linked back to its original submission record. The second category comprises standardized taxonomic information, including kingdom, phylum, class, order, family, genus, and species, which enables users to evaluate the completeness and consistency of taxonomic annotation. The third category contains quality-control information, which records how each sequence is processed and retained or excluded during different curation steps. For data visualization, MFRefData uses the same CSV file as the supervised curation module. By reading multiple metadata and quality-control fields from the CSV file, the visualization module generates graphical summaries that allow users to inspect sequence composition, taxonomic structure, quality-control outcomes and database coverage.
2.2. Module Architecture of the MFRefData Toolkit
2.2.1. Sequence Acquisition Module
The sequence acquisition module is designed to retrieve target barcode sequences and associated metadata from NCBI in batch mode (Figure 1). This module is built on the NCBI E-utilities API and follows the required query structure and request constraints. Users provide a plain species list containing Latin names and specify the target marker as the search keyword. To control the number of sequences retrieved for each species, MFRefData provides a count parameter that sets the maximum number of reference sequences to be downloaded per species. In this study, this parameter was set to 100 to limit the retrieval of potentially redundant or highly similar sequences from species with abundant public records and to reduce unnecessary data processing and computational resource consumption. For each species, the module first calls the esearch interface with db = taxonomy to obtain the corresponding NCBI taxonomic identifier (taxid). To improve processing efficiency, queried species names are stored in a local cache dictionary, allowing previously retrieved taxid values to be reused without repeated API requests. If a species name cannot be resolved, for example, because of spelling errors or invalid nomenclature, the error is recorded and the workflow proceeds to the next species. After obtaining the taxid, the module performs a second esearch query against db = nuccore using the search expression taxid[Organism] AND marker[All Fields]. The resulting sequence identifiers are then passed to efetch, which downloads the corresponding FASTA records in batches. Each sequence is saved as an individual accession.fasta file within a subdirectory named by taxid, while all retrieved records are also merged into a combined FASTA file.
During sequence retrieval, the module simultaneously extracts key metadata from GenBank records to support downstream supervision and quality control. Geographic provenance is parsed using the /geo_loc_name = “([^”]+)” pattern and stored in the geo_location field; records lacking extractable geographic information are assigned na. Metadata, including accession number, species name, taxid, original sequence length, and geographic origin, are written to a CSV metadata table (Table S2). The CSV file and FASTA records are linked through a shared seq_id field, enabling sequence-level tracking across subsequent curation steps. Records with invalid taxid values or unresolved species information are logged and skipped to maintain continuity of batch processing. The module therefore produces two main output types: taxid-organized FASTA files with a merged FASTA data set, and a structured CSV table containing sequence identity, taxonomic source, and provenance information. In addition, users can enable the optional -download_dump parameter to download NCBI taxdump files for downstream taxonomic parsing. The module checks the local cache before requesting taxdump.tar.gz from the NCBI FTP server and automatically extracts files such as nodes.dmp, names.dmp, and division.dmp for repeated use.
2.2.2. Supervised Curation Module
The supervised database curation module performs sequence-level quality control on the downloaded records using paired CSV and FASTA files as standardized inputs and outputs (Figure 1). This module consists of four sequential steps: in silico PCR-based amplicon extraction, taxonomic annotation, dereplication, and filtering. At each step, sequence metadata are updated in the CSV file, while the corresponding sequence records are maintained in FASTA format through the shared seq_id field. This design enables each reference record to be tracked throughout the complete curation process and allows users to inspect how individual sequences are annotated, amplified, clustered, retained, or excluded. In the taxonomic annotation step, the module first checks whether NCBI taxdump files are available locally. If the files are absent, taxdump.tar.gz is automatically downloaded and extracted. The module parses nodes.dmp and names.dmp to build mapping tables linking each taxid to its parent node and scientific name. For each sequence in the CSV file, the lineage is traced from its taxid to the root node (taxid = 1), and seven standard ranks─kingdom, phylum, class, order, family, genus, and species─are appended as independent columns. Missing ranks are retained as na, and the complete lineage is stored in the full_lineage field.
The amplicon extraction step addresses heterogeneity in sequence length and marker coverage among public barcode records by performing in silico PCR. Users provide forward and reverse primer sequences, including degenerate bases when applicable, together with the maximum allowed mismatch number. Primer-binding sites are identified using a fixed-length sliding-window strategy. The reverse primer is converted to its reverse complement before alignment, and when no compatible primer pair is detected in the original orientation, the complete reference sequence is additionally searched in reverse-complement orientation. To account for the greater influence of mismatches near the primer 3′ terminus on amplification efficiency, MFRefData further implements an optional 3′-end constraint. By default, mismatches are not permitted within the terminal three nucleotides of either primer, whereas the maximum number of mismatches across the full primer sequence remains user-defined. A reference sequence is considered primer-compatible only when both primers satisfy the specified overall mismatch threshold and 3′-end criteria. When both primer-binding sites are detected, the intervening sequence is extracted as the target amplicon, the record is assigned amplify = 1, and the resulting amplicon length is recorded in the CSV metadata table. If either primer fails to meet the specified criteria, the record is assigned amplify = 0 and the amplicon length is recorded as 0. The subsequent dereplication step reduces excessive intraspecific redundancy using VSEARCH. (46) Users can define the clustering identity threshold, with 0.97 used as the default value. MFRefData calls the VSEARCH –cluster_size command to cluster amplicon sequences and then parses the UC output file. Cluster center sequences, indicated by C, are recorded as center_i, whereas member sequences, indicated by H, are recorded as clustered_i, with cluster indices assigned according to descending cluster size. These annotations are stored in the represent field for subsequent filtering.
The filtering step provides a flexible, rule-based strategy for generating the final curated reference database. Filtering conditions are defined using fields recorded in the CSV file and can be combined according to user requirements. For example, users may exclude records with excessive missing taxonomic ranks, failed primer amplification, unsuitable amplicon length, or nonrepresentative cluster status. Each condition is evaluated independently, and any record meeting at least one exclusion rule is added to the removal set. Excluded records are removed from the final CSV and FASTA outputs but are not deleted from the original intermediate files, preserving data integrity and enabling later auditing. In addition to these four core steps, MFRefData includes an optional database extension step to improve sequence coverage and facilitate database maintenance. This step supports external databases in MFRefData, SINTAX, and DADA2-compatible formats, and exports merged files to an Extend_MF directory. In the default mode, all records from db1 are added to db2 after removing duplicate entries based on the sequence name. When the -level parameter is specified, MFRefData will acquire all taxonomic rank names in db2 at the same level, such as genus or family. Then, sequences in db1 with the same taxonomic name will be selected and added to db2 after sequence name dereplication. This design helps maintain taxonomic consistency during database expansion.
2.2.3. Data Visualization Module
The data visualization module serves as the evaluation and reporting component of MFRefData and is designed to summarize the composition and quality characteristics of the final curated reference database (Figure 1). This module uses the final CSV file as the primary input because the CSV table contains sequence identifiers, taxonomic lineages, quality-control records, and metadata generated during previous curation steps. Based on these fields, MFRefData generates three types of graphical outputs. Stacked bar charts are used to summarize barcode composition across taxonomic ranks, sequence composition, and geographic origin. Pie charts provide proportional summaries of in silico PCR results, including sequences and species situation. Venn diagrams are used to compare the overlap of retained taxa or sequence records among databases or filtering outputs. Together, these visual summaries allow users to inspect taxonomic coverage, barcode distribution, metadata completeness, and the effects of quality-control steps before exporting the database for downstream analysis.
After visualization-based inspection, MFRefData exports the curated reference database into formats required by commonly used eDNA bioinformatic workflows, including QIIME2, BLAST, and SINTAX (Table 1). (47) For QIIME2, the naïve Bayes classifier requires two separate files: a FASTA file containing reference sequences and a tab-delimited taxonomy file with the extension.txt. Each row of the taxonomy file follows the format sequence ID\ttaxonomic lineage, in which the lineage is represented using seven ranks: k__, p__, c__, o__, f__, g__, and s__. MFRefData reads taxonomic information from the CSV file, extracts the sequence ID list, and formats the corresponding kingdom, phylum, class, order, family, genus, and species fields according to QIIME2 naming conventions. In parallel, the program uses SeqIO.parse to read the FASTA file and build a mapping dictionary between sequence IDs and sequence objects. Finally, MFRefData writes the formatted sequence ID–taxonomy pairs to the.txt file and exports the matched sequence records to the corresponding FASTA file, ensuring consistency between sequence and taxonomy outputs.

2.3. Pilot Application of the MFRefData Toolkit
The MFRefData workflow was applied to construct a customized regional fish reference database using a Pearl River Basin species list as the target input (Figure 2). The workflow comprises eight connected modules: Download, ISPCR (i.e., in silico PCR), Totax (i.e., taxonomic assignment), Cluster, Extend, Filter, Output, and Visualization. These modules were organized to represent the full process of reference database construction, from sequence acquisition and amplicon standardization to taxonomic annotation, redundancy control, database extension, quality filtering, format conversion, and visual inspection. In this application, the Download module retrieved target sequences from NCBI based on species names and the selected marker region, while retaining key metadata for downstream supervision. The ISPCR module then identified primer-compatible sequences and extracted standardized amplicon regions, ensuring that subsequent analyses were based on comparable barcode fragments rather than heterogeneous raw records from public repositories.

Following sequence standardization, MFRefData used the Totax, Cluster, and Extend modules to improve taxonomic traceability, control redundancy, and enhance regional database coverage. Totax assigned each sequence to standardized taxonomic ranks using NCBI taxdump information, allowing missing or incomplete lineage information to be inspected during later curation. The cluster applied VSEARCH-based dereplication to distinguish representative sequences from clustered records, providing a structured basis for reducing excessive redundancy while retaining user control over sequence representation. The Extend module was used as an optional step to incorporate additional Pearl River fish reference information under a genus-level constraint. This strategy allowed the database to be expanded within a defined taxonomic boundary, thereby improving coverage of regionally relevant taxa while reducing the risk of introducing sequences inconsistent with the target database scope.
The final stages of the workflow combined Filter, Output, and Visualization to generate a curated and downstream-compatible reference database. The Filter module removed unsuitable records according to user-defined criteria recorded in the metadata table, while preserving intermediate information for traceability. The Output module converted the curated database into formats required by common taxonomic assignment tools, including QIIME2, BLAST, SINTAX, DADA2, RDP, Kraken2, and mothur (Table 1). The Visualization module provided graphical summaries of primer compatibility, taxonomic composition, geographic metadata, and species overlap between the input list and the constructed database. Together, this application demonstrates that MFRefData can integrate data retrieval, sequence standardization, supervised curation, controlled expansion, and multiformat export into a single workflow for constructing a customized regional reference database.
2.4. Performance Comparison of Different Toolkits
To assess how reference database construction affects species-level taxonomic assignment accuracy, we conducted a controlled in silico mock community using a subset of 40 fish species selected from the fish checklist of the Pearl River Basin described in Section 2.3. Species selection was guided by two criteria: taxonomic coverage and species-level discrimination. First, the selected species represented multiple families and genera in the regional checklist. Second, closely related taxa, particularly species belonging to the same genus, were included to evaluate the ability of different toolkits to distinguish among taxonomically similar species. The same 40-species subset was used to evaluate all three toolkits, providing a consistent basis for comparing their species-level taxonomic assignment performance. Three mitochondrial 12S primer sets, Tele02, 12S–V5, and Riaz-12S, (48−50) were used to generate primer-specific reference databases using MFRefData, refdb, and CRABS under identical input conditions. (24, 25) Mock query sequences were assigned against each database using BLAST. To ensure stringent species-level evaluation, (7, 51) BLAST hits were retained only when sequence identity was ≥ 99% and query coverage was ≥95%. Among qualifying hits, the highest bit score was used to identify the best hits, with percentage identity used as an additional criterion when multiple hits had the same bit score. A species-level assignment was accepted when all retained best hits consistently supported the same species. A query was classified as ambiguous when equally supported best hits corresponded to two or more species, preventing a unique species-level assignment, and as unassigned when no BLAST hit satisfied both the identity and query-coverage thresholds.
To further evaluate the practical performance of databases generated by different toolkits in real biomonitoring applications, we applied the same comparative framework to eDNA samples collected from the Dongjiang River. (52−54) The same Tele02-amplified eDNA data set was annotated against reference databases constructed using MFRefData, refdb, and CRABS, while downstream sequence processing and taxonomic assignment parameters were kept consistent across all analyses. This design allowed us to compare database-driven differences in taxonomic recovery while minimizing variation caused by sequencing data or downstream bioinformatic settings. For real eDNA annotation, BLAST results were initially filtered using an E-value threshold of ≤1 × 10–10. Alignments were subsequently retained if their alignment length exceeded 120 bp, query coverage was ≥ 95%, and sequence identity met the specified criteria, with a minimum acceptable threshold of 80%. Annotation performance was subsequently compared among databases based on species-level relative read abundance, the number of detected taxa, and taxonomic coverage. These metrics were selected to evaluate both biodiversity recovery and downstream ecological interpretability, because differences in database coverage, curation strategy, and retained reference records can directly influence which taxa are detected from the same environmental sequencing data set. By combining a controlled in silico mock community analysis with real eDNA sample annotation, this benchmarking design evaluated toolkit performance from two complementary perspectives, that is, assignment accuracy for known species and practical species recovery in biodiversity monitoring.
3. Results
3.1. Performance Comparison of Different Toolkits
Our data demonstrate that MFRefData consistently outperforms refdb and CRABS across all evaluated metrics for DNA reference database construction under standardized input conditions (Figure 3). In terms of data yield, MFRefData retrieved 5,085 sequences and covered 725 species, substantially higher than refdb (1,813 sequences and 196 species) and CRABS (363 sequences and 161 species), indicating improved sequence recovery and taxonomic coverage. For computational performance, MFRefData achieved a sequence retrieval efficiency of 3.61 sequences per second, compared with 1.41 sequences/s for refdb and 0.22 sequences/s for CRABS, demonstrating substantially enhanced processing speed during database construction. In addition, MFRefData exhibited the highest memory efficiency (20.36 sequences/MB), outperforming refdb (5.83 sequences/MB) and CRABS (3.31 sequences/MB), indicating more efficient resource utilization. Collectively, these results indicate that MFRefData improves both the scale of sequence acquisition and the efficiency of computational resource usage. The integrated improvements in coverage, speed, and memory efficiency highlight the advantages of a supervised and optimized workflow for scalable DNA reference database construction.

The MFRefData-curated reference database exhibits high taxonomic resolution and structured geographic metadata across multiple hierarchical levels (Figure 4). The database was constructed using a species list of fish from the Pearl River basin as the target input data set. The constructed database comprises 725 species, 120 genera, 45 families, 20 orders, and single representatives at the class, phylum, and kingdom levels, indicating strong species-level enrichment and fine taxonomic granularity. Sequence composition across taxonomic ranks is heavily concentrated at the species and genus levels, whereas higher ranks show progressively reduced representation. At the order level, a limited number of dominant taxa account for the majority of sequences, with the leading order contributing 5,085 sequences. Genus-level patterns further reveal marked unevenness in species distribution, with a small subset of genera dominating overall representation. In addition, the MFRefData tool can explicitly retain and standardize the geographic origin information on reference sequences throughout database construction. For the present data set, which was generated from a fish species list in the Pearl River, most reference sequences are derived from China and Japan, followed by contributions from the USA, Indonesia, and Canada, while a subset of records lacks explicit geographic annotation. Overall, MFRefData integrates modules for sequence acquisition, quality control, database expansion, and multiformat output, enabling an end-to-end workflow for DNA reference database construction (Table 1).

3.2. In Silico Mock Community-Based Comparison of Different Tools
We evaluated the effects of reference database construction on taxonomic assignment accuracy using a controlled in silico mock community composed of 40 known fish species and three mitochondrial 12S primer sets, including Tele02, Riaz-12S, and 12S–V5 (Figure 5A). Based on the same 120 mock query sequences generated from all species–primer combinations, BLAST/LCA-based taxonomic assignment results were then compared across MFRefData, refdb, and CRABS (Figure 5B). MFRefData correctly assigned 60 of 120 queries to the species level, outperforming refdb (39/120) and CRABS (29/120), corresponding to correct assignment rates of 0.50, 0.33, and 0.24, respectively. MFRefData also produced the highest annotation completeness, with 118 of 120 queries successfully assigned (annotation rate = 0.98), compared with 100 (0.83) for refdb and 92 (0.77) for CRABS, resulting in the lowest proportion of unassigned sequences (0.02). Across misclassification categories, all toolkits exhibited errors, including genus-level mismatches (x), family-level mismatches (xx), and higher-order mismatches (xxx), but MFRefData showed a relatively reduced number of unassigned and severely mismatched cases compared with the other two databases. The overall performance summary further confirmed these patterns (Figure 5C), showing that MFRefData achieved the highest correct precision among annotated queries (0.51) and the highest five-class exact F1 score (0.50), exceeding refdb (0.39 and 0.36) and CRABS (0.32 and 0.27). Collectively, these results demonstrate that differences in reference database construction directly influence taxonomic assignment completeness and accuracy, with MFRefData providing improved species-level resolution under controlled in silico mock community conditions.

3.3. Comparison of Different Toolkits on Real eDNA Samples
MFRefData recovered the highest taxonomic diversity and species-level signals from real Dongjiang River eDNA samples compared with refdb and CRABS under identical analytical conditions (Figure 6). Specifically, MFRefData detected 16 families, 55 genera, and 68 species, exceeding refdb (13 families, 38 genera, and 48 species) and CRABS (5 families, 20 genera, and 23 species), indicating substantially improved taxonomic resolution and broader biodiversity recovery. At the species level, relative read abundance patterns showed both consistent and database-dependent detection signals across toolkits. Among the 76 species signals recovered by at least one database, 22 species were jointly detected by all three toolkits, representing the stable core community signal in the Dongjiang River samples. These shared taxa included fishes such as Megalobrama terminalis, Chanodichthys mongolicus, Hemiculter leucisculus, and Elopichthys bambusa, indicating consistent species-level detection across different reference databases. In contrast, MFRefData uniquely recovered 28 additional species signals not detected by either refdb or CRABS, whereas refdb and CRABS recovered 48 and 23 species, respectively, with CRABS showing no uniquely detected species. These results highlight clear differences in species recovery capacity driven by reference database completeness and curation strategy. Overall, MFRefData substantially improves species-level detection sensitivity and biodiversity representation in real eDNA data sets.

4. Discussion
MFRefData provides an integrated, supervised framework for constructing customized DNA reference databases with enhanced traceability, flexibility, and compatibility with downstream bioinformatics workflows. Unlike existing tools that primarily focus on sequence retrieval or database preparation for specific classifiers, (11, 30, 55)MFRefData integrates sequence acquisition, primer-specific amplicon extraction, taxonomic annotation, redundancy control, database extension, quality filtering, visualization, and multiformat export into a modular workflow. A central feature is its paired CSV–FASTA architecture, in which barcode sequences and associated taxonomic information, metadata, and quality-control outcomes are maintained in separate but interconnected files through a shared seq_id field. This architecture enables sequence provenance to be tracked throughout database construction and facilitates inspection of intermediate processing decisions. By integrating standardized metadata management with user-defined quality control, MFRefData extends conventional reference database preparation beyond sequence retrieval and format conversion toward a more transparent, auditable, and reproducible curation process.
The reliability of MFRefData is supported by its layered quality-control strategy, which addresses common limitations of public sequence repositories, including inconsistent sequence lengths and orientations, incomplete taxonomic annotations, variable marker coverage, sequence redundancy, and missing metadata. (15, 26) The Download module records accession numbers, taxonomic identifiers, sequence lengths, and available geographic information to preserve sequence provenance. The ISPCR module identifies and extracts target amplicons through bidirectional in silico PCR using user-defined primers, including degenerate bases and configurable mismatch settings. Importantly, sequences without successful amplification are not automatically discarded; instead, their original sequences and amplification status are retained for subsequent evaluation through VSEARCH-based clustering and configurable filtering. This approach accommodates reference sequences that lack one or both primer-binding regions but contain informative portions of the target marker, thereby reducing the potential loss of useful reference information. The Totax module standardizes taxonomic lineages using NCBI taxdump files, while clustering-based redundancy control and configurable filtering allow users to evaluate and retain sequences according to taxonomic completeness, sequence length, amplification status, metadata availability, and clustering status. Together, these complementary functions provide a flexible approach to balancing reference coverage, taxonomic specificity, and database consistency.
Beyond sequence curation, MFRefData incorporates functions that support reference database expansion, evaluation, and interoperability. The Extend module enables the incorporation of external reference resources within user-defined taxonomic boundaries, such as genus or family, (56, 57) providing a controlled means of addressing incomplete regional reference coverage without unrestricted database expansion. This capability is particularly relevant to eDNA biomonitoring, where locally occurring species may be incompletely represented in public repositories. The Visualization module also contributes to database evaluation by summarizing primer compatibility, taxonomic composition, species overlap, geographic metadata, and sequence distribution before downstream analysis. Such inspection is valuable because reference database limitations are not always apparent from final annotation results alone. Multiformat export further improves interoperability, as QIIME2, DADA2, SINTAX, BLAST, RDP, Kraken2, and mothur require different arrangements of sequence and taxonomy information. Compared with workflows that require users to manually reformat outputs for each classifier, MFRefData reduces format conversion errors and improves database reuse. These features make the toolkit suitable for both database construction and long-term reference data management.
Comparative analyses revealed that database construction strategies were associated with substantial differences in reference coverage and taxonomic assignment performance. Using the same input species list and comparable target marker search criteria, MFRefData generated a larger final reference database with greater sequence and species coverage than refdb and CRABS, while also demonstrating higher retrieval and memory efficiency. Notably, MFRefData imposed a maximum of 100 retrieved sequences per species during initial acquisition, whereas no equivalent manually imposed per-species limit was applied to refdb or CRABS. Thus, the greater final reference coverage obtained with MFRefData cannot be explained by a more permissive initial retrieval limit. Instead, differences in downstream sequence identification, recovery, and retention strategies likely contributed to the observed results. In particular, retaining primer-incompatible sequences for subsequent quality assessment may preserve informative reference regions that would otherwise be excluded by strict amplicon extraction. Standardized taxonomic annotation, completeness filtering, and redundancy control may further improve database consistency while limiting unnecessary sequence loss. For methodological comparability, a uniform sequence similarity threshold of 0.97 was applied across all three toolkits. However, this threshold was not intended to represent the optimal clustering criterion for short 12S rRNA amplicons, which can exhibit limited sequence divergence among closely related species. Consequently, sequences from different species may be grouped within the same cluster, and individual clusters should not necessarily be interpreted as species-specific units. A more stringent threshold, such as 0.99, may better preserve interspecific sequence variation in some cases, although its suitability requires evaluation according to the marker region and target taxa.
The potential benefits of broader reference coverage and systematic quality control were further supported by both simulated and empirical eDNA analyses. Across 120 query–primer combinations comprising 40 known fish species and three mitochondrial 12S primer sets, MFRefData achieved the highest number of correct species-level assignments, the highest annotation rate, the lowest unassigned rate, and the highest five-class exact F1 score among the evaluated toolkits. (12, 17, 58) These results suggest that improved representation of valid reference sequences may reduce unassigned queries and misassignments associated with incomplete database coverage. Consistent with these findings, analysis of the Dongjiang River eDNA data set under identical downstream parameters revealed differences in species-level taxonomic profiles among databases constructed using the three toolkits. MFRefData recovered 16 families, 55 genera, and 68 species, exceeding the taxonomic recovery achieved using refdb and CRABS. To assess the ecological plausibility of the 28 additional species-level assignments, these records were cross-checked against historical fish surveys, species distribution records from the Dongjiang River basin, and taxonomic identification results from our previous analysis of the same eDNA data set. The additional assignments were largely consistent with historical distributions and previous identification results, providing independent support for their ecological plausibility. Nevertheless, broader taxonomic recovery does not necessarily indicate higher identification accuracy, and ecological consistency alone cannot establish the correctness of individual assignments. Taken together, the simulated and empirical results suggest that differences in sequence retention, taxonomic standardization, and quality-control strategies may contribute to improved reference coverage and taxonomic assignment performance.
In conclusion, MFRefData provides a supervised, visualization-enabled, and multiformat-compatible toolkit for constructing customized DNA reference databases for eDNA biomonitoring and broader DNA-based biodiversity assessments. Although validation primarily focused on fishes and mitochondrial 12S markers, the toolkit has also been applied to macroinvertebrate databases targeting mitochondrial COI and algal databases targeting nuclear ribosomal 18S rRNA, demonstrating its technical applicability beyond a single taxonomic group or marker. Nevertheless, database performance remains dependent on the completeness and quality of available reference resources, marker-specific taxonomic resolution, clustering thresholds, and user-defined filtering criteria. The optimal balance between reference coverage, redundancy reduction, and taxonomic discrimination may therefore differ among applications. Through standardized taxonomic metadata management, user-defined sequence filtering, and visual inspection, MFRefData improves technical quality control, transparency, traceability, and reproducibility of reference database construction. Its modular design allows users to define target taxa, marker regions, primer sets, filtering criteria, extension levels, and output formats according to specific research objectives. Future work should systematically benchmark performance across additional taxonomic groups and markers, and further integrate automated detection of suspicious records, broader regional reference resources, and phylogeny-informed quality assessment.
References
-
Altermatt. Utilizing aquatic environmental DNA to address global biodiversity targets. Nat. Rev. Biodiversity 1(5), 332 (2025). Source
-
Li. Gap analysis for DNA-based biomonitoring of aquatic ecosystems in China. Ecol. Indic. 137, 108732 (2022). Source
-
Cordier. Ecosystems monitoring powered by environmental genomics: A review of current strategies with an implementation roadmap. Mol. Ecol. 30(13), 2937 (2021). Source
-
Li. A functional-trophic pathway links riparian land use intensification to riverine community stability. Sci. Adv. 12(33) (2026). Source
-
Zhang. Environmental DNA as a tool for soil health monitoring and unveiling new ecological frontiers. Ecol. Indic. 174, 113438 (2025). Source
-
Blackman. Environmental DNA: The next chapter. Mol. Ecol. 33(11) (2024). Source
-
Mathon. Benchmarking bioinformatic tools for fast and accurate eDNA metabarcoding species identification. Mol. Ecol. Resour. 21(7), 2565 (2021). Source
-
Pawlowski. Environmental DNA: What’s behind the term? Clarifying the terminology and recommendations for its future use in biomonitoring. Mol. Ecol. 29(22), 4258 (2020). Source
-
Hakimzadeh. A pile of pipelines: An overview of the bioinformatics software for metabarcoding data analyses. Mol. Ecol. Resour. 24(5) (2024). Source
-
Mousavi-Derazmahalleh. eDNAFlow, an automated, reproducible and scalable workflow for analysis of environmental DNA sequences exploiting Nextflow and Singularity. Mol. Ecol. Resour. 21(5), 1697 (2021). Source
-
Curd. rCRUX: A rapid and versatile tool for generating metabarcoding reference libraries in R. Environ. DNA 6(1) (2024). Source
-
Blackman. General principles for assignments of communities from eDNA: Open versus closed taxonomic databases. Environ. DNA 5(2), 326 (2023). Source
-
Collins. Meta-Fish-Lib: A generalised, dynamic DNA reference library pipeline for metabarcoding of fishes. J. Fish Biol. 99(4), 1446 (2021). Source
-
Polanco F. A confidence scoring procedure for eDNA metabarcoding records and its application to a global marine fish dataset. Environ. DNA 7(2) (2025). Source
-
Keck. Navigating the seven challenges of taxonomic reference databases in metabarcoding analyses. Mol. Ecol. Resour. 23(4), 742 (2023). Source
-
Rimet. Metadata standards and practical guidelines for specimen and DNA curation when building barcode reference libraries for aquatic life. MBMG 5 (2021). Source
-
De Santiago. Persistent Gaps and Errors in Reference Databases Impede Ecologically Meaningful Taxonomy Assignments in 18S rRNA Studies: A Case Study of Terrestrial and Marine Nematodes. Environ. DNA 7(2) (2025). Source
-
Brandt. Bioinformatic pipelines combining denoising and clustering tools allow for more comprehensive prokaryotic and eukaryotic metabarcoding. Mol. Ecol. Resour. 21(6), 1904 (2021). Source
-
Wu. Integrating Dam-Induced Effects into a Bayesian eDNA-Hydrodynamic Model to Improve Fish Monitoring in Regulated Rivers. Environ. Sci. Technol. 59(40), 21670 (2025). Source
-
Jones. Sources of uncertainty in DNA metabarcoding of whole communities: Implications for its use in biomonitoring. Methods In Ecology And Evolution 16(8), 1658 (2025). Source
-
Hering. Implementation options for DNA-based identification into ecological status assessment under the European Water Framework Directive. Water Res. 138, 192 (2018). Source
-
Li. A Pilot Application of Sedimentary DNA to Reveal Long-Term Fish Diversity Dynamics in an Urbanized Estuary and Adjacent Waters. Environ. Sci. Technol. 59(46), 24955 (2025). Source
-
Dopheide. Fast-tracking bespoke DNA reference database generation from museum collections for biomonitoring and conservation. Mol. Ecol. Resour. 25(5) (2025). Source
-
Keck. Management of DNA reference libraries for barcoding and metabarcoding studies with the R package refdb. Mol. Ecol. Resour. 23(2), 511 (2023). Source
-
Jeunen. crabs─A software program to generate curated reference databases for metabarcoding sequencing data. Mol. Ecol. Resour. 23(3), 725 (2023). Source
-
Dziedzic. Creating, curating and evaluating a mitogenomic reference database to improve regional species identification using environmental DNA. Mol. Ecol. Resour. 23(8), 1880 (2023). Source
-
Leray. MIDORI2: A collection of quality controlled, preformatted, and regularly updated reference databases for taxonomic assignment of eukaryotic mitochondrial sequences. Environ. DNA 4(4), 894 (2022). Source
-
Boyer. obitools: A Unix-inspired software package for DNA metabarcoding. Mol. Ecol. Resour. 16(1), 176 (2016). Source
-
Marques. GAPeDNA: Assessing and mapping global species gaps in genetic databases for eDNA metabarcoding. Diversity And Distributions 27(10), 1880 (2021). Source
-
Lim. Mitohelper: A mitochondrial reference sequence analysis tool for fish eDNA studies. Environ. DNA 3(4), 706 (2021). Source
-
Ratnasingham. BOLD v4: A Centralized Bioinformatics Platform for DNA-Based Biodiversity Data.. Methods Mol Biol. 2744, 403 (2024). Source
-
Meglécz. COInr and mkCOInr: Building and customizing a nonredundant barcoding reference database from BOLD and NCBI using a semi-automated pipeline. Mol. Ecol. Resour. 23(4), 933 (2023). Source
-
Richardson. MetaCurator: A hidden Markov model-based toolkit for extracting and curating sequences from taxonomically-informative genetic markers. Methods In Ecology And Evolution 11(1), 181 (2020). Source
-
Keller. BCdatabaser: on-the-fly reference database creation for (meta-) barcoding. Bioinformatics 36(8), 2630 (2020). Source
-
Weigand. DNA barcode reference libraries for the monitoring of aquatic biota in Europe: Gap-analysis and recommendations for future work. Sci. Total Environ. 678, 499 (2019). Source
-
Kimble. Medna-metadata: an open-source data management system for tracking environmental DNA samples and metadata. Bioinformatics 38(19), 4589 (2022). Source
-
Shen. TaxonKit: A practical and efficient NCBI taxonomy toolkit. J. Genet. Genomics. 48(9), 844 (2021). Source
-
Buchner. APSCALE: advanced pipeline for simple yet comprehensive analyses of DNA metabarcoding data. Bioinformatics 38(20), 4817 (2022). Source
-
Schenekar. Reference databases, primer choice, and assay sensitivity for environmental metabarcoding: Lessons learnt from a re-evaluation of an eDNA fish assessment in the Volga headwaters. River Research And Applications 36(7), 1004 (2020). Source
-
Fontes. BAGS: An automated Barcode, Audit & Grade System for DNA barcode reference libraries. Mol. Ecol. Resour. 21, 573 (2021). Source
-
Chuvochina. SILVA in 2026: a global core biodata resource for rRNA within the DSMZ digital diversity. Nucleic Acids Res. 54(D1), D334 (2026). Source
-
Abarenkov. The UNITE database for molecular identification and taxonomic communication of fungi and other eukaryotes: sequences, taxa and classifications reconsidered. Nucleic Acids Res. 52(D1), D791 (2024). Source
-
Bolyen. Reproducible, interactive, scalable and extensible microbiome data science using QIIME 2. Nat. Biotechnol. 37(8), 852 (2019). Source
-
Callahan. DADA2: High-resolution sample inference from Illumina amplicon data. Nat. Methods 13(7), 581 (2016). Source
-
Camacho. BLAST+: architecture and applications. BMC Bioinf. 10(1), 421 (2009). Source
-
Rognes. VSEARCH: a versatile open source tool for metagenomics. PeerJ 4 (2016). Source
-
Wang. Naive Bayesian classifier for rapid assignment of rRNA sequences into the new bacterial taxonomy. Appl. Environ. Microbiol. 73(16), 5261 (2007). Source
-
Zhang. A comprehensive and comparative evaluation of primers for metabarcoding eDNA from fish. Methods In Ecology And Evolution 11(12), 1609 (2020). Source
-
Polanco. Comparing the performance of 12S mitochondrial primers for fish environmental DNA across ecosystems. Environ. DNA 3(6), 1113 (2021). Source
-
Min. Choice of primer pairs and PCR polymerase affect the detection of fish eDNA. Environ. Sci. Eur. 35(1), 103 (2023). Source
-
Hleap. Assessment of current taxonomic assignment strategies for metabarcoding eukaryotes. Mol. Ecol. Resour. 21(7), 2190 (2021). Source
-
Li. Environmental DNA biomonitoring reveals the human impacts on native and non-native fish communities in subtropical river systems. J. Environ. Manage. 349, 119595 (2024). Source
-
Li. Environmental DNA Biomonitoring Reveals the Interactive Effects of Dams and Nutrient Enrichment on Aquatic Multitrophic Communities. Environ. Sci. Technol. 56(23), 16952 (2022). Source
-
Li. Riparian Land Use Reduces Multitrophic Community Stability in Rivers. Global Change Biol. 32(9) (2026). Source
-
Robeson. RESCRIPt: Reproducible sequence taxonomy reference database management. PLoS Comput. Biol. 17(11) (2021). Source
-
Schmid. Unlocking natural history collections to improve eDNA reference databases and biodiversity monitoring. BioScience 75(12), 1083 (2025). Source
-
Appleyard. Australia’s marine fishes DNA barcode reference library for integrated taxonomy, metabarcoding & eDNA research. Sci. Data 12(1), 21 (2025). Source
-
Prosser. BOLDistilled: Automated Construction of Comprehensive but Compact DNA Barcode Reference Libraries. Mol. Ecol. Resour. 25(8) (2025). Source