Submitted:
09 September 2026
Posted:
09 September 2026
You are already at the latest version
Abstract
Species-level identification of mosquitoes within the Anopheles gambiae complex is essential for vector surveillance but remains challenging because several members are morphologically indistinguishable and share substantial genomic variation. Here, I evaluate varKoding, a genome-wide k-mer fingerprinting approach that classifies low-coverage sequencing data without genome assembly using 296 specimens representing seven species of the An. gambiae complex and two non-complex Anopheles species.Leave-one-out validation was performed across five sequencing data amounts (500K–10M bp) using varKode and conventional chaos game representation (CGR) images. varKode consistently outperformed CGR at every sequencing depth, with multi-class accuracy increasing from 95.27% at 500K bp to 98.65% at 10M bp. At 10M bp, six of nine taxa achieved 100% recall; An. gambiae s.s. and An. coluzzii each achieved 97.5% recall, while An. stephensi achieved 95.0%. Reciprocal gambiae–coluzzii errors were concentrated among specimens from Tiassalé, Côte d'Ivoire, including a pre-2013 specimen whose species label cannot be independently verified. An independent Ag3 analysis using geographically held-out An. gambiae and An. coluzzii specimens confirmed strong discrimination of near-pure individuals but showed that relative class scores did not reliably resolve fine-scale genomic ancestry within populations. Confidence scores generally separated correct from incorrect predictions. Classification remained correct for all six evaluable species at up to 20% simulated contamination across four biologically relevant non-target DNA backgrounds.Overall, varKoding provides high-accuracy identification from low-coverage data across the represented members of the complex, including reliable identification of the important malaria vector An. arabiensis and the non-vector An. quadriannulatus. Difficult or unexpected specimens can be directed to orthogonal molecular or population-genomic confirmation, allowing the method to serve as a practical first-pass surveillance tool. Broader geographic validation of the full multi-species classifier and expanded reference representation would further support routine surveillance applications.
Keywords:
Anopheles gambiae complex
; Anopheles
; malaria vectors
; species identification
; genome-wide k-mers
; k-mer signatures
; varKoding
; low-coverage sequencing
; bioinformatics
; genomic classification
; mosquito surveillance
; Plasmodium
; genomics
; species diagnostics
; Anopheles gambiae
; Anopheles coluzzii
; Anopheles arabiensis
; Anopheles melas
; Anopheles merus
; Anopheles bwambae
; Anopheles quadriannulatus
; COI barcoding
; MalariaGEN Anopheles gambiae 1000 genomes project
; vision transformer
1. Introduction
Plasmodium falciparum malaria remains among the most consequential infectious diseases, with an estimated 282 million clinical cases and 610,000 deaths recorded in 2024, approximately 95% of which occurred in sub-Saharan Africa (World Health Organization, 2025). Transmission is predominantly caused by members of the Anopheles gambiae sensu lato (s.l.) species complex, a group of at least eight morphologically indistinguishable sibling species collectively responsible for the majority of P. falciparum transmission (Sinka et al., 2012; Coetzee et al., 2013). These include the dominant vectors An. gambiae, An. coluzzii, and An. arabiensis and secondary saltwater-breeding vectors An. melas and An. merus. An. bwambae is geographically restricted to geothermal-spring habitats and An. quadriannulatus is a strictly zoophilic non-vector that co-occurs with the primary vectors. An. amharicus is formally recognized as a complex member while An. comorensis is recognized as a complex member by some authorities based on morphological grounds (Sinka et al., 2012; Coetzee et al., 2013).
Despite their morphological similarity, members of the An. gambiae complex differ in the characteristics that contribute to malaria burden such as host preference and insecticide resistance. For e.g., frequency of L1014F knockdown resistance mutation in the voltage-gated sodium channel (VGSC) varies from 80% in An. coluzzii to <15% in An. arabiensis (Ibrahim et al., 2019). These differences are further complicated along the contact zone between An. gambiae s.s. and An. coluzzii in West Africa, where ongoing interspecific hybridization and asymmetric adaptive introgression have transferred insecticide-resistance loci across species boundaries, creating intermediate populations whose identity cannot be determined without species-level data (Clarkson et al., 2014; Fontaine et al., 2015).
Adult specimens of An. gambiae complex cannot be reliably separated by diagnostic morphological keys (Erlank et al., 2018). Conventional COI barcoding, mitochondrial SNPs and whole mitogenome analysis show limited capacity to separate members of this complex due to incomplete lineage sorting and extensive shared and introgressed haplotypes (Fontaine et al., 2015; Hanemaaijer et al., 2019). The foundational multiplex PCR assay of Scott et al. (1993) is capable of separating the principal complex members in a single reaction, but its development predates formal recognition of An. coluzzii (Scott et al., 1993). The SINE-insertion polymorphism assay of Santolamazza et al. (2008) identifies the hybrids through a characteristic dual-band profile but its coverage is limited to the gambiae–coluzzii–arabiensis triad (Santolamazza et al., 2008). A subsequent TaqMan multiplex assay improved throughput by discriminating An. gambiae s.s. from An. arabiensis and a combined non-vector class (An. quadriannulatus, An. melas, An. merus) in a single reaction, but likewise predates the formal elevation of An. coluzzii and does not resolve the three non-vector species individually (Bass et al., 2008). A further limitation of these gel-based assays is that morphologically similar non-target Anopheles species outside the complex can produce false positive amplification, making prior morphological screening a prerequisite for reliable interpretation (Erlank et al., 2018).
Genome-wide approaches provide a robust framework for species identification because they integrate signals from across the genome and can explicitly account for population structure and admixture, as implemented at scale by the MalariaGEN Anopheles gambiae 1000 Genomes Project (Clarkson et al., 2014; The Anopheles gambiae 1000 Genomes Consortium, 2017). These approaches have generally relied on substantially greater sequencing depth, reference alignment and variant-based analysis. Genomic signature circumvents the need for assembled reference genomes by treating the genome-wide distribution of variation as a species-specific signal (Jeffrey, 1990; Deschavanne et al., 1999). When encoded as two-dimensional images through chaos game representation (CGR) or varKode transformation, these signatures can be classified by vision transformer (ViT) neural networks trained directly on image data without reference to any genome assembly (de Medeiros et al., 2025; Dosovitskiy et al., 2021). varKoding demonstrated greater than 91% precision for species-level classification of Stigmaphyllon plants from 500 kbp of genome skim data, and achieved 96% precision and 95% recall across all taxa in the NCBI Sequence Read Archive using less than 10 Mbp of input (de Medeiros et al., 2025).
A k-mer-based method has already been applied to Anopheles through the ANOSPP targeted amplicon panel, where a nearest-neighbor and variational-autoencoder classifier (NNoVAE) resolved most complex members but required a custom panel and a complex-specific model (Boddé et al., 2022). Using the dedicated classifier, the An. gambiae s.s.–An. coluzzii boundary remained the least tractable. Whether comparable species-level signal can be recovered from generic, panel-free whole-genome skim data, without amplicon design or per-complex model training, has not been examined.
The An. gambiae complex constitutes a particularly demanding test of any molecular diagnostic method as the complex radiated within approximately two million years ago (Fontaine et al., 2015), with coalescent analyses placing the crown age of the complex at approximately 0.526 Mya and the gambiae–coluzzii split at a yet shallower depth (Thawornwattana et al., 2018). The inter-species signal available to any classifier is further eroded by pervasive reticulate evolution through hybridization and adaptive introgression (Clarkson et al., 2014; Fontaine et al., 2015). No previous studies have examined whether varKoding can resolve species boundaries at shallow phylogenetic depth, and in the presence of known introgressed populations.
Here, I apply varKoding to 296 specimens representing seven members of the An. gambiae complex and two non-complex outgroup species (An. funestus, An. stephensi), using sequence data sourced from NCBI SRA and ENA repositories. Species assignments for the three primary vectors were cross-referenced against the MalariaGEN Ag3 sample manifest, providing genomically verified labels for the classification targets with the highest labelling ambiguity. I specifically assess: (i) the overall multi-class classification accuracy across all nine taxa and its dependence on sequencing depth and image representation; (ii) the resolution of An. gambiae s.s. versus An. coluzzii, the most genetically similar species boundary in the complex; (iii) whether the relative gambiae–coluzzii classification score reflects independently measured genomic ancestry in an external Ag3 dataset; (iv) the specificity of the classifier against both outgroup species, representing a genomically proximate non-target (An. funestus) and a phylogenetically distant invasive species (An. stephensi); (v) model performance for An. bwambae, the complex member with least public sequence data; and (vi) robustness of classification to increasing proportions of biologically relevant non-target DNA.
2. Methods
All sequencing data were obtained from public repositories through the NCBI Sequence Read Archive (SRA) and the European Nucleotide Archive (ENA); run accessions, BioProject accessions and per-specimen metadata for all 296 specimens are listed in Supplementary Data (SRA_manifest). Additional verification was required for An. gambiae s.s. and An. coluzzii because historical records deposited before formal recognition of An. coluzzii may use An. gambiae for specimens corresponding to the former M molecular form (Coetzee et al., 2013). Accordingly, An. gambiae s.s. accessions were restricted to specimens collected on or after 1 January 2015, and species assignments for the three primary vector species were cross-referenced against the MalariaGEN Ag3 sample manifest prior to download. An. amharicus and An. comorensis were excluded because suitable publicly available whole-genome sequencing data could not be identified.
To limit class imbalance in the classifier training set, a maximum of 40 samples per species was retrieved where available. Per-species final sample counts for the primary analysis are given in Table 1 (see Results section). Sequencing runs with fewer than 10,000 paired-end reads remaining after adapter and quality-tail trimming were excluded from downstream analysis, consistent with the minimum input threshold applied in the original varKoding method evaluation (de Medeiros et al., 2025).
Prior to analysis, all accessions were assessed for provenance suitability. Specimens originating from genetic crosses, bulk-segregant populations, or transgenic laboratory lines were flagged for review and excluded unless they represented field-collected parentals for which no alternative accessions were available.
2.1. VarKode and CGR Image Generation
Genomic images were generated using varKoder v1.7.1 (de Medeiros et al., 2025). Downloads from NCBI SRA were capped at 1,000,000 read pairs per sample using the NCBI SRA Toolkit (`fastq-dump --split-files -X 1000000`), providing a balance between data completeness and download efficiency for large-accession projects. Raw reads were pre-processed using fastp v1.1.0 (Chen et al., 2018) to remove adapter sequences and trim low-quality read ends. Read-level quality filtering, deduplication and length filtering were disabled to avoid altering k-mer frequency distributions in the low-coverage genome-skim data. Following preprocessing, reads were passed to varKoder for k-mer counting and image generation.
Two image representations were produced for every sample at each of five fixed data amounts: varKode images, which encode k-mer frequency ranks and positional similarity in a two-dimensional image optimized for canonical k-mer indistinguishability from raw reads; and standard frequency chaos game representation (CGR) images, which encode k-mer frequencies alone without the positional re-ordering applied by the varKode embedding (Jeffrey, 1990; Almeida et al., 2001; de Medeiros et al., 2025). Both representations used a k-mer length of 7 (k = 7), an image resolution of 224 × 224 pixels, and data amounts of 500,000 (500K), 1,000,000 (1M), 2,000,000 (2M), 5,000,000 (5M), and 10,000,000 (10M) base pairs, following parameters optimized in de Medeiros et al. (2025). This produced ten images per sample (five data amounts × two image types), yielding 296 × 10 images across the full dataset of 296 samples.
The complete heptamer sequence space contains 4^7 = 16,384 possible k-mers. Under the varKoding conditions evaluated by de Medeiros et al. (2025), k-mer representation approaches saturation at approximately 2M bp of input sequence, beyond which additional sequencing increasingly resamples k-mers already represented in the genomic fingerprint. The five sequencing amounts used here therefore span inputs below and above this approximate saturation region, allowing the effect of increasing sequence amount on classification accuracy to be evaluated directly.
2.2. Neural Network Training and Leave-One-Out Validation
Classification models were trained using the varKoder neural network pipeline, which employs a vision transformer (ViT) backbone without pre-training on photographic images (de Medeiros et al., 2025; Dosovitskiy et al., 2021). Models were trained in varKoder’s default multi-label configuration, in which each species class is scored independently against the decision threshold; specimens for which no class exceeds the threshold are returned as inconclusive rather than being forced into the nearest represented class (de Medeiros et al., 2025). Models were trained with the following hyperparameters: 50 epochs, a base learning rate of 0.005, a maximum batch size of 32, two data-loading workers, and a fixed random seed of 42 for reproducibility. No held-out validation set was used during training; classification performance was evaluated entirely through leave-one-out validation (LOOV) as described below.
Classification accuracy was assessed using LOOV, in which each sample was designated the held-out specimen in turn. For each iteration, a model was trained on all remaining samples and used to classify the held-out specimen. This was repeated for every sample in the dataset, yielding one independent classification result per specimen. LOOV was performed separately for each of the 10 image type-data amount combinations, producing ten complete LOOV experiments in total. Training and inference were performed on NVIDIA L4 or A100 GPUs (24/48 GB VRAM) using the SLURM workload manager on a high-performance computing platform, under CUDA 12.6.3 and cuDNN 9.5.1.17.
2.3. Performance Evaluation
Classification outcomes were assigned to three categories based on the model’s confidence score for the top-ranked species prediction. Outcomes with confidence at or above the default threshold of 0.7 were categorized as either correct (predicted species matches true species) or incorrect (predicted species differs from true species). Outcomes below the threshold were categorized as inconclusive. Multi-class accuracy was calculated as the proportion of correct classifications among all evaluated samples.
Per-species performance metrics were calculated using one-versus-all binary classification for each species class. Metrics included recall (sensitivity; proportion of target specimens correctly identified above threshold), precision (proportion of positive identifications that were correct), specificity, negative predictive value (NPV), false omission rate (FOR), Matthews correlation coefficient (MCC), and the Fβ score with β = 2, which weights recall more strongly than precision. Positive and negative likelihood ratios (LR+ and LR−) were calculated where their denominators were non-zero. MCC was included as a balanced summary measure because the one-versus-all comparisons were inherently class-imbalanced. Confidence calibration was assessed by comparing model confidence scores between correctly and incorrectly classified specimens across all sequencing amounts and image representations. Sensitivity to the classification threshold was additionally examined by recalculating classification outcomes across progressively higher confidence thresholds at the primary analysis condition; results of this threshold analysis are reported in Supplementary Table S6.
A specimen-level error-persistence analysis was performed on samples classified incorrectly or inconclusively in three or more of the ten LOOV experiments. For each flagged specimen, the frequency and identity of repeated alternative species assignments were recorded across image representations and sequencing amounts. Specimens showing repeated assignment to the same alternative species were investigated as potential cases of dataset anomaly, biological similarity or systematic classification uncertainty. Provenance was subsequently assessed against the original SRA metadata, MalariaGEN Ag3 sample manifests and published project descriptions (Supplementary Table S7).
2.4. Validation of the Gambiae–coluzzii Classification Score Against Genomic Ancestry
To examine whether the reciprocal An. gambiae s.s.–An. coluzzii assignments observed in the main analysis reflected a continuous ancestry signal, I performed a separate validation using specimens from the MalariaGEN Ag3 resource with independently determined ancestry-informative marker (AIM) values (Supplementary Table S8 and Table S10). A binary gambiae–coluzzii model was trained on 80 ancestry-extreme reference specimens: 40 An. gambiae s.s. with a 2L-excluded coluzzii AIM fraction (aim_species_fraction_colu_no2l) <0.05 and 40 An. coluzzii with a fraction >0.95. The same 2L-excluded AIM estimate was used as the primary ancestry measure in subsequent analyses. Reference specimens were drawn from populations outside the Guinea-Bissau and Gambian sample sets used for testing, so the model was not trained on specimens of intermediate ancestry or on individuals from the query populations. Reference selection used geographically dispersed sample sets to broaden representation within each ancestry-extreme class.
The trained model was queried against 377 independent specimens from Guinea-Bissau and The Gambia: 332 specimens with 2L-excluded AIM fractions between 0.05 and 0.95, 15 near-pure An. gambiae anchors (<0.05), and 30 near-pure An. coluzzii anchors (>0.95) (Supplementary Table S8 and Table S10). No specimen occurred in both the reference and query datasets. varKode images were generated from 10M bp per specimen using k = 7 and the same image dimensions and model-training parameters as the primary analysis. Querying was performed at the 0.7 confidence threshold while retaining the separate model scores for An. gambiae and An. coluzzii.
For each query specimen, a relative gambiae–coluzzii classification index was calculated as , where and are the corresponding model scores. Values approaching 0 therefore indicate a gambiae-leaning classification and values approaching 1 a coluzzii-leaning classification. was treated as a relative classification index rather than an estimate of genomic ancestry. Its association with the Ag3 AIM coluzzii fraction was assessed using Spearman rank correlation, with the 2L-excluded AIM fraction as the primary measure and the whole-genome fraction including 2L as a secondary comparison. Ninety-five per cent confidence intervals for the pooled correlations were obtained by bootstrap resampling with 5,000 replicates. To distinguish within-population from between-population structure, correlations were also calculated separately within each of the four query populations, summarized across populations, and examined using a partial rank correlation controlling for sample set. Separation of the near-pure gambiae and coluzzii anchors was quantified using the area under the receiver operating characteristic curve (AUC) and the Mann–Whitney U test. A descriptive ordinary least-squares was calculated for the pooled relationship, and the analysis was additionally repeated for specimens with AIM values between 0.20 and 0.80 to examine the part of the dataset containing substantial intermediate ancestry. Population-stratified and ancestry-bin summaries are provided in Supplementary Table S9.
2.5. Contamination Robustness Analysis
A production model was trained on all 296 specimens using varKode images at 10M bp with the leave-one-out hyperparameters (ViT backbone vit_large_patch32_224.NCBI_SRA; 50 epochs; base learning rate 0.005; batch size 32; seed 42; validation fraction 0) and retained for querying. To assess robustness to non-target DNA, one correctly classified representative specimen per species was mixed with simulated reads from each of four contaminants representing biologically plausible sources of non-target DNA in field material: Plasmodium falciparum (GCF_000002765.6), Homo sapiens (chromosome 1, NC_000001.11), Bos taurus (chromosome 25, NC_037352.1), and the endosymbiont Wolbachia pipientis (strain wAnM, CP084693.1). Contaminant reads (150 bp paired-end, 2% base error) were simulated with wgsim.
For each contaminant, target and contaminant reads were combined at six contamination fractions (10%, 20%, 30%, 50%, 70% and 90% by read count), alongside a pure-target (0%) baseline, subsampled with seqtk (seed 42), and used to generate varKode images at 10M bp (k = 7). Each image was queried against the production model at the 0.7 confidence threshold and scored as correct, incorrect, or inconclusive. Titrations were completed for six species (An. arabiensis, An. coluzzii, An. funestus, An. gambiae s.s., An. melas, An. stephensi); the representatives available for An. merus, An. bwambae, and An. quadriannulatus derived only from legacy ~100 bp libraries that could not reach 10M bp across all fractions after quality trimming, and these three species were excluded.
3. Results
3.1. Classification Accuracy Scales with Sequencing Depth and Is Consistently Higher for varKode than CGR
Leave-one-out validation (LOOV) across 296 specimens and all ten image type–data amount combinations demonstrated that varKode image representations outperformed CGR images at every sequencing depth (Figure 1). Multi-class accuracy for varKode increased from 95.27% at 500K bp to 98.99% at 5M bp, with a marginal decline to 98.65% at 10M bp. CGR images showed a steeper depth-dependence, rising from 92.57% at 500K bp to 97.97% at 10M bp.
Inconclusive predictions (confidence < 0.7) were infrequent across all conditions and were concentrated at the lowest sequencing depth. For varKode, 1.35% of classifications were inconclusive at 500K bp, declining to 0.34% at 2M bp and reaching zero at 5M bp. CGR followed a similar pattern, with inconclusive predictions declining from 2.03% at 500K bp to zero at 5M and 10M bp. Incorrect classifications also declined with increasing sequencing depth, from 3.38% for varKode and 5.41% for CGR at 500K bp to 1.01% and 2.03%, respectively, at 10M bp. Across all conditions, 72 of the 90 non-correct outcomes were incorrect classifications rather than inconclusive calls.
3.2. Accuracy Plateaus Above the K-Mer Saturation Threshold at Approximately 2M Bp
Classification accuracy increased most strongly between 500K and 2M bp and changed little at higher data amounts (Figure 2, Supplementary Table S5). Between 2M and 5M bp, accuracy increased by 0.68 percentage points for varKode and 0.33 percentage points for CGR. Between 5M and 10M bp, varKode accuracy declined marginally from 98.99% to 98.65%, while CGR remained stable at 97.97%. Thus, most of the observed improvement in classification performance occurred by approximately 2M bp, with little additional gain at higher data amounts.
3.3. Six Species Achieve 100% Recall; Residual Errors Are Confined to the Gambiae–coluzzii Species Boundary and One Outgroup
At the primary analysis condition (varKode, 10M bp), overall multi-class accuracy was 98.65% (292 of 296 specimens correctly classified; Table 1). Three specimens were incorrectly classified and one was inconclusive (0.34%).
Six of the nine study species — An. arabiensis, An. melas, An. merus, An. quadriannulatus, An. bwambae, and the outgroup An. funestus — achieved 100% recall with no errors or inconclusive predictions (Figure 3, Supplementary Table S1, Supplementary Table S3).
The two remaining complex members, An. gambiae s.s. and An. coluzzii, each showed 97.5% recall (39 of 40 specimens correctly classified), with a single reciprocal misclassification in each direction: one An. gambiae s.s. specimen was assigned to An. coluzzii, and one An. coluzzii specimen was assigned to An. gambiae s.s. (Figure 4, Supplementary Table S4). These errors are examined in detail in the error-persistence analysis below. The second outgroup, An. stephensi, showed 95.0% recall (38 of 40 specimens correctly classified), with one specimen assigned to An. melas and one called as inconclusive. The stephensi misassignment to An. melas is addressed in the error-persistence analysis; notably, An. stephensi precision was 100%, indicating that no specimens of other species were incorrectly assigned to An. stephensi.
One-versus-all metrics at the primary condition confirmed high classification reliability across all species with adequate training sample sizes. Matthews correlation coefficients (MCC) were 0.971 for An. gambiae s.s., An. coluzzii, and An. stephensi, 0.986 for An. melas, and 1.000 for the remaining five species (An. arabiensis, An. merus, An. quadriannulatus, An. bwambae, and An. funestus). F2 scores, which weight recall twice as heavily as precision, were 0.975 for An. gambiae s.s. and An. coluzzii, 0.960 for An. stephensi, 0.995 for An. melas, and 1.000 for the remaining five species. The intermediate values for An. melas reflect a single An. stephensi specimen misassigned to An. melas, which slightly reduced An. melas precision (0.976) despite its perfect recall (Supplementary Table S1).
3.4. Model Confidence Scores Show Robust Separation of Correct from Incorrect Predictions Across All Sequencing Depths
Across all ten LOOV experiments (2,870 correct predictions and 72 incorrect predictions, excluding 18 inconclusive calls), model confidence scores showed strong separation between correctly and incorrectly classified specimens (Figure 5). Correct predictions returned a mean confidence of 0.991 (median 0.999; interquartile range 0.996–1.000), indicating near-maximal model certainty for the overwhelming majority of identifications. Incorrect predictions returned a markedly lower mean confidence of 0.899 (median 0.937; interquartile range 0.829–0.975), representing a separation of 0.092 from the mean of correct predictions.
At the primary analysis condition (varKode, 10M bp), the three incorrect predictions had a mean confidence of 0.968, higher than the cross-condition mean for incorrect calls. These comprised the reciprocal An. gambiae s.s.–An. coluzzii assignments and the An. stephensi to An. melas assignment. Thus, although confidence scores were generally lower for incorrect than correct predictions across the full analysis, some incorrect classifications at 10M bp remained highly confident.
3.5. Error-Persistence Analysis Identifies Three Anomalous Specimens and a Distributed Gambiae–coluzzii Boundary Cluster
Specimen-level error-persistence analysis flagged 12 specimens misclassified or inconclusive in three or more of the ten LOOV experiments (Supplementary Table S7). These specimens fell into two distinct patterns. Three showed consistent misclassification across nearly all conditions: SRR30332252, labelled An. gambiae s.s., was classified as An. coluzzii in 9 of 10 conditions; ERR16118202, labelled An. stephensi, was classified as An. melas in 9 of 10 conditions; and ERR13667005, also labelled An. stephensi, was classified as An. melas in 8 of 10 conditions. SRR30332252 was collected at Tiassalé, Côte d’Ivoire, in 2009 and originated from project PRJNA1149950. Its collection predates the formal taxonomic recognition of An. coluzzii, and its submitted species label could not be independently cross-checked against the Ag3 manifest. ERR16118202 and ERR13667005 originated from the same study (PRJEB75823) and were collected in Kenya in 2024 and Sudan in 2022, respectively.
A second, distributed cluster involved four An. coluzzii specimens from Tiassalé (SRR30332257: 6 of 10 conditions; SRR30332171: 5 of 10; SRR30332266: 4 of 10; SRR30332180: 3 of 10) and one An. gambiae s.s. specimen from the same project (SRR30332277: 2 of 10), all showing assignments toward the reciprocal species. The specimens were retained in the dataset because the classification results alone could not distinguish genomic admixture, historical labelling uncertainty, or other specimen-level causes.
The gambiae–coluzzii classification score separates the species extremes but does not measure fine-scale ancestry
The independent Ag3 experiment confirmed that the binary varKode model strongly distinguishes An. gambiae s.s. from An. coluzzii at the ancestry extremes. Among geographically independent query specimens, the median was 0.11 for the 15 near-pure An. gambiae anchors and 0.97 for the 30 near-pure An. coluzzii anchors (Table 2, Supplementary Table S8 and Table S9). Separation of the two groups was correspondingly high (AUC = 0.97), showing that the relative classification score is strongly associated with species identity at the ends of the gambiae–coluzzii range (Figure 6, A).
Across the 332 specimens with AIM values between 0.05 and 0.95, showed a strong positive relationship with the 2L-excluded AIM fraction (Spearman , 95% CI 0.63–0.74, ); the corresponding relationship with the AIM fraction including 2L was .
However, this pooled relationship largely reflected differences among the four sampled populations rather than a continuous change among individual mosquitoes within each population. Within Guinea-Bissau, GM-A, GM-B and GM-C, the correlations were respectively 0.14, 0.20, 0.30 and −0.01, and none was statistically significant ((Figure 6, B). Thus, populations with predominantly gambiae-like ancestry generally also received lower values, whereas the predominantly coluzzii-like population received higher values, producing a strong relationship when the populations were combined.
The limited resolution of individual ancestry was clearest among the specimens occupying the middle of the ancestry range. Only 34 mosquitoes had AIM fractions between 0.20 and 0.80, and within this group was not associated with AIM ancestry (). Forty-five of the 332 specimens exceeded the 0.7 threshold for both gambiae and coluzzii, while six exceeded the threshold for neither species and were therefore returned as inconclusive.
) on y-axis. Filled points are intermediate query specimens (AIM 0.05–0.95, n = 332), coloured by sample set: Guinea-Bissau (AG1000G-GW), Gambia GM-A, GM-B and GM-C. Open circles are the near-pure anchors — gambiae (green, n = 15) and coluzzii (black, n = 30). The dotted line marks = 0.5. (B) Spearman rank correlation between and AIM ancestry, pooled versus within population. Bars show the correlation computed across all 332 intermediate specimens (Aggregate, pooled), separately within each query population (GW, GM-A, GM-B, GM-C), and after controlling for population by rank-residualisation on sample set (Partial). The dashed line marks ρ = 0.5.
3.6. Classification Is Robust to Contamination up to a Practical Threshold of Approximately 20%
At the pure-target baseline, all six evaluable species were classified correctly with near-maximal confidence (mean 0.999), confirming that the production model behaves identically to the leave-one-out models on the representative specimens. Under progressive contamination, classification remained fully correct up to a fraction that depended on the contaminant identity (Figure 7, A). For human and Wolbachia contamination, every species was classified correctly up to 30% contamination. For Plasmodium and bovine contamination, full accuracy was retained only up to 20%, with the first failure appearing at 30%. Accuracy then declined progressively at higher fractions for all four contaminants, falling to between 0.17 and 0.33 at 90%. A conservative operating threshold of 20% contamination was therefore correct across all four contaminant types.
Plasmodium falciparum was the most disruptive contaminant. The first incorrect classification under any contaminant occurred at 30% Plasmodium, where An. arabiensis was assigned to An. coluzzii with confidence 0.87. Bovine contamination produced the first inconclusive call, for An. gambiae at 30%, whereas human and Wolbachia contamination produced no classification failures until 50%. Tolerance varied markedly among the six species (Figure 7, B). An. melas and An. stephensi retained correct classifications at higher contamination fractions than the other tested species, with An. stephensi correctly classified in every contaminant–fraction combination except one. An. arabiensis showed the earliest failure, at 30% Plasmodium contamination.
The dominant failure mode at high contamination was confident assignment to An. stephensi. Of 39 incorrect calls across the titration, 31 (79%) were assigned to An. stephensi, with a mean confidence of 0.86. This pattern occurred with human, Plasmodium, and bovine contamination at fractions of 70% or greater and involved multiple African species. A secondary pattern of assignment to An. melas occurred at 90% Wolbachia contamination. Among classifications that remained correct, mean confidence declined from 0.97 at 30% contamination to 0.94 at 50%, while remaining above 0.88 through 70%.
4. Discussion
Genome-wide k-mer fingerprints provided high species-level discrimination across the represented members of the Anopheles gambiae complex using only a small amount of sequence data. The most challenging boundary remained between An. gambiae s.s. and An. coluzzii, recently diverged species that share substantial genomic variation through historical and ongoing introgression (Anopheles gambiae 1000 Genomes Consortium, 2020; Clarkson et al., 2014; Fontaine et al., 2015). Despite this genomic similarity, nearly all specimens of both species were correctly distinguished. The results therefore show that species-level information remains detectable in genome-wide k-mer composition even across one of the most difficult boundaries within the complex. This extends previous applications of varKoding to a system in which closely related taxa remain genetically distinct despite extensive exchange of genomic variation (de Medeiros et al., 2025; Fontaine et al., 2015).
The few An. gambiae–An. coluzzii discrepancies were not distributed randomly among the specimens. The most persistent case was an An. gambiae-labelled mosquito collected at Tiassalé in 2009 that was repeatedly assigned to An. coluzzii, while several additional mosquitoes from the same locality showed less persistent reciprocal assignments between the two species. Tiassalé lies within a region of Côte d’Ivoire where unusually high levels of gambiae–coluzzii hybridization have been reported (Caputo et al., 2021), and extensive gene flow between these species is well established across their wider range (Clarkson et al., 2014; Fontaine et al., 2015). Because the 2009 specimen predates the formal recognition of An. coluzzii, historical labelling uncertainty cannot be excluded. Similar difficulties have been reported for an independent k-mer classifier based on targeted Anopheles amplicons, in which the gambiae–coluzzii boundary was also the most difficult within the complex (Boddé et al., 2022). Together, these observations show that most An. gambiae and An. coluzzii can be separated from their genome-wide k-mer profiles, while specimens from regions of extensive genomic exchange require more cautious interpretation.
The independent Ag3 analysis helps define what this boundary behavior means. A binary model trained only on ancestry-extreme An. gambiae and An. coluzzii strongly separated near-pure specimens from geographically independent populations, confirming that the k-mer representation contains a clear genomic distinction between the two species. Although the relative classification score appeared to track AIM ancestry when populations were pooled, the relationship was weak within individual populations and absent in the sparsely represented middle of the ancestry range. The classifier therefore detects the broad genomic distinction between An. gambiae and An. coluzzii much more reliably than it detects how much ancestry an individual mosquito carries from either species.
This result reinforces the distinction between species classification and ancestry analysis. Introgression between An. gambiae and An. coluzzii produces mosaic genomes in which ancestry is unevenly distributed across the genome rather than representing a simple mixture of two species (Clarkson et al., 2014; Fontaine et al., 2015). Ancestry-informative markers are selected specifically to detect this variation, whereas varKoding summarizes k-mer patterns across the sampled sequence as a whole. It is therefore plausible that a mosquito can resemble one reference class strongly enough for species classification while still carrying substantial ancestry from the other species. The Ag3 experiment shows directly that varKode class scores should not be converted into ancestry estimates; where admixture or introgression itself is the question, ancestry-informative markers or population-genomic analysis remain the appropriate complementary approaches.
The Ag3 experiment also strengthens the importance of reference-population composition. The large difference between the pooled and within-population relationships shows that population membership strongly structures the observed association between varKode score and ancestry, although the present analysis cannot distinguish biological population structure from study-specific or technical effects. The Ag1000G resource has documented substantial geographic structure within both An. gambiae and An. coluzzii alongside extensive sharing of genomic variation between them (Anopheles gambiae 1000 Genomes Consortium, 2020). The Tiassalé observations and the independent Ag3 results therefore point in the same practical direction: future reference libraries should prioritize geographic breadth, contact zones and underrepresented populations rather than simply adding further specimens from populations that are already well represented.
The amount of sequence required to obtain this discrimination was also small. Classification improved rapidly between 500K and approximately 2M bp and changed little at higher data amounts, consistent with saturation of the k-mer signal observed in the original varKoding study (de Medeiros et al., 2025). varKode also outperformed conventional CGR at every sequencing depth, indicating that the varKode representation was advantageous for this dataset, although the relative performance of the two representations is known to be dataset-dependent (de Medeiros et al., 2025). These results indicate that accurate identification does not require conventional whole-genome coverage, genome assembly or variant calling. For surveillance applications, this allows species information distributed across the genome to be recovered from low-coverage sequence data rather than depending on variation at a small number of predetermined loci.
Confidence scores generally distinguished correct from incorrect predictions, but the high-confidence errors at the primary analysis condition show that confidence represents model certainty rather than taxonomic certainty. Because varKoder scores each reference class independently, a specimen matching no class above the decision threshold is returned as inconclusive rather than being forced into its nearest class (de Medeiros et al., 2025). A biologically unusual or poorly represented specimen can nonetheless exceed the threshold for the class that most closely matches its genomic profile. The Tiassalé specimens illustrate this distinction, while the independent Ag3 analysis further shows that relative gambiae–coluzzii scores cannot be interpreted as ancestry proportions. Confidence should therefore be considered together with the classification result, specimen provenance and geographic context.
An important practical question is whether this genome-wide signal remains identifiable when mosquito DNA is mixed with DNA from other organisms. In the contamination experiment, all six evaluable species remained correctly identified at up to 20% contamination with each of the four tested backgrounds, with tolerance extending to 30% for human and Wolbachia DNA. This suggests that moderate non-target DNA does not necessarily preclude varKoding analysis and provides some tolerance to biologically relevant sources of contamination such as Plasmodium.
The contamination experiment also defines conditions under which greater caution is needed. Once target DNA became strongly diluted, errors increased and several specimens were assigned to An. stephensi with high confidence. The cause of this recurrent assignment is not established by the present analysis and should not be interpreted as evidence of biological similarity to An. stephensi; rather, it shows that confidence alone cannot identify every severely compromised sample. Unexpected classifications should therefore be considered together with specimen provenance and geographic context, particularly when the reported species would represent an unusual surveillance record. The 20% value should likewise be treated as an empirical threshold for this experiment rather than a universal limit: complete titrations were available for only six species, each experiment contained one contaminant at a time, and the effects of simultaneous parasite, host and microbial DNA were not tested.
The present results support a broader role for genome-wide fingerprints in the identification of difficult insect species complexes. The current findings suggest that further development should prioritize representative reference material rather than substantially deeper sequencing. The dataset remains geographically uneven, An. bwambae is represented by only five specimens, and two recognized members of the complex could not be evaluated because suitable whole-genome data were unavailable. The separate Ag3 experiment provides geographically independent validation of the gambiae–coluzzii distinction, but not independent validation of the full nine-species classifier. Future work should therefore prioritize independent populations, contact zones and poorly represented taxa, together with testing of additional Anopheles species outside the current label set to establish how reliably unfamiliar specimens are returned as inconclusive. Cross-platform generalization was not evaluated here, and future deployment should establish whether models trained predominantly on one sequencing technology retain comparable performance when queried with data generated on other platforms. These limitations do not alter the central result: low-coverage genome-wide fingerprints separated most specimens across seven members of a recently diverged and introgressed species complex. With broader reference sampling and independent validation, the same strategy could provide a scalable first-pass identification framework for Anopheles surveillance and other difficult species complexes.
5. Conclusions
Genome-wide k-mer fingerprinting recovered reliable species-level information from very shallow sequencing data across the represented members of the Anopheles gambiae complex, including strong discrimination of the closely related and extensively introgressed An. gambiae s.s. and An. coluzzii. Independent Ag3 validation confirmed that varKoding captures the broad genomic distinction between these species, while also defining an important operational limit: relative class scores should not be interpreted as quantitative estimates of hybrid ancestry. Classification remained robust under moderate simulated contamination, and performance largely plateaued at low sequence amounts, supporting the practicality of genome-skimming for routine identification. Together, these findings position varKoding as a promising first-pass framework for identifying difficult Anopheles specimens, with unusual or boundary cases directed to targeted molecular or population-genomic confirmation. Broader geographic reference sampling, improved representation of rare complex members, and explicit testing of species outside the current label set should further strengthen the reliability and surveillance utility of this approach.
Supplementary Materials
The following supporting information can be downloaded at the website of this paper posted on Preprints.org.
Funding
This research received no external funding and was self-funded by the author.
Data Availability Statement
All sequence data analysed in this study are publicly available through the NCBI Sequence Read Archive (SRA) and European Nucleotide Archive (ENA). Individual run accessions, BioProject accessions and associated metadata for all 296 specimens are provided in the Supplementary Data (SRA_manifest).
Acknowledgments
The author thanks the developers of varKoder and the MalariaGEN Anopheles gambiae 1000 Genomes Project (Ag1000G/Ag3) that generated and openly released the data.
Conflicts of Interest
The author declares no conflicts of interest.
References
- Almeida, J. S.; Carriço, J. A.; Maretzek, A.; Noble, P. A.; Fletcher, M. Analysis of genomic sequences by Chaos Game Representation. Bioinformatics 2001, 17(5), 429–437. [Google Scholar] [CrossRef]
- Anopheles gambiae 1000 Genomes Consortium. Genome variation and population structure among 1142 mosquitoes of the African malaria vector species Anopheles gambiae and Anopheles coluzzii. Genome Res. 2020, 30(10), 1533–1546. [Google Scholar] [CrossRef]
- Bass, C.; Williamson, M. S.; Field, L. M. Development of a multiplex real-time PCR assay for identification of members of the Anopheles gambiae species complex. Acta Trop. 2008, 107(1), 50–53. [Google Scholar] [CrossRef]
- Boddé, M.; Makunin, A.; Ayala, D.; Bouafou, L.; Diabaté, A.; Ekpo, U. F.; Kientega, M.; Le Goff, G.; Makanga, B. K.; Ngangue, M. F.; Omitola, O. O.; Rahola, N.; Tripet, F.; Durbin, R.; Lawniczak, M. K. High-resolution species assignment of Anopheles mosquitoes using k-mer distances on targeted sequences. eLife 2022, 11, e78775. [Google Scholar] [CrossRef]
- Caputo, B.; Pichler, V.; Bottà, G.; De Marco, C.; Hubbart, C.; Perugini, E.; Pinto, J.; Rockett, K. A.; Miles, A.; Della Torre, A. Novel genotyping approaches to easily detect genomic admixture between the major Afrotropical malaria vector species, Anopheles coluzzii and An. Gambiae. Mol. Ecol. Resour. 2021, 21(5), 1504–1516. [Google Scholar] [CrossRef]
- Caputo, B.; Tondossoma, N.; Virgillito, C.; Pichler, V.; Serini, P.; Calzetta, M.; Manica, M.; Coulibaly, Z. I.; Dia, I.; Akré, M.; Offianan, A.; Della Torre, A. Is Côte D’Ivoire a new high hybridization zone for the two major malaria vectors, Anopheles coluzzii and An. Gambiae (Diptera, Culicidae)? Infect. Genet. Evol. 2022, 98, 105215. [Google Scholar] [CrossRef]
- Chen, S.; Zhou, Y.; Chen, Y.; Gu, J. fastp: An ultra-fast all-in-one FASTQ preprocessor. Bioinformatics 2018, 34(17), i884–i890. [Google Scholar] [CrossRef]
- Clarkson, C. S.; Weetman, D.; Essandoh, J.; Yawson, A. E.; Maslen, G.; Manske, M.; Field, S. G.; Webster, M.; Antão, T.; MacInnis, B.; Kwiatkowski, D.; Donnelly, M. J. Adaptive introgression between Anopheles sibling species eliminates a major genomic island but not reproductive isolation. Nat. Commun. 2014, 5, 4248. [Google Scholar] [CrossRef]
- Coetzee, M.; Hunt, R. H.; Wilkerson, R. C.; Torre della, A.; Coulibaly, M. B.; Besansky, N. J. Anopheles coluzzii and Anopheles amharicus, new members of the Anopheles gambiae complex. Zootaxa 2013, 3619(3), 246–274. [Google Scholar] [CrossRef]
- de Medeiros, B. A. S.; Cai, L.; Flynn, P. J.; Yan, Y.; Duan, X.; Marinho, L. C.; Anderson, C.; others. A composite universal DNA signature for the tree of life. Nat. Ecol. Evol. 2025, 9, 1426–1440. [Google Scholar] [CrossRef]
- Deschavanne, P. J.; Giron, A.; Vilain, J.; Fagot, G.; Fertil, B. Genomic signature: Characterization and classification of species assessed by chaos game representation of sequences. Mol. Biol. Evol. 1999, 16(10), 1391–1399. [Google Scholar] [CrossRef]
- Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; others. An image is worth 16x16 words: Transformers for image recognition at scale. International Conference on Learning Representations, 2021. [Google Scholar]
- Erlank, E.; Koekemoer, L. L.; Coetzee, M. The importance of morphological identification of African anopheline mosquitoes (Diptera: Culicidae) for malaria control programmes. Malar. J. 2018, 17(1), 43. [Google Scholar] [CrossRef]
- Fontaine, M. C.; Pease, J. B.; Steele, A.; Waterhouse, R. M.; Neafsey, D. E.; Sharakhov, I. V.; others. Extensive introgression in a malaria vector species complex revealed by phylogenomics. Science 2015, 347(6217), 1258524. [Google Scholar] [CrossRef]
- Hanemaaijer, M. J.; Higgins, H.; Eralp, I.; Yamasaki, Y.; Becker, N.; Kirstein, O. D.; Lanzaro, G. C.; Lee, Y. Introgression between Anopheles gambiae and Anopheles coluzzii in Burkina Faso and its associations with kdr resistance and Plasmodium infection. Malar. J. 2019, 18(1), 127. [Google Scholar] [CrossRef]
- Ibrahim, S. S.; Mukhtar, M. M.; Datti, J. A.; Irving, H.; Kusimo, M. O.; Tchapga, W.; Lawal, N.; Sambo, F. I.; Wondji, C. S. Temporal escalation of Pyrethroid Resistance in the major malaria vector Anopheles coluzzii from Sahelo-Sudanian Region of northern Nigeria. Sci. Rep. 2019, 9(1), 7395. [Google Scholar] [CrossRef]
- Jeffrey, H. J. Chaos game representation of gene structure. Nucleic Acids Res. 1990, 18(8), 2163–2170. [Google Scholar] [CrossRef]
- Santolamazza, F.; Mancini, E.; Simard, F.; Qi, Y.; Tu, Z.; della Torre, A. Insertion polymorphisms of SINE200 retrotransposons within speciation islands of Anopheles gambiae molecular forms. Malar. J. 2008, 7, 163. [Google Scholar] [CrossRef]
- Scott, J. A.; Brogdon, W. G.; Collins, F. H. Identification of single specimens of the Anopheles gambiae complex by the polymerase chain reaction. Am. J. Trop. Med. Hyg. 1993, 49(4), 520–529. [Google Scholar] [CrossRef]
- Sinka, M. E.; Bangs, M. J.; Manguin, S.; Rubio-Palis, Y.; Chareonviriyaphap, T.; Coetzee, M.; Mbogo, C. M.; Hemingway, J.; Patil, A. P.; Temperley, W. H.; Gething, P. W.; Kabaria, C. W.; Burkot, T. R.; Harbach, R. E.; Hay, S. I. A global map of dominant malaria vectors. Parasites Vectors 2012, 5(1), 69. [Google Scholar] [CrossRef]
- Thawornwattana, Y.; Dalquen, D.; Yang, Z. Coalescent analysis of phylogenomic data confidently resolves the species tree of Anopheles mosquitoes. Mol. Biol. Evol. 2018, 35(10), 2517–2529. [Google Scholar] [CrossRef]
- The Anopheles gambiae 1000 Genomes Consortium. Genetic diversity of the African malaria vector Anopheles gambiae. Nature 2017, 552(7683), 96–100. [Google Scholar] [CrossRef]
- The Anopheles gambiae 1000 Genomes Consortium. Genome variation and population structure among 1142 mosquitoes of the African malaria vector species Anopheles gambiae and Anopheles coluzzii. Genome Res. 2020, 30(10), 1533–1546. [Google Scholar] [CrossRef]
- World Health Organization. WHO guidelines for malaria; World Health Organization, 2025. [Google Scholar] [CrossRef]
Figure 1.
Classification outcome across sequencing depths for all nine study species. Stacked bar charts showing the proportion of correct (green), inconclusive (orange), and incorrect (yellow) classifications for 296 specimens across five sequencing data amounts (500K–10M bp) under leave-one-out validation (LOOV), for varKode (left) and CGR (right) image representations. The proportion of inconclusive predictions reflects classifications below the 0.7 confidence threshold. All analyses performed at k = 7, image resolution 224 × 224 px.
Figure 1.
Classification outcome across sequencing depths for all nine study species. Stacked bar charts showing the proportion of correct (green), inconclusive (orange), and incorrect (yellow) classifications for 296 specimens across five sequencing data amounts (500K–10M bp) under leave-one-out validation (LOOV), for varKode (left) and CGR (right) image representations. The proportion of inconclusive predictions reflects classifications below the 0.7 confidence threshold. All analyses performed at k = 7, image resolution 224 × 224 px.

Figure 2.
K-mer saturation determines the relationship between sequencing depth and classification accuracy. Multi-class LOOV accuracy for all nine study species (n = 296) as a function of sequencing data amount (500K–10M bp, log scale) for CGR (blue) and varKode (red) image representations. The vertical dashed line marks the theoretical k-mer saturation threshold at approximately 2M bp. Accuracy gains beyond this threshold were marginal (< 1 percentage point between 5M and 10M bp for both representations). Confidence threshold = 0.7.
Figure 2.
K-mer saturation determines the relationship between sequencing depth and classification accuracy. Multi-class LOOV accuracy for all nine study species (n = 296) as a function of sequencing data amount (500K–10M bp, log scale) for CGR (blue) and varKode (red) image representations. The vertical dashed line marks the theoretical k-mer saturation threshold at approximately 2M bp. Accuracy gains beyond this threshold were marginal (< 1 percentage point between 5M and 10M bp for both representations). Confidence threshold = 0.7.

Figure 3.
Per-species classification accuracy at the primary analysis condition (varKode, 10M bp). Horizontal stacked bar chart showing the proportion of correct (green), inconclusive (orange), and incorrect (yellow) classifications per species. Species are ordered by recall within each group (complex members above dashed line, outgroups below). Sample sizes in parentheses. Confidence threshold = 0.7.
Figure 3.
Per-species classification accuracy at the primary analysis condition (varKode, 10M bp). Horizontal stacked bar chart showing the proportion of correct (green), inconclusive (orange), and incorrect (yellow) classifications per species. Species are ordered by recall within each group (complex members above dashed line, outgroups below). Sample sizes in parentheses. Confidence threshold = 0.7.

Figure 4.
Confusion matrix at the primary analysis condition (varKode, 10M bp). Row-normalized confusion matrix showing the fraction of each true species predicted as each other species or as inconclusive. Values in off-diagonal cells indicate misclassification fractions. Dashed lines separate An. gambiae complex members (upper-left) from outgroup species (lower-right).
Figure 4.
Confusion matrix at the primary analysis condition (varKode, 10M bp). Row-normalized confusion matrix showing the fraction of each true species predicted as each other species or as inconclusive. Values in off-diagonal cells indicate misclassification fractions. Dashed lines separate An. gambiae complex members (upper-left) from outgroup species (lower-right).

Figure 5.
Confidence score analysis at the primary analysis condition (varKode, 10M bp). Plot showing the distribution of model confidence scores for correct, inconclusive, and incorrect classifications; horizontal line marks the 0.7 operational threshold; jittered points show individual incorrect calls.
Figure 5.
Confidence score analysis at the primary analysis condition (varKode, 10M bp). Plot showing the distribution of model confidence scores for correct, inconclusive, and incorrect classifications; horizontal line marks the 0.7 operational threshold; jittered points show individual incorrect calls.

Figure 6.
(A) The relative gambiae–coluzzii varKode index versus SNP-based genomic ancestry across four query populations. Each point is one Ag3 specimen, plotted by its independently estimated AIM coluzzii ancestry fraction on x-axis and its varKode index (
Figure 6.
(A) The relative gambiae–coluzzii varKode index versus SNP-based genomic ancestry across four query populations. Each point is one Ag3 specimen, plotted by its independently estimated AIM coluzzii ancestry fraction on x-axis and its varKode index (

Figure 7.
Robustness of the production varKode classifier to non-target DNA. (A) stacked bars show the proportion of correct (green), inconclusive (orange) and incorrect (yellow) classifications as a function of contamination fraction, averaged across the six evaluable species (An. arabiensis, An. coluzzii, An. funestus, An. gambiae s.s., An. melas, An. stephensi) and the four contaminants (Plasmodium falciparum, Homo sapiens, Bos taurus, Wolbachia pipientis); n = 24 specimen–contaminant combinations per contaminated fraction and n = 6 at the pure-target baseline (0%). (B) Species-specific contamination tolerance. Per-species stacked bars showing the proportion of correct (green), inconclusive (orange) and incorrect (yellow) classifications across contamination fractions, aggregated over the four contaminants (n = 4 per fraction; n = 1 at the 0% baseline). Species are ordered by lineage and divergence from the reference center. (C) Erosion of the genome-wide k-mer signal under contamination. varKode images (10 Mb, k = 7) generated for a single An. gambiae s.s. specimen (SRR30332230) mixed with increasing fractions of Plasmodium falciparum reads. Beneath each image is the model’s top call and confidence.
Figure 7.
Robustness of the production varKode classifier to non-target DNA. (A) stacked bars show the proportion of correct (green), inconclusive (orange) and incorrect (yellow) classifications as a function of contamination fraction, averaged across the six evaluable species (An. arabiensis, An. coluzzii, An. funestus, An. gambiae s.s., An. melas, An. stephensi) and the four contaminants (Plasmodium falciparum, Homo sapiens, Bos taurus, Wolbachia pipientis); n = 24 specimen–contaminant combinations per contaminated fraction and n = 6 at the pure-target baseline (0%). (B) Species-specific contamination tolerance. Per-species stacked bars showing the proportion of correct (green), inconclusive (orange) and incorrect (yellow) classifications across contamination fractions, aggregated over the four contaminants (n = 4 per fraction; n = 1 at the 0% baseline). Species are ordered by lineage and divergence from the reference center. (C) Erosion of the genome-wide k-mer signal under contamination. varKode images (10 Mb, k = 7) generated for a single An. gambiae s.s. specimen (SRR30332230) mixed with increasing fractions of Plasmodium falciparum reads. Beneath each image is the model’s top call and confidence.

Table 1.
Per-species classification performance under leave-one-out validation (primary condition: varKode, 10M bp). Results for all 296 specimens across nine study species (seven An. gambiae complex members and two outgroup species) at the primary analysis condition (varKode image representation, 10M bp sequencing data, confidence threshold 0.7). MCC = Matthews correlation coefficient; F2 = F-beta score with β = 2 (recall-weighted). Dashes indicate metrics undefined due to zero false-positive counts (LR+ not applicable where FPR = 0). Bold green values = perfect recall (1.000). Blue shading = An. gambiae complex members; orange shading = outgroup species. An. stephensi precision = 1.000 (no specimens of other species incorrectly assigned to An. stephensi). One An. stephensi specimen (ERR16118202 or ERR13667005) was inconclusive at this condition; the other was incorrectly assigned to An. melas (see error-persistence analysis below). Full per-specimen outcomes are provided in Supplementary Table S2; one-versus-all binary metrics including false omission rate and likelihood ratios are provided in Supplementary Table S1.
Table 1.
Per-species classification performance under leave-one-out validation (primary condition: varKode, 10M bp). Results for all 296 specimens across nine study species (seven An. gambiae complex members and two outgroup species) at the primary analysis condition (varKode image representation, 10M bp sequencing data, confidence threshold 0.7). MCC = Matthews correlation coefficient; F2 = F-beta score with β = 2 (recall-weighted). Dashes indicate metrics undefined due to zero false-positive counts (LR+ not applicable where FPR = 0). Bold green values = perfect recall (1.000). Blue shading = An. gambiae complex members; orange shading = outgroup species. An. stephensi precision = 1.000 (no specimens of other species incorrectly assigned to An. stephensi). One An. stephensi specimen (ERR16118202 or ERR13667005) was inconclusive at this condition; the other was incorrectly assigned to An. melas (see error-persistence analysis below). Full per-specimen outcomes are provided in Supplementary Table S2; one-versus-all binary metrics including false omission rate and likelihood ratios are provided in Supplementary Table S1.
| Species | n | Classification outcome | Recall (%) | Precision | MCC | F2 | ||
| Correct | Inconclusive | Incorrect | ||||||
| An. gambiae complex | ||||||||
| An. gambiae s.s. | 40 | 39 | 0 | 1 | 97.5 | 0.975 | 0.97 | 0.98 |
| An. coluzzii | 40 | 39 | 0 | 1 | 97.5 | 0.975 | 0.97 | 0.98 |
| An. arabiensis | 40 | 40 | 0 | 0 | 100 | 1 | 1 | 1 |
| An. melas | 40 | 40 | 0 | 0 | 100 | 1 | 1 | 1 |
| An. merus | 22 | 22 | 0 | 0 | 100 | 1 | 1 | 1 |
| An. quadriannulatus | 29 | 29 | 0 | 0 | 100 | 1 | 1 | 1 |
| An. bwambae | 5 | 5 | 0 | 0 | 100 | 1 | 1 | 1 |
| Outgroup species | ||||||||
| An. funestus | 40 | 40 | 0 | 0 | 100 | 1 | 1 | 1 |
| An. stephensi | 40 | 38 | 1 | 1 | 95 | 1 | 0.97 | 0.96 |
| Total | 296 | 292 | 1 | 3 | 98.65 | — | — | — |
Table 2.
. Summary statistics for the gambiae–coluzzii ancestry validation. 95% confidence intervals from 5,000 bootstrap replicates. AIM, ancestry-informative marker; AUC, area under the ROC curve; V2GC = P(coluzzii) / [P(coluzzii) + P(gambiae)].
Table 2.
. Summary statistics for the gambiae–coluzzii ancestry validation. 95% confidence intervals from 5,000 bootstrap replicates. AIM, ancestry-informative marker; AUC, area under the ROC curve; V2GC = P(coluzzii) / [P(coluzzii) + P(gambiae)].
| Statistic | Value |
| Species-pole discrimination (anchors, n = 45) | |
| Median V2GC, pure gambiae anchors (n = 15) | 0.11 |
| Median V2GC, pure coluzzii anchors (n = 30) | 0.97 |
| ROC AUC | 0.97 |
| Mann–Whitney U, p | 1.8 × 10-7 |
| V_GC vs AIM ancestry (intermediates, n = 332) | |
| Aggregate Spearman ρ, no2L — primary | 0.69 (95% CI 0.63–0.74); p = 3.1 × 10-48 |
| Aggregate Spearman ρ, whole-genome — secondary | 0.74 (95% CI 0.69–0.79); p = 7.8 × 10-60 |
| Descriptive OLS R2 (no2L) | 0.57 |
| Partial Spearman ρ, controlling for population | 0.25; p < 0.001 |
| Pooled within-population ρ (Fisher-z) | 0.10 |
| True admixture zone (AIM 0.20–0.80), Spearman ρ | 0.14 (n = 34); p = 0.44 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.