Introduction
Xylella fastidiosa is a Gram-negative, xylem-limited bacterial plant pathogen associated with Pierce’s disease of grapevine, citrus variegated chlorosis, almond leaf scorch, coffee leaf scorch, and olive quick decline syndrome (Chatterjee et al., 2008; Coletta-Filho et al., 2020; Hopkins & Purcell, 2002; Saponari et al., 2013; Sicard et al., 2018; Wells et al., 1987). Its small bacterial genome, broad host range, and large public sequence record make it a useful system for student-scale comparative genomics (Bhattacharyya et al., 2002; Chen et al., 2010; National Center for Biotechnology Information, 2026; Nunney et al., 2013; Sayers et al., 2022; Schaad et al., 2004; Simpson et al., 2000). The central problem addressed here is not whether music can replace standard bioinformatics. It cannot. Alignment, variant calling, gene annotation, and phylogenetic analysis remain the correct tools for biological inference. The open question is narrower: can sonification provide a useful representation layer for genomic changes that are difficult to notice from composition summaries alone?
Previous DNA and protein sonification studies have shown that biological sequences can be mapped to sound for exploration, education, and pattern display (Hermann et al., 2011; Kramer, 1994; Martin et al., 2021; Plaisier et al., 2021; Temple, 2017). However, many sonification projects remain qualitative. They describe sequences as more or less musical without testing whether audio-derived features recover known sequence differences. A strong sonification study therefore needs explicit mappings, negative controls, baseline methods, and ground-truth anomalies.
This study reframes the project as a windowed anomaly-representation benchmark. The hypothesis was that deterministic sonification features would preserve some host-associated sequence signal and would be especially useful for detecting order-based anomalies, such as codon-order shuffles, that leave base and codon composition largely unchanged. The motivation for using sonification in this setting is not that sound is inherently superior to visual sequence analysis. Instead, auditory display offers a different representation of ordered information. A genome is a long symbolic sequence, and many biologically meaningful changes are not single isolated letters but disruptions in local order, repetition, spacing, and transition patterns. Humans are often good at noticing abrupt changes in rhythm, contour, and repeated intervals. If genomic order can be encoded into pitch and interval structure in a reproducible way, then sonification may become a useful exploratory companion to conventional computational genomics.
This motivation also matters for science communication. Genomic data are difficult to explain because raw sequences are too long to inspect directly, while standard plots can compress away the sequential character of DNA. A sonified genome window is not meant to be a literal biological sound. It is a controlled translation: codons become pitches, changes in codon order become changes in melodic contour, and computational features summarize those contours. The value of the approach must therefore be judged by whether the translation preserves useful information and whether it makes a specific class of patterns easier to represent.
For this research project, this framing creates a clearer standard of evidence. Rather than claiming that a whole genome can simply be heard, the study asks whether particular sonification maps behave differently from composition-only baselines under controlled tests. If both composition and sonification perform equally, the sound representation adds little. If sonification performs well when composition fails, then the method has identified a narrower but more defensible use case: representing order-dependent anomalies.
Materials & Methods
This was a computational methods study using public bacterial genome assemblies. The analysis had two parts. First, genome-level audio and composition features were tested for host-group representation. Second, window-level features were tested for reference-guided anomaly detection. The second task was the main experiment because it directly tested whether sonification can represent mutation or anomaly windows.
Genome metadata were retrieved from the NCBI Datasets API on July 12, 2026. Assemblies were restricted to RefSeq records for X. fastidiosa with assembly levels Complete Genome, Chromosome, or Scaffold. Records were quality-filtered using CheckM metadata when available: completeness had to be at least 92.5%, and contamination had to be no more than 3%. The final dataset contained 50 assemblies, with 10 assemblies in each host-associated group.
FASTA files were parsed by removing headers and retaining only A, C, G, and T. Each genome was divided into non-overlapping 3,000 bp windows. To keep the analysis balanced and reproducible, the first 60 complete windows from each assembly were used, giving 3,000 genome windows across the 50-assembly dataset.
Two deterministic sequence-to-pitch maps were evaluated. In the codon64 map, the 64 possible codons were ordered lexicographically from AAA through TTT and mapped to MIDI pitches 36 through 99. In the amino-class map, each codon was translated using the standard bacterial genetic code and assigned to one of seven biochemical pitch classes: hydrophobic, polar, acidic, basic, aromatic, special, or stop.
Audio features were calculated from the pitch sequence for each 3,000 bp window. Let X = (x1, x2, …, xm) be the MIDI pitch sequence for a window. Pitch distribution was the normalized histogram of pitch values. Pitch entropy was calculated as H = -sum_i P(x_i) log2 P(x_i), where P(x_i) is the probability of pitch class i in the window and zero-probability terms were omitted (Shannon, 1948). Mean pitch was mean(X), and pitch spread was the standard deviation of X. First-order intervals were defined as d(j) = x(j+1) - x(j). Interval size was mean(|d(j)|), interval variation was sd(d(j)), and second-order interval change was mean(|d(j+1) - d(j)|). Distances between a reference window and a modified window were Euclidean distances between their feature vectors.
The baseline was a non-audio sequence summary containing base frequencies, GC proportion, and 64 codon frequencies. This baseline was intentionally strong for composition-changing anomalies. A meaningful sonification result therefore required audio features to perform well where composition features did not.
The composition baseline was designed as a conservative comparison rather than as a weak straw-man method. It captures the overall contents of a sequence window but intentionally does not preserve the exact order of codons beyond short local counts. This makes the baseline appropriate for testing whether sonification features add information about sequence order. If a mutation changes which bases or codons are present, composition should detect it. If an anomaly rearranges the same codons without changing their frequencies, composition should struggle.
Two evaluation tasks were used because they ask different questions. The host-group classification task tested whether the features retain broad biological signal across naturally occurring assemblies. The anomaly-detection task tested a more focused display question: when a reference sequence is compared with modified versions of itself, do sonification features make abnormal windows stand out? The second task is closer to the practical use case proposed in this paper, because genome analysts often compare a sample to a reference and ask where unusual local changes occur.
For each genome, window-level features were summarized by feature means and standard deviations. A leave-one-genome-out nearest-centroid classifier predicted the host-associated group for the held-out assembly. Label permutation testing with 50 permutations estimated whether accuracy exceeded chance. Because the dataset had five balanced groups, chance accuracy was 20%.
The main anomaly experiment simulated a practical use case: a sample sequence is compared with a reference sequence, and sonification is used to make high-change windows audible or visually trackable. Each window first received low background noise through 0.1% random substitutions. Four anomaly windows per genome were then planted for each anomaly type. Clustered substitutions added 1.5% substitutions within selected windows. Foreign-segment anomalies replaced the middle fifth of a window with sequence from another host group. Codon-order shuffles randomly permuted codons across the middle 60% of a window, preserving codon composition while disrupting local order.
This design also provides internal controls. Clustered substitutions are expected to be visible to most feature sets because they alter composition and local order at the same time. Foreign-segment replacements are also expected to be detectable because they introduce sequence drawn from a different host-associated group. Codon-order shuffles are the most important stress test. They deliberately remove a major advantage of composition features by keeping codon counts fixed. A successful result under this condition would support the claim that sonification can encode sequential structure rather than merely restating nucleotide composition in musical form.
For each modified genome, the analysis ranked windows by distance from the original reference window. AUC measured whether planted anomaly windows ranked above background-mutated windows. Precision@4 measured the fraction of true anomaly windows among the four highest-scoring windows. The value 4 was chosen because exactly four anomaly windows were planted per genome for each anomaly type. Bootstrap confidence intervals used 500 resamples across genome-level AUC values.
All analysis steps were deterministic after the random seed was fixed. The pipeline recorded genome accessions, host-group labels, assembly levels, selected windows, feature matrices, classification scores, anomaly scores, summary statistics, and exported MIDI anomaly tracks. The generated MIDI files were not used as subjective evidence; they were treated as reproducible auditory displays derived from the same pitch sequences used in the quantitative feature analysis.
Scripts were written in Python with NumPy support (Harris et al., 2020; Van Rossum & Drake, 2009). The study used only public bacterial genome assemblies and did not involve human participants, animals, private data, or clinical decision-making.
Results
The final dataset contained 50 assemblies and five balanced host-associated groups: grapevine, almond, olive, coffee, and other Prunus, with 10 assemblies per group. The windowed analysis used 60 windows per assembly, producing 3,000 genome windows.
The host-group representation test was modest but above chance for codon64 sonification. Composition features and codon64 audio features each reached 40% leave-one-genome-out accuracy with permutation p = 0.0196. Amino-class sonification reached 30% accuracy with p = 0.0588. These results suggest that the codon-level audio representation retained some host-associated sequence signal, but the result should not be interpreted as a diagnostic classifier.
This classification result should be interpreted cautiously. Forty percent accuracy is not high enough for diagnostic use, and host association is only an imperfect proxy for evolutionary lineage, geography, and sampling history. However, the result is useful because it shows that the sonification features were not random decorations applied after the fact. They retained enough information from the DNA sequence to perform better than chance in a difficult five-class task. In other words, the pitch and interval features carried biological signal, even if they were not optimized as a classifier.
The anomaly benchmark showed where sonification was most useful. For clustered substitutions and foreign-segment replacements, the composition baseline was very strong because these changes altered base or codon frequencies. Codon64 and amino-class sonification also performed well, but they did not outperform composition for those composition-changing anomalies.
The clearest sonification-specific result appeared in the codon-order shuffle condition. Composition features performed at chance (mean AUC = 0.499, 95% CI 0.456-0.539) because codon counts were preserved. In contrast, codon64 sonification reached mean AUC = 0.974 (95% CI 0.967-0.980), and amino-class sonification reached mean AUC = 0.958 (95% CI 0.945-0.969). The interval structure of the audio representation captured sequence-order disruption that composition summaries missed.
Precision@4 showed the same pattern in a practical ranked-list form. For codon-order shuffles, codon64 sonification recovered true anomaly windows much more often than the composition baseline (Precision@4 = 0.670 versus 0.050), while amino-class sonification reached Precision@4 = 0.730.
The contrast between AUC and Precision@4 is useful. AUC measures whether anomaly windows tend to receive higher scores than ordinary windows across all possible thresholds. Precision@4 asks a stricter practical question: if a researcher only listens to or inspects the four most suspicious windows, how often are those windows truly anomalous? The codon-order shuffle condition therefore gives the strongest support for the paper’s central argument. The sonification features did not simply score every window slightly differently; they moved many true order anomalies into the very top of the ranked list.
Foreign-segment anomalies were also strongly detected by sonification. Codon64 sonification reached mean AUC = 0.993, and amino-class sonification reached mean AUC = 0.984. These results make sense because replacing a window with sequence from another host-associated group can change both composition and order. In this condition, sonification and composition are not competing explanations as much as complementary representations. The important point is that the sound-derived features remained sensitive when the anomaly was biologically interpretable as an inserted or replaced segment.
Clustered substitutions produced near-perfect AUC for all feature sets. This result is less surprising because the anomaly is intentionally strong: many bases are changed in a compact region. It functions mainly as a positive control showing that the pipeline can detect obvious local disruption. The more informative result is that composition performed perfectly on clustered substitutions but collapsed on codon-order shuffles, whereas sonification retained strong performance across both. This difference helps separate general anomaly detection from order-specific anomaly representation.
Discussion
The revised study supports a focused claim: sonification can represent certain genomic anomaly patterns in a way that ordinary composition summaries do not. The strongest evidence is the codon-order shuffle experiment. Because that anomaly preserves codon composition, a base/codon frequency baseline has little information to use. Sonification features based on pitch intervals and pitch order still detected those anomaly windows with high AUC.
This does not mean that sonification discovers biological truth by itself. The analysis was reference-guided, and the anomaly labels were synthetic. The method should be understood as a display and feature-extraction layer that can sit on top of standard sequence comparison. Its value is not replacing BLAST, alignment, or variant calling, but helping represent where a genome differs from a reference and making order-based changes more perceptible.
The perceptual rationale for this result is plausible but not yet proven by listener testing. Human hearing is highly sensitive to changes in pitch contour, repeated interval patterns, and sudden melodic disruptions. Because codon-order shuffles preserve the same codon inventory while changing the order in which codons occur, they can leave composition summaries unchanged but alter the interval sequence of a sonified track.
A useful analogy is the difference between a word-frequency table and a sentence. Two sentences can contain the same words but communicate very different meanings if the order changes. Composition features are powerful because they summarize what a genome window contains, but they do not fully describe the order in which symbols appear. Sonification is valuable here because its pitch sequence changes when order changes. The listener or algorithm can then respond to contour, interval, and transition patterns rather than only to counts.
The study also suggests a realistic workflow. A researcher would not listen to an entire bacterial genome from beginning to end. Instead, the pipeline could calculate anomaly scores across windows, export short audio clips or MIDI tracks for the most unusual regions, and pair those sounds with ordinary sequence coordinates. In that workflow, sonification becomes a triage and communication tool: it helps prioritize windows for closer inspection and gives students, collaborators, or public audiences a direct way to experience sequence order as a pattern.
One practical application is recombination screening in comparative bacterial genomics. Standard alignment, phylogenetic, or recombination-detection software should first establish candidate regions. Sonification could then provide a synchronized secondary track in which neighboring windows are heard and viewed with the same mapping. A sharp change in interval behavior at a candidate breakpoint would not prove recombination, but it could help an analyst compare the extent and local structure of the event across strains. This is especially relevant for X. fastidiosa because host association, lineage, and exchange of genetic material can be difficult to separate using a single summary statistic. The proposed role is therefore confirmatory and exploratory: sonification helps inspect a region already grounded in conventional genomic evidence.
A second application is genome-assembly quality assessment. Misassembled joins, contaminant segments, duplicated regions, and unusual low-complexity stretches can create abrupt transitions between adjacent sequence windows. An order-sensitive audio track could make those transitions easy to locate and communicate, particularly when paired with read coverage, GC content, contig boundaries, and established assembly-quality metrics. Sonification alone could not determine whether a transition is a biological structural variant or a technical artifact. Its contribution would be to flag and represent the transition so that raw reads, alignments, and assembly graphs can be checked at the same coordinates.
A third application is comparative review of related bacterial genomes. Analysts could generate aligned, coordinate-linked tracks for a reference and several isolates, rank the windows with the largest feature distances, and examine whether the same region is unusual in one strain or across an entire lineage. Such a system could support the study of horizontally acquired segments, inversions, mobile elements, or unusually divergent loci. The present experiment does not validate those biological categories, but it establishes the prerequisite that the representation responds to order disruption. Any future application should measure agreement with independent annotations and report false-positive regions rather than treating an audible difference as biological evidence by itself.
The strongest future test would involve real biological variation rather than synthetic anomalies. For example, later work could compare aligned X. fastidiosa strains, known recombination regions, plasmid segments, or mobile genetic elements, then ask whether sonification highlights the same regions detected by standard comparative-genomics methods. Another useful extension would compare alternative pitch mappings, including mappings based on codon usage, amino-acid physicochemical properties, or learned embeddings. A mapping that is both biologically motivated and perceptually clear would make the method more scientifically meaningful.
Computational scalability is manageable for bacterial genomes but requires a different interface for much larger datasets. Feature extraction is linear in the number of sequence symbols processed, and windows can be streamed so that the entire genome does not need to be stored as one audio object. This study analyzed 180,000 bp per assembly (60 windows x 3,000 bp), so processing a complete approximately 2.5 Mb bacterial chromosome would examine roughly fourteen times more sequence per strain. The present study did not benchmark runtime or peak memory, and future implementations should report both. For eukaryotic genomes, one-note-per-codon playback would be impractical; a multiresolution design would first score coarse windows, then sonify only selected regions at finer resolution. Parallel feature extraction and compressed event summaries could further reduce computation and listening time.
Machine learning could extend the system without changing its cautious role. Supervised models could combine composition, alignment, and sonification-derived features to rank regions with known structural variants or assembly errors, while unsupervised models could identify unusual interval trajectories without requiring predefined anomaly types. These models would need held-out genomes, interpretable feature reporting, and comparisons against established sequence-based methods. A useful result would not be that a model can classify a sound file; it would be that order-sensitive features improve localization or explanation of a biologically verified event beyond conventional inputs alone.
An interactive platform could also link four views of the same region: genomic coordinates, nucleotide or alignment data, feature plots, and short audio playback. Clicking an anomalous window could reveal the reference and sample tracks side by side, while changing the window size or pitch map would update all views. This would make the method more testable because users could trace every audible change back to a sequence operation. The same interface could support education by letting students hear how substitutions, insertions, inversions, or shuffles affect an ordered representation, while clearly labeling which examples are synthetic and which are observed in real genomes.
The educational value should also be separated from the analytical value. Even if sonification never becomes a primary genome-analysis method, it may still help learners understand that genomes are ordered systems rather than static strings of percentages. However, this paper deliberately avoids relying on education alone as the justification. The quantitative benchmark is what makes the claim stronger: sonification was not merely engaging or musical; it performed well under a controlled anomaly condition where a standard composition baseline failed.
Several limitations remain. First, the anomalies were simulated, not verified natural mutations. Second, the first 60 windows were used for standardization and runtime control, not whole-genome alignment. Third, some host groups required chromosome or scaffold assemblies because complete genomes were not equally available across groups. Fourth, the codon64 mapping is transparent but arbitrary; future work should compare multiple biologically informed pitch maps. Finally, listener studies would be needed to test whether humans can reliably hear the anomaly tracks without seeing the computed scores.
A second limitation is that AUC and Precision@4 measure computational separability, not human perceptibility. The results show that pitch-derived features contain order information, but they do not prove that an untrained listener would identify the same windows by ear. Listener experiments could test this directly by presenting short reference and anomaly clips, measuring detection accuracy, and comparing trained and untrained listeners. Such a study would connect the computational evidence to the human-centered promise of auditory display.
A third limitation is biological interpretation. A synthetic codon-order shuffle is useful because it isolates sequence order, but natural genomes rarely change through perfectly random within-window codon shuffling. Real structural variation may involve recombination, inversion, insertion, deletion, horizontal gene transfer, or assembly artifacts. Therefore, the present result should be read as proof of principle for order-sensitive representation, not as a claim that the tested anomalies directly model every natural mutation process in X. fastidiosa.
Conclusion
This paper shows a concrete use case for genomic sonification. Across 50 X. fastidiosa RefSeq assemblies, codon-level sonification preserved modest host-associated sequence signal and strongly detected reference-guided order anomalies. The key finding is that codon-order shuffles were invisible to composition features but visible to sonification-derived pitch and interval features. Sonification is therefore best framed as an interpretable anomaly-representation layer for genomics: not a replacement for standard bioinformatics, but a novel way to encode and communicate changes in sequence order.
The most important revision from the original project is the change from asking whether genomes can sound musical to asking whether sound-based features preserve testable information. Under that standard, the study gives a cautious but positive answer. Sonification is most useful when the research question involves order, transition, and local disruption rather than simple composition alone. This narrower claim is more scientifically useful because it identifies when the method should be considered, when it should not, and how future studies can test it against stronger biological references.
Ethical Approval Statement
No human participants or identifiable data were involved. The study used publicly available bacterial genome assemblies and therefore did not require IRB review.

_the_pipeline_converts_quality-filtere.png)