Related Experiment Video
Updated: Aug 25, 2026

Simultaneous Quantification of T-Cell Receptor Excision Circles (TRECs) and K-Deleting Recombination Excision Circles (KRECs) by Real-time PCR
Published on: December 6, 2014
ARGformer: learning on ancestral recombination graphs with transformers
David Bonet1,2,3, Cole Shanks2, Marçal Comajoan Cara2,4
1Department of Biomedical Data Science, Stanford University, Stanford, CA, United States.
Motivation:
Recent advances in inference of the ancestral recombination graph (ARG), which describes how segments of chromosomes trace back through recombination and shared lineages, have made it possible to reconstruct genome-wide genealogies for large cohorts, but it remains difficult to summarize and use this information for population genetic analyses.
Results:
We present ARGformer, an encoder-only transformer that learns context-dependent embeddings with a self-supervised masked objective finetuned with contrastive learning for downstream retrieval tasks. We train ARGformer on genealogies from coalescent simulations and on genealogies inferred from ancient and present-day Homo sapiens genomes. Using only these learned embeddings, without access to genotype matrices, ARGformer captures patterns of global population structure and supports ancestry inference through clustering and nearest-neighbor retrieval. On genealogies that include archaic hominins, ARGformer can highlight Denisovan-derived segments in Oceanian genomes and reveals Oceanian-like ancestry in South American Indigenous populations.
Availability And Implementation:
ARGformer is available at https://github.com/AI-sandbox/ARGformer.
Related Concept Videos
Overview of Transposition and Recombination
Conservative Site-specific Recombination and Phase Variation
The recognition sites for Cre recombinase called LoxP...
Homologous Recombination
Homologous Recombination
Carrier Generation and Recombination
This process is given by the generation rate G and is efficient due to the conservation of momentum between the valence band maximum and conduction band minimum.
Indirect generation involves an...
Transformers with Off-Nominal Turns Ratios