bioRxiv Science⌕ 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

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↗

A single-nucleus multi-omic atlas of gene regulation across 21 adult human tissues

Diverse human cell types establish specialized functions through lineage- and context-specific regulatory programs. Interpreting non-coding genetic risk requires integrated multi-omic reference maps that directly connect regulatory DNA to cellular expression across human tissues. Here we present a single-nucleus multi-omic atlas comprising 459,856 transcriptomic and chromatin accessibility profiles from 21 adult human tissues and four donors, including paired measurements from 160,688 nuclei. The atlas resolves nine cell lineages, 61 broad cell types and 313 subclusters, and identifies 1,085,062 candidate cis-regulatory elements (cCREs), including 161,270 novel elements absent from ENCODE. Regulatory activity was dominated by cell identity but refined by tissue context. Joint profiling enabled 871,177 cCRE-gene associations and revealed lineage-specific regulatory architectures. Cross-tissue accessibility further identified lineage-restricted and constitutively inaccessible chromatin domains, the latter showing preferential hypomethylation across human cancers. Furthermore, we leverage this dataset to train sequence-to-function models to predict chromatin-accessibility effects for 548,656 fine-mapped variants, identifying 18,133 high-effect variants, including 1,120 broadly active variants. Models trained for eight endothelial subtypes further resolve predicted variant effects across vascular beds. Together, this atlas provides a comprehensive cellular and computational framework for interpreting regulatory sequence, context-dependent gene control, and complex trait genetics across the human body.

genomics↗

The chromosome level genome of the Blueberry Stem Gall Wasp, Hemadas nubilipennis (Hymenoptera: Ormyridae) on lowbush blueberry (Vaccinium angustifolium) reveals repeat-driven expansion

Gall-inducing wasps are emerging models for studying plantinsect coevolution, host manipulation, host plant adaptation, and speciation, yet chromosome-level resources remain scarce for most lineages. The blueberry stem gall wasp (BSGW), Hemadas nubilipennis (Hymenoptera: Ormyridae), is native to North America where it induces galls on both lowbush (Vaccinium angustifolium) and highbush blueberries (V. corymbosum). Recently, BSGW has reached outbreak densities in cultivated highbush production. Given that (a) the biology has been characterized primarily from natural lowbush-associated populations, (b) the absence of genomic resources limits comparative analyses, and (c) populations on cultivated highbush represent a recent host shift, we generated the first chromosome-level genome from wild lowbush blueberry. The BSGW genome consists of five chromosome-scale scaffolds totaling 1.08 Gb (N50 = 218 Mb), the second largest known in Chalcidoidea. Comparative analysis reveals that genome size variation is driven primarily by transposable element proliferation (R = 0.96, p < 0.001), with BSGW exhibiting a high proportion of unclassified TEs. Gene-body methylation is conserved, enriched in exons of broadly expressed core genes, and correlates with gene density. The mitochondrial genome (18,697 bp) exhibits extensive gene rearrangement, and COI sequences reveal 4.35.4% divergence from geographically distant populations, suggesting a complex of cryptic species. Additionally, we assemble a near-complete genome of the endosymbiont Wolbachia pipientis (Supergroup A), which encodes PifA and PifB effectors potentially linked to parthenogenesis. These resources establish a foundation for population genomics, taxonomic revision, and applied management, while providing insights into genome architecture, epigenetics, and symbiont interactions.

genomics↗