Search bioRxiv⌕ Search

Biology subjects

Kelleher, J.

Publications and source records attributed to Kelleher, J..

At least 19 recordsLinked to original sources

Tuning the SMC: efficient simulation and the structure of ARGs

Sequentially Markovian Coalescent (SMC) models are a central element of contemporary population genetics, underlying many inferential methods. While the SMC has been shown to closely approximate the canonical Coalescent with Recombination (CwR) in terms of low-dimensional, two-locus summaries, its effects on the deeper structural properties of Ancestral Recombination Graphs (ARGs) are less well understood. Here, we define a general SMC approximation, SMC(k), in which a single parameter k controls the physical scale over which common-ancestor events between non-overlapping ancestral segments are permitted. The model encompasses the standard SMC and SMC' as special cases and converges to the CwR as k increases, providing a tunable trade-off between computational efficiency and fidelity to the full recombination process. Using recently developed summaries of ARG structure, we show that SMC approximations systematically truncate the persistence of ancestral haplotypes across the genome, despite preserving marginal coalescent properties, and that increasing k progressively recovers this long-range ancestral structure. We implement the SMC(k) in msprime and show that, for small samples, it makes whole-chromosome simulation in species with large population-scaled recombination rates several orders of magnitude faster than the CwR. Finally, we use SMC simulations for chromosome-scale parametric bootstrapping of demographic inference and find that the SMC' captures uncertainty in SFS-based estimates remarkably well, with only modest changes as k increases despite substantial differences in long-range ARG structure. Thus, the importance of SMC approximation error depends strongly on which properties of ancestry are relevant to the downstream analysis.

genomics↗

Tracing the evolutionary histories of ultra-rare variants using variational dating of large ancestral recombination graphs

Ultra-rare variants dominate whole-genome sequencing datasets, yet their interpretation is limited by allele frequency, which provides little information at very low counts and is highly sensitive to uneven ancestry representation. Allele age offers an ancestry-agnostic alternative but existing methods do not scale to biobank-sized cohorts. Here we present a scalable variational algorithm for dating Ancestral Recombination Graphs (ARGs), implemented in tsdate, together with new distributed methods enabling practical biobank-scale ARG inference using tsinfer. Applied to 47,535 genomes from the Genomics England 100,000 Genomes Project, we infer contiguous ARGs spanning 206 Mb and estimate ages for 23.2 million variants, including 11.8 million singletons. ARG-based allele ages remain accurate under extreme sampling imbalance and, in real data, reveal signatures of purifying selection and clinically relevant heterogeneity among variants with identical observed frequencies. Estimates for recent mutations are precise only at large sample sizes, highlighting the information accessible in the haplotype structure of large datasets. Biobank-scale ARGs therefore enable robust, ancestry-agnostic age estimation for ultra-rare variation with broad utility for statistical and clinical genomics.

genetics↗

Modelling complex traits with ancestral recombination graphs

Ancestral recombination graphs (ARGs) are an attractive means for quantitative genetic analysis of complex traits because they encode the realized genetic relatedness between a sample of individuals in the presence of genetic drift, recombination, and mutation. Data structures for efficiently storing ARGs can also be used to rapidly process millions of genomes, and are thus promising for fitting linear mixed models (LMMs) to large phenotype and genome datasets. Here, we study the problems of variance component estimation and prediction of genetic values with ARGs, by describing a generative model of complex traits with additive effects on an ARG, and then developing algorithms that use the ARG to solve these problems efficiently on biobank-scale datasets. We observe nearly linear scaling of runtime with sample size, which is achieved by using the succinct tree sequence representation of the ARG for implicit matrix-vector products, along with modern randomized linear algebra algorithms. We estimate variance components using restricted maximum likelihood (REML), which we find performs substantially better than the Haseman- Elston method. In simulation tests, both variance component estimation and prediction of genetic values (using the best linear unbiased predictor, BLUP) perform nearly as well with inferred ARGs as with true ARGs. We also discuss interpretations of the variance component estimates as mutational variance and additive genetic variance. We provide an implementation of the algorithms as a Python package tslmm, which leverages the tree sequence library tskit.

genomics↗

Detecting and quantifying rare sex in natural populations

The distinction between sexual and asexual reproduction is fundamental to eukaryotic evolution. Testing theories about the evolution of reproductive modes first requires knowing whether sex is present or absent in a population. While this seems straightforward, the literature on asexuality reflects a history of shifting claims and uncertainty regarding reproductive mode, especially where sex is potentially rare or cryptic. Here, we develop a new framework to address the challenges in detecting and quantifying sexual reproduction from population genomic data. We first show that commonly calculated population genetic statistics do not reliably distinguish sexual and obligate asexual scenarios if asexuality is accompanied by sex-independent homologous recombination, as emerging evidence indicates is often the case. We then present a new method to quantify the relationship between evolutionary trees and mode of reproduction by classifying local trees for pairs of diploid individuals using ancestral recombination graphs (ARGs). This approach accurately discriminates signatures of genetic exchange and homologous recombination, though some uncertainty remains because of unavoidable biases in the steps needed to reconstruct trees from genome data. We introduce new statistics and simulation models to account for common reconstruction biases and demonstrate their utility by uncovering contrasting reproductive histories in the facultatively sexual budding yeast Saccharomyces cerevisiae. This approach offers the potential for improved quantitative inference of reproductive modes that can readily be extended to a broad range of eukaryotes. Significance StatementDetermining how often, if at all, organisms have sex has implications across biology. Studies often use population genomic data to interrogate the private life of putative asexuals, but the results prove surprisingly inconclusive. We develop a framework to address the challenges in detecting and quantifying rates of sex. New simulation models show how sex-independent recombination, which occurs widely across a range of asexual eukaryotes, causes genetic patterns to resemble sexual populations even when sex is absent. An approach based on ancestral recombination graphs (ARGs) and classification of local trees accounts for these problems and quantifies the remaining uncertainty due to inevitable reconstruction biases. Our framework will enable improved inferences of reproductive mode across a wide range of eukaryotes.

evolutionary biology↗

Tsbrowse: an interactive browser for Ancestral Recombination Graphs

Ancestral Recombination Graphs (ARGs) represent the interwoven paths of genetic ancestry for a set of recombining sequences. The ability to capture the evolutionary history of samples makes ARGs valuable in a wide range of applications in population and statistical genetics. ARG-based approaches are increasingly becoming a part of genetic data analysis pipelines due to breakthroughs enabling ARG inference at biobank-scale. However, there is a lack of visualisation tools, which are crucial for validating inferences and generating hypotheses. We present tsbrowse, an open-source Python web-app for the interactive visualisation of the fundamental building-blocks of ARGs, i.e., nodes, edges and mutations. We demonstrate the application of tsbrowse to various data sources and scenarios, and highlight its key features of browsability along the genome, user interactivity, and scalability to very large sample sizes. AvailabilityPython package: https://pypi.org/project/tsbrowse/, Development version: https://github.com/tskit.dev/tsbrowse, Documentation: https://tskit.dev/tsbrowse/docs/

genomics↗

Accessible, realistic genome simulation with selection using stdpopsim

Selection is a fundamental evolutionary force that shapes patterns of genetic variation across species. However, simulations incorporating realistic selection along heterogeneous genomes in complex demographic histories are challenging, limiting our ability to benchmark statistical methods aimed at detecting selection and to explore theoretical predictions. stdpopsim is a community-maintained simulation library that already provides an extensive catalog of species-specific population genetic models. Here we present a major extension to the stdpopsim framework that enables simulation of various modes of selection, including background selection, selective sweeps, and arbitrary distributions of fitness effects (DFE) acting on annotated subsets of the genome (for instance, exons). This extension maintains stdpopsims core principles of reproducibility and accessibility while adding support for species-specific genomic annotations and published DFE estimates. We demonstrate the utility of this framework by comparing methods for demographic inference, DFE estimation, and selective sweep detection across several species and scenarios. Our results demonstrate the robustness of demographic inference methods to selection on linked sites, reveal the sensitivity of DFE-inference methods to model assumptions, and show how genomic features, like recombination rate and functional sequence density, influence power to detect selective sweeps. This extension to stdpopsim provides a powerful new resource for the population genetics community to explore the interplay between selection and other evolutionary forces in a reproducible, user-friendly framework.

evolutionary biology↗

On ARGs, pedigrees, and genetic relatedness matrices

Genetic relatedness is a central concept in genetics, underpinning studies of population and quantitative genetics in human, animal, and plant settings. It is typically stored as a genetic relatedness matrix (GRM), whose elements are pairwise relatedness values between individuals. This relatedness has been defined in various contexts based on pedigree, genotype, phylogeny, coalescent times, and, recently, ancestral recombination graph (ARG). ARG-based GRMs have been found to better capture the structure of a population and improve association studies relative to the genotype GRM. However, calculating GRMs and further operations with them is fundamentally challenging due to inherent quadratic time and space complexity. Here, we first discuss the different definitions of relatedness in a unifying context, making use of the additive model of a quantitative trait to provide a definition of "branch relatedness" and the corresponding "branch GRM". We explore the relationship between branch relatedness and pedigree relatedness through a case study of French-Canadian individuals that have a known pedigree. Through the tree sequence encoding of an ARG, we then derive an efficient algorithm for computing products between the branch GRM and a general vector, without explicitly forming the branch GRM. This algorithm leverages the sparse encoding of genomes with the tree sequence and hence enables large-scale computations with the branch GRM. We demonstrate the power of this algorithm by developing a randomized principal components algorithm for tree sequences that easily scales to millions of genomes. All algorithms are implemented in the open source tskit Python package. Taken together, this work consolidates the different notions of relatedness as branch relatedness and by leveraging the tree sequence encoding of an ARG it provides efficient algorithms that enable computations with the branch GRM that scale to mega-scale genomic datasets.

genomics↗

Likelihoods for a general class of ARGs under the SMC

Ancestral recombination graphs (ARGs) are the focus of much ongoing research interest. Recent progress in inference has made ARG-based approaches feasible across of range of applications, and many new methods using inferred ARGs as input have appeared. This progress on the long-standing problem of ARG inference has proceeded in two distinct directions. First, the Bayesian inference of ARGs under the Sequentially Markov Coalescent (SMC), is now practical for tens-to-hundreds of samples. Second, approximate models and heuristics can now scale to sample sizes two to three orders of magnitude larger. Although these heuristic methods are reasonably accurate under many metrics, one significant drawback is that the ARGs they estimate do not have the topological properties required to compute a likelihood under models such as the SMC under present-day formulations. In particular, heuristic inference methods typically do not estimate precise details about recombination events, which are currently required to compute a likelihood. In this paper we present a backwards-time formulation of the SMC and derive a straightforward definition of the likelihood of a general class of ARG under this model. We show that this formulation does not require precise details of recombination events to be estimated, and is robust to the presence of polytomies. We discuss the possibilities for inference that this opens.

genomics↗

Influenza virus evolution and defective genome formation are shaped by host genotype and sex

Viral evolution during initial pandemic waves favors mutations that enhance replication and transmission over antigenic escape. Host genotype and sex strongly shape this early adaptation, yet their individual and combined effects remain unclear. We experimentally adapted influenza A virus to male and female BALB/c and C57BL/6 mice, generating 28 independent lineages, and employed a novel "rolling sphere" approach to identify mutational hotspots in three-dimensional protein structures. In BALB/c mice, adaptation favored nonsynonymous substitutions linked to increased virulence, including a hemagglutinin variant exclusively fixed in female lineages. It also revealed the first demonstration of sex-dependent selection shaping a viral protein interface. In female-adapted viruses, substitutions disrupting a key NS1 dimerization motif converged on a single residue, while in male-adapted viruses, they were dispersed across the same interface. Conversely, adaptation to C57BL/6 resulted in fewer substitutions but promoted defective viral genome formation, leading to reduced cytopathic effect and attenuated virulence. This provides the first in vivo evidence that host genotype alone can modulate defective viral genome formation. Our results offer critical insights into host-pathogen interactions and reveal that selective pressures imposed by specific genotype-sex combinations can increase virulence across host genotypes, enabling new epidemiological modeling and disease control strategies.

evolutionary biology↗

A forest is more than its trees: haplotypes and inferred ARGs

Foreshadowing haplotype-based methods of the genomics era, it is an old observation that the "junction" between two distinct haplotypes produced by recombination is inherited as a Mendelian marker. In a genealogical context, this recombination-mediated information reflects the persistence of ancestral hap-lotypes across local genealogical trees in which they do not represent coalescences. We show how these non-coalescing haplotypes ("locally-unary nodes") may be inserted into ancestral recombination graphs (ARGs), a compact but information-rich data structure describing the genealogical relationships among recombinant sequences. The resulting ARGs are smaller, faster to compute with, and the additional ancestral information that is inserted is nearly always correct where the initial ARG is correct. We provide efficient algorithms to infer locally-unary nodes within existing ARGs, and explore some consequences for ARGs inferred from real data. To do this, we introduce new metrics of agreement and disagreement between ARGs that, unlike previous methods, consider ARGs as describing relationships between haplotypes rather than just a collection of trees.

genomics↗

Analysis-ready VCF at Biobank scale using Zarr

BackgroundVariant Call Format (VCF) is the standard file format for interchanging genetic variation data and associated quality control metrics. The usual row-wise encoding of the VCF data model (either as text or packed binary) emphasises efficient retrieval of all data for a given variant, but accessing data on a field or sample basis is inefficient. Biobank scale datasets currently available consist of hundreds of thousands of whole genomes and hundreds of terabytes of compressed VCF. Row-wise data storage is fundamentally unsuitable and a more scalable approach is needed. ResultsZarr is a format for storing multi-dimensional data that is widely used across the sciences, and is ideally suited to massively parallel processing. We present the VCF Zarr specification, an encoding of the VCF data model using Zarr, along with fundamental software infrastructure for efficient and reliable conversion at scale. We show how this format is far more efficient than standard VCF based approaches, and competitive with specialised methods for storing genotype data in terms of compression ratios and single-threaded calculation performance. We present case studies on subsets of three large human datasets (Genomics England: n=78,195; Our Future Health: n=651,050; All of Us: n=245,394) along with whole genome datasets for Norway Spruce (n=1,063) and SARS-CoV-2 (n=4,484,157). We demonstrate the potential for VCF Zarr to enable a new generation of high-performance and cost-effective applications via illustrative examples using cloud computing and GPUs. ConclusionsLarge row-encoded VCF files are a major bottleneck for current research, and storing and processing these files incurs a substantial cost. The VCF Zarr specification, building on widely-used, open-source technologies has the potential to greatly reduce these costs, and may enable a diverse ecosystem of next-generation tools for analysing genetic variation data directly from cloud-based object stores, while maintaining compatibility with existing file-oriented workflows. Key PointsO_LIVCF is widely supported, and the underlying data model entrenched in bioinformatics pipelines. C_LIO_LIThe standard row-wise encoding as text (or binary) is inherently inefficient for large-scale data processing. C_LIO_LIThe Zarr format provides an efficient solution, by encoding fields in the VCF separately in chunk-compressed binary format. C_LI

bioinformatics↗

tstrait: a quantitative trait simulator for ancestralrecombination graphs

SummaryAncestral recombination graphs (ARGs) encode the ensemble of correlated genealogical trees arising from recombination in a compact and efficient structure, and are of fundamental importance in population and statistical genetics. Recent breakthroughs have made it possible to simulate and infer ARGs at biobank scale, and there is now intense interest in using ARG-based methods across a broad range of applications, particularly in genome-wide association studies (GWAS). Sophisticated methods exist to simulate ARGs using population genetics models, but there is currently no software to simulate quantitative traits directly from these ARGs. To apply existing quantitative trait simulators users must export genotype data, losing important information about ancestral processes and producing prohibitively large files when applied to the biobank-scale datasets currently of interest in GWAS. We present tstrait, an open-source Python library to simulate quantitative traits on ARGs, and show how this user-friendly software can quickly simulate phenotypes for biobank-scale datasets on a laptop computer. Availability and Implementationtstrait is available for download on the Python Package Index. Full documentation with examples and workflow templates is available on https://tskit.dev/tstrait/docs/, and the development version is maintained on GitHub (https://github.com/tskit-dev/tstrait). Contactdaiki.tagami@hertford.ox.ac.uk

bioinformatics↗

Estimating evolutionary and demographic parameters via ARG-derived IBD

Inference of demographic and evolutionary parameters from a sample of genome sequences often proceeds by first inferring identical-by-descent (IBD) genome segments. By exploiting efficient data encoding based on the ancestral recombination graph (ARG), we obtain three major advantages over current approaches: (i) no need to impose a length threshold on IBD segments, (ii) IBD can be defined without the hard-to-verify requirement of no recombination, and (iii) computation time can be reduced with little loss of statistical efficiency using only the IBD segments from a set of sequence pairs that scales linearly with sample size. We first demonstrate powerful inferences when true IBD information is available from simulated data. For IBD inferred from real data, we propose an approximate Bayesian computation inference algorithm and use it to show that poorly-inferred short IBD segments can improve estimation precision. We show estimation precision similar to a previously-published estimator despite a 4 000-fold reduction in data used for inference. Computational cost limits model complexity in our approach, but we are able to incorporate unknown nuisance parameters and model misspecification, still finding improved parameter inference. Author summarySamples of genome sequences can be informative about the history of the population from which they were drawn, and about mutation and other processes that led to the observed sequences. However, obtaining reliable inferences is challenging, because of the complexity of the underlying processes and the large amounts of sequence data that are often now available. A common approach to simplifying the data is to use only genome segments that are very similar between two sequences, called identical-by-descent (IBD). The longer the IBD segment the more informative about recent shared ancestry, and current approaches restrict attention to IBD segments above a length threshold. We instead are able to use IBD segments of any length, allowing us to extract much more information from the sequence data. To reduce the computation burden we identify subsets of the available sequence pairs that lead to little information loss. Our approach exploits recent advances in inferring aspects of the ancestral recombination graph (ARG) underlying the sample of sequences. Computational cost still limits the size and complexity of problems our method can handle, but where feasible we obtain dramatic improvements in the power of inferences.

genetics↗

link-ancestors: Fast simulation of local ancestry with tree sequence software

SummaryIt is challenging to simulate realistic tracts of genetic ancestry on a scale suitable for simulation based inference. We present an algorithm that enables this information to be extracted efficiently from tree sequences produced by simulations run with msprime and SLiM. Availability and ImplementationA C-based implementation of the link-ancestors algorithm is in tskit (https://tskit.dev/tskit/docs/stable/). We also provide a user-friendly wrapper for link-ancestors in tspop, a Python-based utility package. Contactgtsambos@uw.edu. Supplementary informationTechnical details of link-ancestors are in the Supplementary Information. Documentation for the tspop package is at http://tspop.readthedocs.io/.

genomics↗

A general and efficient representation of ancestral recombination graphs

As a result of recombination, adjacent nucleotides can have different paths of genetic inheritance and therefore the genealogical trees for a sample of DNA sequences vary along the genome. The structure capturing the details of these intricately interwoven paths of inheritance is referred to as an ancestral recombination graph (ARG). Classical formalisms have focused on mapping coalescence and recombination events to the nodes in an ARG. This approach is out of step with modern developments, which do not represent genetic inheritance in terms of these events or explicitly infer them. We present a simple formalism that defines an ARG in terms of specific genomes and their intervals of genetic inheritance, and show how it generalises these classical treatments and encompasses the outputs of recent methods. We discuss nuances arising from this more general structure, and argue that it forms an appropriate basis for a software standard in this rapidly growing field.

genetics↗

Towards Pandemic-Scale Ancestral Recombination Graphs of SARS-CoV-2

Millions of SARS-CoV-2 genome sequences were collected during the COVID-19 pandemic, forming a dataset of unprecedented richness. Estimated genealogies are fundamental to understanding this ocean of data and form the primary input to many downstream analyses. A basic assumption of methods to infer genealogies from viral genetic data is that recombination is negligible and the genealogy is a tree. However, recombinant lineages have risen to global prevalence, and simple tree representations are therefore incomplete and potentially misleading. We present sc2ts, a method to infer reticulate genealogies as an Ancestral Recombination Graph (ARG) in real time at pandemic scale. We infer an ARG for 2.48 million SARS-CoV-2 genomes, which leverages the widely used tskit software ecosystem to support further analyses and visualisation. This rich and validated resource clarifies the relationships among recombinant lineages, quantifies the rate of recombination over time, and provides a lower bound on detectable recombination.

evolutionary biology↗

Expanding the stdpopsim species catalog, and lessons learned forrealistic genome simulations

Simulation is a key tool in population genetics for both methods development and empirical research, but producing simulations that recapitulate the main features of genomic data sets remains a major obstacle. Today, more realistic simulations are possible thanks to large increases in the quantity and quality of available genetic data, and to the sophistication of inference and simulation software. However, implementing these simulations still requires substantial time and specialized knowledge. These challenges are especially pronounced for simulating genomes for species that are not well-studied, since it is not always clear what information is required to produce simulations with a level of realism sufficient to confidently answer a given question. The community-developed framework stdpopsim seeks to lower this barrier by facilitating the simulation of complex population genetic models using up-to-date information. The initial version of stdpopsim focused on establishing this framework using six well-characterized model species (Adrion et al., 2020). Here, we report on major improvements made in the new release of stdpopsim (version 0.2), which includes a significant expansion of the species catalog and substantial additions to simulation capabilities. Features added to improve the realism of the simulated genomes include non-crossover recombination and provision of species-specific genomic annotations. Through community-driven efforts, we expanded the number of species in the catalog more than three-fold and broadened coverage across the tree of life. During the process of expanding the catalog, we have identified common sticking points and developed best practices for setting up genome-scale simulations. We describe the input data required for generating a realistic simulation, suggest good practices for obtaining the relevant information from the literature, and discuss common pitfalls and major considerations. These improvements to stdpopsim aim to further promote the use of realistic whole-genome population genetic simulations, especially in non-model organisms, making them available, transparent, and accessible to everyone.

bioinformatics↗

On the Genes, Genealogies, and Geographies of Quebec

Population genetic models only provide coarse representations of real-world ancestry. We use a pedigree compiled from four million parish records and genotype data from 2,276 French and 20,451 French Canadian (FC) individuals, to finely model and trace FC ancestry through space and time. The loss of ancestral French population structure and the appearance of spatial and regional structure highlights a wide range of population expansion models. Geographic features shaped migrations throughout, and we find enrichments for migration, genetic and genealogical relatedness patterns within river networks across Quebec regions. Finally, we provide a freely accessible simulated whole-genome sequence dataset with spatiotemporal metadata for 1,426,749 individuals reflecting intricate FC population structure. Such realistic populations-scale simulations provide new opportunities to investigate population genetics at an unprecedented resolution. Lay SummaryWe all share common ancestors ranging from a couple generations ago to hundreds of thousands of years ago. The genetic differences between individuals today mostly depends on how closely related they are. The only problem is that the actual genealogies that relate all of us are often forgotten over time. Some geneticists have tried to come up with simple models of our shared ancestry but they dont really explain the full, rich history of humanity. Our study uses a multi-institutional project in Quebec that has digitized parish records into a single unified genealogical database that dates back to the arrival of the first French settlers four hundred years ago. This genealogy traces the ancestry of millions of French-Canadian and we have used it to build a very high resolution genetic map. We used this genetic map to study in detail how certain historical events, and landscapes have influenced the genomes of French-Canadians today. One-Sentence SummaryWe present an accurate and high resolution spatiotemporal model of genetic variation in a founder population.

genomics↗