Quaternion Spectral Fingerprinting of DNA: GPU-Accelerated Multi-Channel Fourier Analysis for Alignment-Free Genomics
Bergach, M. A.
Show abstract
Spectral methods for DNA sequence analysis--treating genomic data as a discrete signal and computing its Fourier transform--were proposed over three decades ago but remained impractical for whole-genome analysis due to computational cost. We present a quaternion Fourier transform framework that encodes DNA as a quaternion-valued signal q[n] [isin] {1, i, j, k} mapping to the four nucleotides {A, T, G, C}, and prove that the full quaternion spectrum is computable from exactly two standard complex FFTs: Q(k) = Z1(k) + Z2(N-k) {middle dot} j, where Z1 = FFT(uA +i {middle dot} uT ) and Z2 = FFT(uG +i {middle dot} uC). We establish that the resulting spectral finger-print F(k) = (|Z1(k)|2,|Z2(k)|2) is invariant under both cyclic shift and reverse complement-- the two fundamental symmetries of double-stranded DNA. Building on this theoretical foundation, we develop three computational tools: (i) a 4x4 Hermitian cross-spectral matrix with inter-channel coherence analysis, (ii) a genome spectrogram via sliding-window short-time Fourier transform, and (iii) an alignment-free spectral variant detection algorithm with O(N log N) complexity. Applying Welchs cross-spectral coherence analysis to E. coli K-12, we discover that the DNA helical repeat ([~]11 bp) is invisible to the standard power spectrum but clearly detected through the cross-spectral matrix condition number ({kappa} = 6.5), demonstrating that multi-channel analysis reveals structural periodicities that single-channel methods miss. Phase spectrum analysis recovers the characteristic nucleotide ordering within codons (A [->] T [->] G [->] C), while three distinct frequency regimes of inter-nucleotide coupling emerge: complementary-dominated (long-range), purine/pyrimidine-dominated (structural), and codon-position-dominated (coding). Cross-species validation on 18 genomes spanning all three domains of life--Bacteria (5), Archaea (3), and Eukarya (10)--with GC content from 19.6% (P. falciparum) to 69.5% (T. thermophilus) confirms the universality of these findings. The helical repeat is detected via cross-spectral coherence in 18/18 organisms (100%). All 10 eukaryotes show A-T dominance at the helical repeat--a spectral signature of nucleosome wrapping absent from prokaryotes. Non-complementary pairs (A-C, T-G) dominate the coding frequency in 17/18 organisms. Validation on human chromosome 21 (46.7 Mb, processed in 5.0 s on Apple M1) reveals eukaryote-specific spectral signatures--nucleosome positioning at 10.67 bp, nucleosome spacing at 170.7 bp, and Alu repeat dominance at 341 bp--absent from prokaryotic spectra. A proof-of-concept spectral variant detection experiment achieves 100% read-matching accuracy (100/100 reads) and statistically significant discrimination of SNPs from sequencing errors (t = 14.80, p < 0.001, Cohens d = 1.64), scaling to d = 8.96 at 30x coverage. The full human genome can be spectrally analyzed in approximately 3-4 seconds on an M1 GPU and under 1 second on M4 Max, enabling interactive spectral genomics on commodity hardware. AvailabilitySource code, Metal kernels, and benchmarks are available at https://github.com/aminems/AppleSiliconFFT under the MIT license.
Matching journals
The top 5 journals account for 50% of the predicted probability mass.
Similar papers in this journal
Similar papers in this journal
- Pair consensus decoding improves accuracy of neural network basecallers for nanopore sequencing 95%
- KPop: Accurate and scalable comparative analysis of microbial genomes by sequence embeddings 94%
- Sequences Dimensionality-Reduction by K-mer Substring Space Sampling Enables Effective Resemblance- and Containment-Analysis for Large-Scale omics-data 94%
"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.