TOGA & MEME Research | Selection Surveillance
Scaling Comparative Genomics & Selection Screens

Keyboard Navigation

Genome-Wide Evolutionary Scan

Scaling Comparative Genomics & Selection Screen

Key Findings Across 10,511 Mammalian Genes & 742 Genomes

Dataset Scale

742 Mammalian Genomes

Tested Features

164 Million Substitutions

Database Size

17 GB sqlite (MEME & aBSREL)

Project Overview & Key Results

Comparative Genomics at Scale

Analyzing whole-genome alignments generated by the TOGA (Tool for Genome Alignment) pipeline to discover loci under selection across mammalia.

Screening Selection Events

Using site-level (MEME) and branch-level (aBSREL) statistics to pinpoint transient and lineages-specific adaptive shifts.

Three Major Key Results:

  • Population Size & constraint
    Demonstrated that clades with large effective population sizes (Ne) show stronger constraint (lower dN/dS).
  • Dynamic Selection Hotspots
    Proved that positive selection targets shift across clades (supporting epistasis).
  • Taxon Power Multiplier
    Identified how dense species alignments act as power multipliers to recover previously missed selection.

Database Scale & Curation

10,511
Mammalian Genes Scanned
2.30M
Genome-wide Selection Substitutions
17 GB
SQLite Results Database

Computational Strategy

To screen selection events genome-wide, we compiled codon statistics in SQLite. Selection calls were defined as non-synonymous changes occurring on terminal leaf branches with a site-level positive selection p-value less than 0.05 (using HyPhy MEME). Benjamini-Hochberg False Discovery Rate (FDR) correction controls error rates at Q-value less than or equal to 0.05.

Alignment Error Classification

Denser taxonomic databases introduce assembly and alignment errors. We classified errors into four categories:

  • Kept Alignments (18,274 genes): Clean alignments passing all quality filters.
  • Filtered Outliers (1,519 genes): Sequenced genomes containing extreme gaps or local misalignments.
  • Filtered Pseudogenes (untracked in Kept): Non-functional regions with frameshift/inactivating errors that mimic selection under neutral drift.
  • Too Few Sequences (160 genes): Less than 3 sequences, preventing phylogenetic models.
18,274 Passed QC (91.5%)
Passed (91.5%)
Outliers (7.6%)
Too few seq (0.9%)

Echolocation Selection Screen

We set up an evolutionary association screen to detect genes where positive selection is enriched on terminal branches of echolocating lineages versus control lineages.

Target Lineages (N = 110 species)

Bats: Yangochiroptera & Yinpterochiroptera (excluding megabats).
Toothed Whales: 26 odontocete genera (such as Tursiops, Phocoena, Physeter).

Background / Control Lineages (N = 632 species)

All Non-Echolocating Mammals: Expanding the control set from 28 to 632 mammalian species (including baleen whales, megabats, carnivores, primates, rodents, etc.) to establish a comprehensive background model.

Methodological Details:

  • Synonymous Control: Filtered out synonymous mutations (only non-synonymous selection tracked).
  • Taxonomy Mapping: Integrated genus-based checks to prevent taxonomic misclassifications.
  • Branch Control: Restricted selection calls to leaf branches (representing active, extant phenotypes).
  • Statistical Test: Fisher's Exact Test per gene, with Benjamini-Hochberg FDR correction.

Echolocation Screen Statistics

2,269,396
Positive Selection Substitutions on Study Lineages
  • Echolocators (110 spp): 411,386 positive selection events
  • Background (632 spp): 1,858,010 positive selection events
  • Echolocator-to-Background Ratio: ~1 to 4.52
  • Note: The ratio reflects the larger branch subset of the background set, which is statistically normalized in our Fisher's Exact test background computations.
Echolocating (110 species) 411,386 (18.1%)
Background (632 species) 1,858,010 (81.9%)

Top Genes Enriched in Echolocators

Ranked by statistical significance (P-value). Control set includes all 632 non-echolocating mammalian genomes.

Rank Gene Echo Subs Bg Subs Odds Ratio P-value FDR Q-value
1 CD58 608 1034 2.66 5.26e-73 0.0000
2 FAM111B 562 1031 2.46 1.73e-59 0.0000
3 NLRP13 590 1256 2.12 1.53e-46 0.0000
4 PNLIPRP3 494 994 2.25 3.73e-44 0.0000
5 RSBN1 707 1686 1.90 3.26e-42 0.0000
6 CACNA1B 3192 11050 1.31 1.31e-38 0.0000
7 PKDREJ 1574 4958 1.44 8.12e-34 0.0000
8 CLEC4A 261 471 2.50 1.98e-29 0.0000
9 ABCC11 331 702 2.13 3.90e-27 0.0000
10 BRINP3 269 540 2.25 5.48e-25 0.0000

Biological Interpretation of Echolocation Screen Hits

Running the screen against all 632 non-echolocating mammalian genomes controls for generic background rates and exposes specific molecular adaptations in echolocators:

Auditory & Synaptic Adaptations:

CACNA1B (Rank 6, Odds Ratio = 1.31) and BRINP3 (Rank 10, Odds Ratio = 2.25) play direct roles in synaptic transmission and neural rewiring within auditory pathways (such as the cochlear nuclei), facilitating the processing of high-frequency ultrasonic signals.

Lipid Dynamics (Sound Propagation):

PNLIPRP3 (Rank 4, Odds Ratio = 2.25) and ABCC11 (Rank 9, Odds Ratio = 2.13) regulate lipid digestion and transport. These are highly selected, potentially relating to the evolution of specialized acoustic lipids in the cetacean melon and bat lipid secretion adaptations.

Physiological Stress & Epigenetics:

  • CD58 (Rank 1, Odds Ratio = 2.66): Key immune adhesion molecule. Selection suggests immune system remodeling, potentially to manage viral load in bats or diving-induced inflammatory stress in cetaceans.
  • FAM111B (Rank 2, Odds Ratio = 2.46): Involved in DNA replication stress response. Echolocation creates high metabolic rates (flight/diving), producing systemic oxidative stress that requires enhanced DNA replication protection.
  • NLRP13 (Rank 3, Odds Ratio = 2.12): Regulator of inflammatory responses, adapting echolocator tissues to survive hypoxia and transient tissue damage during intense activity.
  • RSBN1 (Rank 5, Odds Ratio = 1.90): Epigenetic histone demethylase, indicating global transcriptional regulation changes.

Hearing Gene Adaptation: Prestin (SLC26A5)

Prestin (SLC26A5) is the canonical hearing gene mediating outer hair cell electromotility. Expanding sequence sampling to 742 mammal assemblies exposes key selective sites:

Highly Significant Sites:

MEME identifies 12 significant selection sites (p-value less than or equal to 0.05). The top site (Codon 699) shows intense episodic diversifying selection with an LRT of 22.06 (p-value = 0.000007).

Co-occurring Selection Overlap:

Prestin features a 7-site overlap in the top 15 selection sites sorted by actual MEME LRT vs. Transformer predictions, including codons 170, 237, 252, 260, 636, 691, and 699.

Prestin Selection Profile (Top 5 Sites):

  • Codon 699: LRT = 22.06, p-value = 0.000007 (Significant)
  • Codon 310: LRT = 17.04, p-value = 0.000084 (Significant)
  • Codon 674: LRT = 15.46, p-value = 0.000186 (Significant)
  • Codon 502: LRT = 13.47, p-value = 0.000507 (Significant)
  • Codon 170: LRT = 13.28, p-value = 0.000560 (Significant)

Continuous Phenotype Association: PGLS Screen & Interpretation

We conducted a genome-wide Phylogenetic Generalized Least Squares (PGLS) screen to associate terminal branch selection events with simulated body mass (log grams) across species, controlling for phylogenetic covariance (shared ancestry).

Phylogenetic Transform: Reconstructed patristic distance covariance matrix V and Cholesky factor L from 317 mammals. Transformed variables: Y* = L^-1 Y, X* = L^-1 X, and fit OLS.
Gene Events Slope T-stat P-val FDR Q
DAZAP1 5 0.354 4.53 8.58e-6 0.083
LRRTM4 11 0.229 4.21 3.43e-5 0.109
ABRACL 1 0.730 4.20 3.63e-5 0.109
GRM3 6 -0.500 -4.14 4.54e-5 0.109
FGF13 3 0.472 4.04 6.73e-5 0.130

Biological Interpretation of Top Hits:

  • DAZAP1 (DAZ Associated Protein 1, Slope = 0.354): Crucial RNA-binding protein mediating spermatogenesis and growth dynamics. Positive selection on larger body size lineages suggests adaptation of development rate and reproductive lifespan scaling.
  • LRRTM4 (Leucine Rich Repeat Transmembrane 4, Slope = 0.229): Synaptic cell adhesion molecule regulating neural wiring. Selection on larger body mass lines indicates structural neural adjustments during brain-body allometric scaling.
  • GRM3 (Metabotropic Glutamate Receptor 3, Slope = -0.500): Selection associated with smaller body sizes, suggesting neuro-metabolic modifications to support higher relative mass-specific metabolic rates in smaller mammals.
  • FGF13 (Fibroblast Growth Factor 13, Slope = 0.472): Direct role in microtubule stabilization and cardiac/neural development; adapts cellular growth processes to larger physical mass constraints.

Taxon Density as a Power Multiplier

A central result of this study is that scaling evolutionary analyses from sparse legacy alignments (about 40 species) to dense TOGA-level alignments (500 to 600 species) radically multiplies selection power.

Overcoming False Negatives:

In sparse alignments, many selected sites appear invariant simply because the sampling window is too narrow. Expanding the tree accumulates enough mutations to reject the neutral null.

Establishing Recurrence:

Positive selection is inferred by showing that mutations occur repeatedly at the same codon. Denser trees provide the replicate branches needed to distinguish selection from random neutral drift.

Power Comparison Summary:

We identified high-confidence selection sites (classified as GOLD) that were completely lost in legacy datasets. Three representative case studies highlight this shift:

  • ARID1B Site 498: Missing in 35-species tree vs. Highly Significant in 537-species tree.
  • ARHGAP23 Site 3: Missing in 42-species tree vs. Highly Significant in 597-species tree.
  • CABLES1 Site 554: Missing in 39-species tree vs. Highly Significant in 593-species tree.

Radical Selection Shifts: ARID1B

Legacy Result (35 Species)

Non-significant: p-value = 0.6667, LRT = 0.00.
Mutational history: 0 non-synonymous mutations, 0 synonymous mutations (site is completely invariant).

TOGA Result (537 Species)

Highly Significant: p-value = 0.0000, LRT = 30.33 (GOLD classification).
Mutational history: 16 independent non-synonymous mutations, 0 synonymous mutations.

The Invariant Site Mirage:

In the 35-species legacy alignment, this site exhibits exactly zero mutations. Because there is no variation, the evolutionary model has no data to distinguish purifying selection, a low mutation rate, or neutral drift. The likelihood surface is completely flat, leading to an LRT of 0.00.

By expanding the tree to 537 species in the TOGA dataset, the model uncovers the rich evolutionary history of this position, reconstructing 16 independent non-synonymous mutations and zero synonymous mutations. This high rate of purely amino-acid-altering change across the dense phylogeny provides the statistical replication necessary to confirm true selection with absolute confidence.

Radical Selection Shifts: ARHGAP23

Legacy Result (42 Species)

Non-significant: p-value = 0.4923, LRT = 0.30.
Mutational history: 1 non-synonymous mutation, 0 synonymous mutations.

TOGA Result (597 Species)

Highly Significant: p-value = 0.0000, LRT = 52.09 (GOLD classification).
Mutational history: 17 independent non-synonymous mutations, 0 synonymous mutations.

Distinguishing Drift from Selection:

In the legacy tree (42 species), the site has only a single non-synonymous mutation (occurring on the branch leading to the kangaroo rat Dipodomys ordii). A single mutation on a terminal branch is statistically indistinguishable from a random neutral substitution, yielding a low LRT of 0.30.

In the TOGA dataset (597 species), the site accumulates 17 independent non-synonymous mutations and zero synonymous mutations. Resolving these additional lineages provides the recurrent signals necessary to detect selection. The model estimates that 1.76% of branches undergo extremely intense positive selection (selection rate parameter beta_pos = 1858.37), resolving the signal with absolute confidence.

Radical Selection Shifts: CABLES1

Legacy Result (39 Species)

Non-significant: p-value = 0.2902, LRT = 1.16.
Mutational history: 1 non-synonymous mutation, 0 synonymous mutations.

TOGA Result (593 Species)

Highly Significant: p-value = 0.0000, LRT = 28.77 (GOLD classification).
Mutational history: 31 independent non-synonymous mutations, 0 synonymous mutations.

Widespread Selection Signal:

In the legacy alignment (39 species), this site has only a single non-synonymous mutation on an ancestral node. Similar to ARHGAP23, a single mutation provides insufficient evidence to rule out neutral evolution, leading to a p-value of 0.2902.

The dense TOGA tree (593 species) captures a massive accumulation of 31 independent non-synonymous mutations with zero synonymous changes. The model estimates that nearly the entire tree (99.0% of branches) evolves under diversifying selection (beta_pos = 3.95), indicating a widespread selection pressure that was completely lost under the sparse sampling of the legacy tree.

New Genomes Contribution

We evaluated which recently sequenced mammalian genomes (NCBI submission date on or after June 9, 2021) contribute the strongest selection signals to MEME results.

High-Quality Assemblies Drive Signal:

The top contributing genomes are dominated by chromosome-level assemblies with very high contig and scaffold N50 values. High-quality assemblies lead to better ORF projection by TOGA, resulting in complete alignments and high-confidence substitution mapping.

Phylogenetic Utility:

Adding these high-quality nodes splits long branches, reducing the risk of long-branch attraction and allowing MEME to pinpoint specific lineages where episodic diversifying selection occurred with high Empirical Bayes Factor (EBF) support.

Top 5 Contributing Genomes:

  1. Erinaceus europaeus (European hedgehog): Contributes 12,941 selection substitutions.
  2. Ctenodactylus gundi (Gundi): Contributes 12,858 selection substitutions.
  3. Typhlomys cinereus (Chinese pygmy dormouse): Contributes 11,191 selection substitutions.
  4. Rhynchocyon petersi (Black and rufous elephant shrew): Contributes 9,894 selection substitutions.
  5. Castor canadensis (American beaver): Contributes 9,204 selection substitutions.

Top Recently Sequenced Contributors

Ranked by total selection signal (GOLD and SILVER sites) mapped on terminal branches. Accessions submitted on/after June 9, 2021.

Species Accession Submission Date Status Scaffold N50 GOLD Sites SILVER Sites Total Signal
Erinaceus europaeus GCF_950295315.1 2023-05-01 Chromosome 126.7 Mb 12,815 126 12,941
Ctenodactylus gundi GCA_048771875.1 2025-03-21 Chromosome 108.7 Mb 12,753 105 12,858
Typhlomys cinereus GCA_023101885.1 2022-04-25 Scaffold 4.5 Mb 11,078 113 11,191
Rhynchocyon petersi GCA_043290065.1 2024-10-17 Chromosome 546.6 Mb 9,810 84 9,894
Castor canadensis GCA_047511655.2 2025-02-10 Chromosome 158.9 Mb 9,133 71 9,204
Cephalopachus bancanus GCA_027257055.1 2022-12-23 Contig 5.2 Mb 8,723 63 8,786
Eliomys quercinus GCA_051143595.1 2023-10-26 Scaffold 107.5 Mb 7,289 55 7,344

Hypothesis 1: Population Size & Purifying Selection

Population Genetics Theory

Lineages with large effective population sizes (Ne) should undergo more efficient natural selection, leading to stronger purifying constraint (lower background dN/dS, or omega).

The Short-Branch Mirage (Bias)

Species-dense clades (e.g. Primates, Cetacea) have systematically shorter terminal branches. On short branches, synonymous substitutions (dS) are frequently zero, which mathematically inflates MLE omega estimates (division by near-zero).

Divergence & Bias:

  • Primates/Cetacea branch lengths: Median is about 0.0009 substitutions/site.
  • Rodentia/Chiroptera branch lengths: Median is about 0.006 substitutions/site.
  • Unfiltered background analysis shows an artificial negative correlation (r is about -0.58) between terminal branch length and estimated background omega.

Hypothesis 1: Controlling for Branch Length Bias

To resolve this math artifact, we implemented a branch-length filtering threshold, keeping only terminal branches with length greater than 0.003 substitutions/site.

Effect of Filter:

Applying the filter successfully removes the mathematical inflation of omega on short branches, exposing true biological purifying constraint differences across mammalian clades.

Filter Threshold (0.003) Unfiltered (Inflated) Filtered (True Ne) Terminal Branch Length (Subs/Site) Estimated dN/dS (Omega)

Hypothesis 1 Results: Purifying Selection Constraint

After branch-length filtering (greater than 0.003), clades with larger effective population sizes (Ne) exhibit significantly stronger purifying selection (lower background omega):

Rodentia vs. Primates:
Rodentia (Large Ne, Median omega = 0.100) vs. Primates (Small Ne, Median omega = 0.143).
Mann-Whitney U p-value = 3.14e-179
Chiroptera vs. Cetacea:
Chiroptera (Large Ne, Median omega = 0.115) vs. Cetacea (Small Ne, Median omega = 0.197).
Mann-Whitney U p-value = 5.34e-161

Median Purifying Selection Background Omega

Rodentia (Large Ne) 0.100
Chiroptera (Large Ne) 0.115
Primates (Small Ne) 0.143
Cetacea (Small Ne) 0.197

Hypothesis 2: Dynamic Selection Clade-Shifts

Do evolutionary adaptive landscapes shift between deep mammalian lineages (epistasis), or remain constant across structural hotspots?

Stratified Permutation Test (49,013 sites):
Shuffled positive selection branches across tree topologies (10,000 permutations) to create a controlled null expectation.
  • Shared Selection Sites: Observed 91.84% is significantly lower than the expected 94.36% (Ratio = 0.973, p-value = 9.29e-201).
  • Euarchontoglires-only Sites: Enriched by about 2-fold (Observed 4.05% vs Expected 2.14%).
  • Laurasiatheria-only Sites: Enriched by 16% (Observed 3.97% vs Expected 3.42%).

Shared Selected Sites (Observed vs Expected)

Expected (94.36%) Observed (91.84%) Significance: p-value = 9.29e-201

The overlap is significantly smaller than the null expectation, proving that selection targets shift due to epistasis and niche differentiation.

Hypothesis 3: Diminishing Returns & Saturation

Does adding more genomes to an alignment indefinitely yield linear returns in selection detection power?

The Biphasic Return Curve:
Selection density peaks at intermediate species counts (500 to 600 genomes, density = 0.024) but drops by 4-fold in genes represented across 700+ genomes (density = 0.005).
  • Immutable Housekeeping Genes: Genes annotated across all 700+ species represent core housekeeping machinery (e.g. ribosomes, translation, transcription).
  • Tree Length (Mutational Depth): Evolutionary divergence (Tree Length) is the true predictor of selection detection power (r = 0.30, p-value = 3.05e-212), showing logarithmic return dynamics.
Peak Density (500-600 spp) 700+ spp Drop-off Species Count in Alignment Positive Selection Density

Unveiling Selection in "Invariant" Housekeeping Genes

Taxon density challenges the paradigm of completely "invariant" negative controls. Housekeeping genes traditionally assumed to be under strict purifying selection across their entire sequence show site-specific episodic positive selection in our 742-species dataset:

  • ACTB (Beta-actin): Standard structural component. Features 1 selection site under episodic positive selection (global dN/dS = 0.0033, P < 0.05).
  • CALM1 (Calmodulin 1): Calcium sensor, 100% identity in standard genomes. Features 1 selection site (global dN/dS = 0.0022, P < 0.05).
  • GAPDH: Standard expression reference. Features 3 selection sites (global dN/dS = 0.0402, P < 0.05).
  • Ribosomal Subunits: RPL10, RPL19, RPL30, and RPS13 each contain 1 selection site under selection.

Truly Ultra-Conservative Genes (N = 476)

Only 4.6% of genes (476 / 10,247) remain completely devoid of selection (global dN/dS < 0.02, 0 selection sites, represented across ≥ 100 species). They are heavily enriched for:

  • Cytoplasmic Translation (GO:0002181, Combined Score = 1484)
  • mRNA Processing (GO:0006397, Combined Score = 168)
  • Nucleosome Assembly (GO:0006334, Combined Score = 292)

Ultimate Negative Controls: Histone core proteins (e.g. H4C12, H3C10, H2BC4) remain 100% rigid across mammals, showing no codon variation.

Scaling Selection: PhyloAxialTransformer

Standard comparative genomic likelihood optimizations require hours per gene and fail to scale to VGP limits (thousands of species).

Phenomenal Classification Performance:

For Prestin (SLC26A5), the transformer regression model predicts selection with an AUROC of 0.9708 and an Average Precision of 0.4732, representing a 29-fold precision lift.

  • Regularized Predictions: Rather than reproducing high-frequency asymptotic noise (such as alignment mismatches or tree length variations that inflate raw Likelihood Ratio Tests), the transformer acts as a biochemically regularized predictor.
  • High Throughput: Bypasses raw numerical optimizations, accelerating selection screens by orders of magnitude to scale to VGP limits.

Model Architecture Overview

Alignment Tokens Patristic Matrix MDS Coordinates Axial Transformer LRT Stats
Slide 1 of 23