Cargando…
Graph-based algorithms for Laplace transformed coalescence time distributions
Extracting information on the selective and demographic past of populations that is contained in samples of genome sequences requires a description of the distribution of the underlying genealogies. Using the Laplace transform, this distribution can be generated with a simple recursive procedure, re...
Autor principal: | |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Public Library of Science
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9514611/ https://www.ncbi.nlm.nih.gov/pubmed/36108047 http://dx.doi.org/10.1371/journal.pcbi.1010532 |
_version_ | 1784798314125852672 |
---|---|
author | Bisschop, Gertjan |
author_facet | Bisschop, Gertjan |
author_sort | Bisschop, Gertjan |
collection | PubMed |
description | Extracting information on the selective and demographic past of populations that is contained in samples of genome sequences requires a description of the distribution of the underlying genealogies. Using the Laplace transform, this distribution can be generated with a simple recursive procedure, regardless of model complexity. Assuming an infinite-sites mutation model, the probability of observing specific configurations of linked variants within small haplotype blocks can be recovered from the Laplace transform of the joint distribution of branch lengths. However, the repeated differentiation required to compute these probabilities has proven to be a serious computational bottleneck in earlier implementations. Here, I show that the state space diagram can be turned into a computational graph, allowing efficient evaluation of the Laplace transform by means of a graph traversal algorithm. This general algorithm can, for example, be applied to tabulate the likelihoods of mutational configurations in non-recombining blocks. This work provides a crucial speed up for existing composite likelihood approaches that rely on the joint distribution of branch lengths to fit isolation with migration models and estimate the parameters of selective sweeps. The associated software is available as an open-source Python library, agemo. |
format | Online Article Text |
id | pubmed-9514611 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | Public Library of Science |
record_format | MEDLINE/PubMed |
spelling | pubmed-95146112022-09-28 Graph-based algorithms for Laplace transformed coalescence time distributions Bisschop, Gertjan PLoS Comput Biol Research Article Extracting information on the selective and demographic past of populations that is contained in samples of genome sequences requires a description of the distribution of the underlying genealogies. Using the Laplace transform, this distribution can be generated with a simple recursive procedure, regardless of model complexity. Assuming an infinite-sites mutation model, the probability of observing specific configurations of linked variants within small haplotype blocks can be recovered from the Laplace transform of the joint distribution of branch lengths. However, the repeated differentiation required to compute these probabilities has proven to be a serious computational bottleneck in earlier implementations. Here, I show that the state space diagram can be turned into a computational graph, allowing efficient evaluation of the Laplace transform by means of a graph traversal algorithm. This general algorithm can, for example, be applied to tabulate the likelihoods of mutational configurations in non-recombining blocks. This work provides a crucial speed up for existing composite likelihood approaches that rely on the joint distribution of branch lengths to fit isolation with migration models and estimate the parameters of selective sweeps. The associated software is available as an open-source Python library, agemo. Public Library of Science 2022-09-15 /pmc/articles/PMC9514611/ /pubmed/36108047 http://dx.doi.org/10.1371/journal.pcbi.1010532 Text en © 2022 Gertjan Bisschop https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. |
spellingShingle | Research Article Bisschop, Gertjan Graph-based algorithms for Laplace transformed coalescence time distributions |
title | Graph-based algorithms for Laplace transformed coalescence time distributions |
title_full | Graph-based algorithms for Laplace transformed coalescence time distributions |
title_fullStr | Graph-based algorithms for Laplace transformed coalescence time distributions |
title_full_unstemmed | Graph-based algorithms for Laplace transformed coalescence time distributions |
title_short | Graph-based algorithms for Laplace transformed coalescence time distributions |
title_sort | graph-based algorithms for laplace transformed coalescence time distributions |
topic | Research Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9514611/ https://www.ncbi.nlm.nih.gov/pubmed/36108047 http://dx.doi.org/10.1371/journal.pcbi.1010532 |
work_keys_str_mv | AT bisschopgertjan graphbasedalgorithmsforlaplacetransformedcoalescencetimedistributions |