Sign in
BioinformaticsbioRxiv
Preprint

Quaternion Spectral Fingerprinting of DNA: GPU-Accelerated Multi-Channel Fourier Analysis for Alignment-Free Genomics

Mohamed Amine BergachiD

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.

PDFDOICode

02 /Specification & Classification

Click any tag to browse matching papers

Reproducibility ledger

Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.

Sign in to file a reproducibility report.

Similarity Map
SelectedSame fieldCross-field
THISSamsi '17Villar-Guer '17Gonzalez-Ji '20Fatayer '26Kuryavyi '26Hecht '26
51% semantic matchBioinformatics
Siddharth Samsi, Brian S. Helfer, Jeremy Kepner+2 more·IEEE High Performance Extreme Computing Conference·Sep 1, 2017· 5 citations