{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"institution":[{"name":"bioRxiv"}],"indexed":{"date-parts":[[2026,10,20]],"date-time":"2026-10-20T05:40:19Z","timestamp":1792474819114,"version":"4.5.0"},"posted":{"date-parts":[[2026,10,16]]},"group-title":"Evolutionary Biology","reference-count":18,"publisher":"openRxiv","license":[{"start":{"date-parts":[[2026,10,16]],"date-time":"2026-10-16T00:00:00Z","timestamp":1792108800000},"content-version":"vor","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"NIH\/NIGMS","award":["GM151683"],"award-info":[{"award-number":["GM151683"]}]},{"name":"NIH\/NIAID","award":["AI183870"],"award-info":[{"award-number":["AI183870"]}]},{"name":"NSF","award":["2419522"],"award-info":[{"award-number":["2419522"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"accepted":{"date-parts":[[2026,10,16]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                <jats:p>\n                  Codon substitution models detect natural selection by comparing non-synonymous (\n                  <jats:italic>dN<\/jats:italic>\n                  ) and synonymous (\n                  <jats:italic>dS<\/jats:italic>\n                  ) rates at each site. Standard methods assume stationary nucleotide composition across the phylogeny. In many genomes, however, GC-biased gene conversion (gBGC), codon usage bias, strand asymmetry, and host deaminases drive directional shifts in base composition along lineages. Under a stationary Muse\u2013Gaut model with site-to-site synonymous rate variation (\n                  <jats:monospace>FEL<\/jats:monospace>\n                  ), position-specific base frequencies and site-specific\n                  <jats:italic>dS<\/jats:italic>\n                  absorb most tree-wide drift. As a result, selection calls remain unchanged at 96%\u201399% of codons. At the remaining boundary sites, however, directional shifts bias\n                  <jats:italic>dS<\/jats:italic>\n                  in opposite directions depending on the ancestral codon. Rapid silent turnover at codons shifting toward the favored base inflates\n                  <jats:italic>dS<\/jats:italic>\n                  , producing apparent purifying selection and increasing across-site synonymous rate variance. Conversely, when amino acid replacements oppose the compositional tide, stationary models miss diversifying selection. Branch-specific models can accommodate shifting base frequencies, but diagonalizing a separate non-reversible codon rate matrix on every branch is too slow for large trees. Here we introduce Directional Fixed Effects Likelihood (\n                  <jats:monospace>dFEL<\/jats:monospace>\n                  ). The method first tests whether base composition varies across taxa and runs standard\n                  <jats:monospace>FEL<\/jats:monospace>\n                  when frequencies are uniform. When composition shifts across lineages,\n                  <jats:monospace>dFEL<\/jats:monospace>\n                  roots the tree by maximum likelihood without an outgroup and models each branch as a smooth weighted average of three regime-specific transition probability matrices representing AT-enriching, neutral, and GC-enriching evolution. Sharing these matrices across the tree requires only three matrix diagonalizations per site. We validate\n                  <jats:monospace>dFEL<\/jats:monospace>\n                  across 1,800 simulated alignments and 87 unique empirical alignments (93 benchmark analyses) spanning up to 869 vertebrate species. It maintains calibrated false-positive rates, improves power, cuts whole-gene synonymous rate variance by up to 63%, and recovers established roots from coding sequences alone (\n                  <jats:ext-link xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" ext-link-type=\"uri\" xlink:href=\"https:\/\/github.com\/veg\/hyphy-3\">https:\/\/github.com\/veg\/hyphy-3<\/jats:ext-link>\n                  ).\n                <\/jats:p>","DOI":"10.64898\/2026.10.14.759254","type":"posted-content","created":{"date-parts":[[2026,10,16]],"date-time":"2026-10-16T10:10:11Z","timestamp":1792145411000},"source":"Crossref","is-referenced-by-count":0,"title":["A Sense of Direction: Detecting Natural Selection Across Non-Stationary Genomes"],"prefix":"10.64898","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-4817-4029","authenticated-orcid":false,"given":"Sergei L.","family":"Kosakovsky Pond","sequence":"first","affiliation":[{"name":"Institute for Genomics and Evolutionary Medicine, Temple University, Philadelphia, PA, USA"},{"name":"Department of Biology, Temple University, Philadelphia, PA, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"54368","reference":[{"key":"2026101922201289000_2026.10.14.759254v1.1","doi-asserted-by":"publisher","DOI":"10.1186\/s13059-019-1633-3"},{"key":"2026101922201289000_2026.10.14.759254v1.2","doi-asserted-by":"publisher","DOI":"10.1080\/10635150600975218"},{"key":"2026101922201289000_2026.10.14.759254v1.3","doi-asserted-by":"publisher","DOI":"10.1146\/annurev-genom-082908-150001"},{"key":"2026101922201289000_2026.10.14.759254v1.4","doi-asserted-by":"publisher","DOI":"10.1007\/BF01734359"},{"key":"2026101922201289000_2026.10.14.759254v1.5","doi-asserted-by":"publisher","DOI":"10.1093\/oxfordjournals.molbev.a025991"},{"key":"2026101922201289000_2026.10.14.759254v1.6","doi-asserted-by":"publisher","DOI":"10.1093\/oxfordjournals.molbev.a040153"},{"key":"2026101922201289000_2026.10.14.759254v1.7","doi-asserted-by":"publisher","DOI":"10.1093\/molbev\/msi105"},{"key":"2026101922201289000_2026.10.14.759254v1.8","doi-asserted-by":"publisher","DOI":"10.1093\/molbev\/msz197"},{"key":"2026101922201289000_2026.10.14.759254v1.9","doi-asserted-by":"publisher","DOI":"10.1038\/304412a0"},{"key":"2026101922201289000_2026.10.14.759254v1.10","doi-asserted-by":"publisher","DOI":"10.1093\/molbev\/mss231"},{"key":"2026101922201289000_2026.10.14.759254v1.11","doi-asserted-by":"publisher","DOI":"10.1038\/351652a0"},{"key":"2026101922201289000_2026.10.14.759254v1.12","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pgen.1002764"},{"key":"2026101922201289000_2026.10.14.759254v1.13","doi-asserted-by":"publisher","DOI":"10.1093\/molbev\/msv035"},{"key":"2026101922201289000_2026.10.14.759254v1.14","doi-asserted-by":"publisher","DOI":"10.1093\/oxfordjournals.molbev.a040152"},{"key":"2026101922201289000_2026.10.14.759254v1.15","doi-asserted-by":"publisher","DOI":"10.1093\/oxfordjournals.molbev.a026369"},{"key":"2026101922201289000_2026.10.14.759254v1.16","doi-asserted-by":"publisher","DOI":"10.1098\/rstb.2010.0007"},{"key":"2026101922201289000_2026.10.14.759254v1.17","doi-asserted-by":"publisher","DOI":"10.1093\/molbev\/msp133"},{"key":"2026101922201289000_2026.10.14.759254v1.18","doi-asserted-by":"publisher","DOI":"10.1093\/molbev\/msaa037"}],"container-title":[],"original-title":[],"link":[{"URL":"https:\/\/syndication.highwire.org\/content\/doi\/10.64898\/2026.10.14.759254","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,10,20]],"date-time":"2026-10-20T05:20:17Z","timestamp":1792473617000},"score":1,"resource":{"primary":{"URL":"http:\/\/biorxiv.org\/lookup\/doi\/10.64898\/2026.10.14.759254"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,10,16]]},"references-count":18,"URL":"https:\/\/doi.org\/10.64898\/2026.10.14.759254","relation":{},"subject":[],"published":{"date-parts":[[2026,10,16]]},"subtype":"preprint"}}