Skip to main content

Laplace transformed coalescence times

Project description

agemo

PyPi Downloads Anaconda-Server Badge License Documentation Status

Agemo is an open-source tool with a python API that allows users to generate the Laplace Transform of the coalescence time distribution of a sample with a given demographic history. In addition, agemo provides ways to efficiently query that distribution, by using the fact that its generating function can be represented most simply as a directed graph with all possible ancestral states of the sample as nodes. Past implementations have not made full use of this, relying on computer algebra systems instead of graph traversal to process these recursive expressions.

So far, agemo has been used to compute the probabilities of the joint site frequency spectrum for blocks of a given size, under models of isolation and migration. Calculating these probabilities requires repeated differentiation of the generating function (Lohse et al, 2011) which suffers from an explosion in the number of terms when implemented naively. Using a closed-form expression for the coefficients of a series expansion of the equations associated with each edge of the graph, we can efficiently propagate these coefficients through the graph avoiding redundant operations.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agemo-0.0.3.tar.gz (22.1 kB view details)

Uploaded Source

File details

Details for the file agemo-0.0.3.tar.gz.

File metadata

  • Download URL: agemo-0.0.3.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for agemo-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0ca85f60f43335f5934907374d2c7d0171cfbc2cfaae7fbc113202e5b814feb1
MD5 069126aa160e75c34e83cefbd6c878b2
BLAKE2b-256 3d41fd56a9cba9b95191d228020edc65beb55d927f5a078c0dff17d6bac0b9b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page