Search bioRxiv⌕ Search

bioRxiv · 10.64898/2026.03.06.710163

Popformer: Learning general signatures of positive selection with a self-supervised transformer

Abstract

Understanding natural selection can help shed light on the genetics underpinning adaptive evolution. The widespread availability of large-scale human genetic variation data has led to the development of data-driven methods for detecting signatures of selection, many of which are based on deep learning. However, these methods often fail to generalize well to the diversity of selection signatures across a broad range of evolutionary scenarios. We propose a novel transformer-based model, Popformer, for learning encodings of general patterns of genetic variation. Popformer includes site-wise and haplotype-wise attention, allowing us to capture variation among both genetic positions and individuals. It additionally learns relative positional embeddings for inter-SNP distances. The model is pre-trained with an analog of the masked language modeling objective across a range of real human genomic data, similar to the task of genetic imputation. Using dimensionality reduction, we show that the pre-trained model learns meaningful embeddings of genomic windows that correspond with population structure. We also show that the model can accurately perform genotype imputation. We further fine-tune the model on selection classification and demonstrate that our model is more accurate than other selection classification methods, on selection simulations of both well-specified and mis-specified demographic models. Using a novel real data validation approach, we apply Popformer to human data from the 1000 Genomes Project and reveal its ability to generalize from simulated data to the diversity of real data. Overall, our method provides a new direction for population genetic inference methods, with future fine-tuning applications including the inference of recombination rates, introgression, and local ancestry. Author summaryNatural selection lies at the heart of adaptation and evolution. Identifying genomic signals of natural selection can lead to insights about evolutionary pressures acting on populations, and provide an understanding of how populations differentiate. Detecting these signals using only present-day genomic data is difficult, and methods developed for this task often use specialized simulations, trading generalization for power. We show here that adapting deep learning techniques from modern language and image processing can be used to identify signals of selection with both high power and robustness to misspecification. By pre-training our transformer model, Popformer, on real data, we induce learned model representations that are representative of the variation in real data. We fine-tune our model on simulations inferred from European populations, and compare with other machine learning methods and summary statistics. Our results suggest that both our model architecture and our training regime are useful for strong performance in diverse simulation tests and in recovering known selection signatures in real data.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Zong, L., Friedler, S. A., Mathieson, S.. 2026-03-06. Popformer: Learning general signatures of positive selection with a self-supervised transformer. https://doi.org/10.64898/2026.03.06.710163

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Integrative Nanopore and Illumina sequencing reveals age-associated tRNA modification and CCA-tail dynamics in yeast

Aging is characterized by a progressive loss of proteostasis. Transfer RNAs (tRNAs) are essential regulators of translation, yet their dynamics during aging remain poorly understood due to challenges in sequencing highly modified RNAs. Here we present a benchmarked Nanopore direct RNA sequencing (RNA004 chemistry) resource that profiles the Saccharomyces cerevisiae tRNAome during replicative aging at single-molecule resolution. Using in vitro transcribed tRNA controls, we establish modification detection thresholds and validate key findings with orthogonal Illumina sequencing. While overall tRNA abundance remains largely stable, our resource reveals age-associated terminal A cleavage at the 3' CCA tail of mature tRNAs, targeted T-loop and anticodon modification changes, and single-molecule evidence of modification co-occurrence. This dataset provides a resource for exploring tRNA regulation, translation fidelity, and longevity.

genomics↗

A hydrogen-producing mitochondrion in an anaerobic eukaryotrophic rhizarian

Diverse eukaryotes thrive under low oxygen conditions, in part through highly modified mitochondrion-related organelles (MROs) that use alternate metabolic pathways to support ATP production and cofactor recycling. Anaerobic lifestyles have evolved repeatedly across the eukaryotic tree of life, each providing an independent opportunity to understand how eukaryotes adapt to life in low oxygen conditions. Here, we use single-cell transcriptomics to reconstruct the MRO metabolism of PCE SSF, a benthic eukaryotrophic flagellate and the first cultivated representative of Novel Clade 12 (NC12; Rhizaria), an independently anaerobic rhizarian lineage. PCE SSF possesses an anaerobic hydrogen-producing mitochondrion capable of hydrogenosome-type substrate-level phosphorylation. It also retains a nearly complete but likely branched tricarboxylic acid pathway that lacks citrate synthase and malate dehydrogenase. The function of citrate synthase may instead be fulfilled by the typically cytosolic ATP citrate lyase, previously reported in this context only in the anaerobic cercozoan, Brevimastigomonas motovehiculus. Unlike B. motovehiculus, however, PCE SSF retains only Complex II and the NuoE/NuoF subunits of the electron transport chain and lacks a mitochondrial genome. Together, these features indicate an atypical and reduced mitochondrial metabolism, highlighting the diversity of evolutionary solutions to anaerobic energy metabolism in eukaryotes.

genomics↗

Targeted CRISPRi screening reveals unexpected resilience across the RNA polymerase III transcriptome

Increased RNA polymerase III (Pol III) activity and tRNA abundance are widely linked to cancer cell growth, yet the functional requirement for individual Pol III genes and core components remains unclear, in part due to the difficulty of achieving gene-specific perturbation of highly conserved loci. Here, we developed an inducible CRISPR interference platform and a custom single-guide RNA (sgRNA) library enabling gene-specific targeting of Pol III-transcribed genes and Pol III machinery. Genome-wide screening identified several Pol III dependencies in diploid fibroblasts and HEK293T cells, including multiple initiator methionine tRNA genes among the strongest fitness dependencies. Unexpectedly, glioblastoma models remained largely insensitive to repression of both individual Pol III genes and core Pol III components, despite efficient target repression. These findings establish a general strategy for gene-specific interrogation of conserved Pol III genes and indicate that glioblastoma models tolerate extensive perturbation of Pol III genes and machinery.

genomics↗