Related Experiment Video
Updated: Jul 17, 2026

04:23
A Swin Transformer-Based Model for Thyroid Nodule Detection in Ultrasound Images
Published on: April 21, 2023
Popformer: Learning general signatures of positive selection with a self-supervised transformer
Leon Zong1,2, Sorelle A Friedler2, Sara Mathieson1,2
1Department of Biology, University of Pennsylvania, Philadelphia, Pennsylvania, United States of America.
Plos Computational Biology
|July 15, 2026
Summary
We developed Popformer, a transformer-based model that effectively learns genetic variation patterns. This new method improves the accuracy of detecting natural selection in human populations and generalizes well to diverse evolutionary scenarios.
Area of Science:
- Population genetics
- Computational biology
- Genomics
Background:
- Detecting natural selection is crucial for understanding adaptive evolution.
- Deep learning methods for identifying selection signatures often lack generalizability across diverse evolutionary scenarios.
- Large-scale human genetic variation data necessitates advanced computational approaches.
Purpose of the Study:
- To develop a novel transformer-based model, Popformer, for learning general patterns of genetic variation.
- To improve the accuracy and generalizability of detecting natural selection signatures.
- To provide a new direction for population genetic inference methods.
Main Methods:
- Developed Popformer, a transformer-based model with site-wise and haplotype-wise attention.
- Incorporated relative positional embeddings for inter-SNP distances.
- Pre-trained the model using a masked language modeling objective on human genomic data, similar to genetic imputation.
Main Results:
- Popformer learns meaningful genomic embeddings that correlate with population structure.
- The model demonstrates high accuracy in genotype imputation.
- Fine-tuned Popformer shows superior accuracy in selection classification compared to existing methods, generalizing from simulations to real human data.
Conclusions:
- Popformer offers a powerful new approach for population genetic inference.
- The model's ability to generalize across diverse evolutionary scenarios and real data is a significant advancement.
- Future applications include inferring recombination rates, introgression, and local ancestry.
Related Concept Videos
Types Of Transformers
Transformers can provide desired voltages to a circuit by modifying the number of turns in the secondary windings.
If the ratio of the number of turns in the secondary winding to that of the primary winding is greater than one, then the transformer is said to be a step-up transformer. In a step-up transformer, the voltage at the secondary winding is greater than the voltage applied at the primary winding.
However, if this ratio is less than one, the transformer is said to be a step-down...
If the ratio of the number of turns in the secondary winding to that of the primary winding is greater than one, then the transformer is said to be a step-up transformer. In a step-up transformer, the voltage at the secondary winding is greater than the voltage applied at the primary winding.
However, if this ratio is less than one, the transformer is said to be a step-down...
Survival Tree
Survival trees are a non-parametric method used in survival analysis to model the relationship between a set of covariates and the time until an event of interest occurs, often referred to as the "time-to-event" or "survival time." This method is particularly useful when dealing with censored data, where the event has not occurred for some individuals by the end of the study period, or when the exact time of the event is unknown.
Building a Survival Tree
Constructing a survival tree begins...
Building a Survival Tree
Constructing a survival tree begins...