Species-specific transformer models of bacterial gene order and content for genomic surveillance tasks
This study introduces PanBART, a species-specific transformer model trained on the gene content and order of *Escherichia coli* and *Streptococcus pneumoniae*, demonstrating its superior ability to unsupervisedly learn population structures, identify emergent lineages, predict antibiotic resistance gene uptake, and analyze gene co-selection for critical genomic surveillance tasks.