Skip to main content

ASMC is a method to efficiently estimate pairwise coalescence time along the genome

Project description

Unit tests: Ubuntu Unit tests: macOS Python 3.8 3.11 Regression test Ubuntu asan Ubuntu no sse/avx codecov

ASMC and FastSMC

This repository contains ASMC and an extension, FastSMC, together with python bindings for both.

Quickstart

Install the Python module from PyPI

Most functionality is available through a Python module which can be installed with:

pip install asmc-asmc

Documentation

The following pages of documentation contains specific information:

This Python module is currently available on Linux and macOS.

Example Jupyter notebooks showcasing basic functionality can be found here:

License

ASMC and FastSMC are distributed under the GNU General Public License v3.0 (GPLv3). For any questions or comments on ASMC, please contact Pier Palamara using <lastname>@stats.ox.ac.uk.

Reference

If you use this software, please cite the appropriate reference(s) below.

The ASMC algorithm and software were developed in

  • P. Palamara, J. Terhorst, Y. Song, A. Price. High-throughput inference of pairwise coalescence times identifies signals of selection and enriched disease heritability. Nature Genetics, 2018.

The FastSMC algorithm and software were developed in

  • J. Nait Saada, G. Kalantzis, D. Shyr, F. Cooper, M. Robinson, A. Gusev, P. F. Palamara. Identity-by-descent detection across 487,409 British samples reveals fine-scale evolutionary history and trait associations. Nature Communications, 2020.

ASMC Release Notes

v1.3.1 (2023-06-30)

Breaking changes

None

Other changes

  • The location of a .map or .map.gz file can now be optionally specified explicitly: previously it was assumed to be at the inFileRoot.

v1.3 (2023-03-03)

Breaking changes

None

Other changes

  • Decoding a batch can now be done in a selected subregion with from / to indices. A cm_burn_in parameter takes into account additional variants on either side of the subregion for HMM burn-in.
  • Allow the user to access selected attributes of the DecodingParams and Data from the ASMC object.
  • Python continuous integration now uses Python 3.8 and 3.11 (previously 3.6 and 3.9)
  • Update Catch to v2.13.

v1.2 (2021-09-28)

All functionality for ASMC and FastSMC is now in this repository (link).

Breaking changes

  • Fixed an issue with demographic models. The CEU.demo demographic model and the decoding quantities for CEU+UKBB previously provided in the repository were mistakenly encoded as diploid rather than haploid. CEU.demo and CEU+UKBB decoding quantities have now been updated and can be found in this repository. Also see the manual for a note on how this affects analyses.

Other changes

  • New API for decoding pairs with ASMC. In addition to running full analyses as described in the ASMC paper, users can now decode specific pairs and get back a variety of summary statistics. See the ASMC python documentation for details.
  • New, more extensive, documentation is available.

v1.1 (2021-01-20)

Legacy repository

Improvements to documentation and default use. No changes to any core functionality.

Breaking changes

  • The hashing functionality, previously named GERMLINE, has been renamed to hashing. This includes the command line flag for turning this behaviour on/off, which is now --hashing.

Other changes

  • --hashing is now ON by default when running the FastSMC executable: previously, --GERMLINE was OFF by default.
  • Extra output, including the IBD segment length, posterior mean, and MAP, are now on by default. This behaviour can be toggled with the flags --segmentLength, --perPairPosteriorMeans, --perPairMAP.
  • An example script has been added to cpp_example/FastSMC_example_multiple_jobs.sh that demonstrates how to run FastSMC with multiple jobs simultaneously.
  • The README has been updated to focus on FastSMC functionality.
  • More robust checking is now used to verify the decoding quantities file is correct before reading it.
  • CMake will now, by default, build in Release mode (giving 03 optimisation on Linux). Previously, Debug was used by default.

v1.0 (2020-09-18)

Legacy repository

First public release of FastSMC, with functionality as described and used in this paper.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

asmc_asmc-1.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

asmc_asmc-1.3.1-cp311-cp311-macosx_10_15_x86_64.whl (984.8 kB view details)

Uploaded CPython 3.11 macOS 10.15+ x86-64

asmc_asmc-1.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

asmc_asmc-1.3.1-cp310-cp310-macosx_10_15_x86_64.whl (984.9 kB view details)

Uploaded CPython 3.10 macOS 10.15+ x86-64

asmc_asmc-1.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

asmc_asmc-1.3.1-cp39-cp39-macosx_10_15_x86_64.whl (984.8 kB view details)

Uploaded CPython 3.9 macOS 10.15+ x86-64

asmc_asmc-1.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

asmc_asmc-1.3.1-cp38-cp38-macosx_10_15_x86_64.whl (984.7 kB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

File details

Details for the file asmc_asmc-1.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for asmc_asmc-1.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9045a5d11ff776b6fd8dd9b70de5a33940e632acac4756cb17dd1a27a5833d56
MD5 71a1a5cfa6fb10d6e9114e04c38909f7
BLAKE2b-256 eae2ebe5205311a217216802b27f8a2ae13bdda126fa4c2cdafac3abe296eccf

See more details on using hashes here.

File details

Details for the file asmc_asmc-1.3.1-cp311-cp311-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for asmc_asmc-1.3.1-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 63d5193d80bd0b47521ab826489aad6495162563179c3d18ca6da69ce2d4f869
MD5 7c5863c7e9b7cac0b83aafee48a4a1e2
BLAKE2b-256 b31b80ab1f999e6e460ee6783c160554b91f77a04f2b027aa42db595c2f9d142

See more details on using hashes here.

File details

Details for the file asmc_asmc-1.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for asmc_asmc-1.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e0f8009da1fb284a4a75cff980433cbf4545151271d63b19d533cd51911a9d5c
MD5 5966edd15af3c45e3ca3b89b975e47b7
BLAKE2b-256 a7c92cf66edfe896bf6c0e7254a5eb7cc2bd5c77e3a97fe79ed281981dd4e06c

See more details on using hashes here.

File details

Details for the file asmc_asmc-1.3.1-cp310-cp310-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for asmc_asmc-1.3.1-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 b5a9c0f2f1596f886c3faba5f9e7ff2fc101e53a7043fe4ee1331d944ab38560
MD5 8709765f68ebfaf279a78c83107fa6b3
BLAKE2b-256 b96c65bf4278745ddb1201a45eff6ebf0996a4fed9f9aab11a38e957c281fd4a

See more details on using hashes here.

File details

Details for the file asmc_asmc-1.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for asmc_asmc-1.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6dad40025674dcfbd7c5dca940a4de443834b1e87409f4a052d133c6c3883a4f
MD5 d17f3aa9db3824db0bb564a4c545ecb9
BLAKE2b-256 e01b6da100e51f287e3436cc87abf5f6315afea36c4241115d31a5d7bcc3661e

See more details on using hashes here.

File details

Details for the file asmc_asmc-1.3.1-cp39-cp39-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for asmc_asmc-1.3.1-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 f92eb086ed488807eabe6a16472fe490b60e5b4f4953427a9b73685717937cd3
MD5 5b93e7d6f97f6a48a9c06aeaa96b83f4
BLAKE2b-256 a75d1111f94f24525c0d52a04707b430137d94b1a04ba9791a5ce3811d204cf9

See more details on using hashes here.

File details

Details for the file asmc_asmc-1.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for asmc_asmc-1.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8ca003c8c0df0a25ce3a11598138c75cea6f8a0ed853427fd2d5191db287046d
MD5 3105c7e43f4461849cf72d9a86a78ccf
BLAKE2b-256 0f54028042e879eda0d304c9638a5de333e0b67a9882d1341619be1459716257

See more details on using hashes here.

File details

Details for the file asmc_asmc-1.3.1-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for asmc_asmc-1.3.1-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 81e38fddc604294a6c668dec31dd5d1cd24556986b4ac6a9202eeb6e6ea74486
MD5 e6ef88e837a910ea780b86109b3ad606
BLAKE2b-256 dd776be80315b85a73655972961575defc02519f3a48db1b5e60a96488bd9964

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