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.6 3.9 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.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

If you're not sure about the file name format, learn more about wheel file names.

asmc_asmc-1.2-cp39-cp39-manylinux2014_x86_64.whl (979.8 kB view details)

Uploaded CPython 3.9

asmc_asmc-1.2-cp39-cp39-macosx_10_15_x86_64.whl (638.4 kB view details)

Uploaded CPython 3.9macOS 10.15+ x86-64

asmc_asmc-1.2-cp38-cp38-manylinux2014_x86_64.whl (979.8 kB view details)

Uploaded CPython 3.8

asmc_asmc-1.2-cp38-cp38-macosx_10_15_x86_64.whl (638.4 kB view details)

Uploaded CPython 3.8macOS 10.15+ x86-64

asmc_asmc-1.2-cp37-cp37m-manylinux2014_x86_64.whl (988.5 kB view details)

Uploaded CPython 3.7m

asmc_asmc-1.2-cp37-cp37m-macosx_10_15_x86_64.whl (638.4 kB view details)

Uploaded CPython 3.7mmacOS 10.15+ x86-64

asmc_asmc-1.2-cp36-cp36m-manylinux2014_x86_64.whl (988.4 kB view details)

Uploaded CPython 3.6m

asmc_asmc-1.2-cp36-cp36m-macosx_10_15_x86_64.whl (638.5 kB view details)

Uploaded CPython 3.6mmacOS 10.15+ x86-64

File details

Details for the file asmc_asmc-1.2-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

  • Download URL: asmc_asmc-1.2-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 979.8 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for asmc_asmc-1.2-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b8372e1014109a6fff6d01ab729bb68a125baa41f3da4f18e311251f0159492f
MD5 727c65ff56e481d3b566006a0cf57cea
BLAKE2b-256 b4e052e384edbccda03d2d3951ec3cc6a3d3b7c094e5b654ccfe6c995e41ca14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asmc_asmc-1.2-cp39-cp39-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 638.4 kB
  • Tags: CPython 3.9, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for asmc_asmc-1.2-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 6fd1c1dbfe490f44c1ba4a1016044db2f2fe748fa6d7685c65bbc7a988426c6c
MD5 06a25e301d7e0ab66393aa1318fafaf4
BLAKE2b-256 9f433b226cd0178bf430e3a574854cc83939e506be53363eab94fcebeea10b1e

See more details on using hashes here.

File details

Details for the file asmc_asmc-1.2-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: asmc_asmc-1.2-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 979.8 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for asmc_asmc-1.2-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c49729982d11b14f80fa0e01909d660622dd784bb82e3dc19f1e883cd6385b79
MD5 62d684cc688c7ca9a5feb9c811104815
BLAKE2b-256 9440711c22fdacc1095f9413d3170f50b77a1310588c450a5d4587aed7f29bae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asmc_asmc-1.2-cp38-cp38-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 638.4 kB
  • Tags: CPython 3.8, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for asmc_asmc-1.2-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 f68d8e1a0a32dcd2466fbde3ecd6684904cbba08514d09496ef22ca04fe265d3
MD5 5a47407a3aedf2d5734c8e1b4404cc8a
BLAKE2b-256 9e3d1e5f9b6416bb8b5028b08da4ee7065085e8711e009027bcb7239e0bdfc8c

See more details on using hashes here.

File details

Details for the file asmc_asmc-1.2-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: asmc_asmc-1.2-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 988.5 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for asmc_asmc-1.2-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cfa08d2894442954997411feadc97413e66e660a05d079303ad2ad09e7b7c230
MD5 def9a7457c023a5fa9b51529af52b61c
BLAKE2b-256 9a8e1ee5421fda372698811fb3614174b0ce36d70b0e869d0963dd06edd62026

See more details on using hashes here.

File details

Details for the file asmc_asmc-1.2-cp37-cp37m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: asmc_asmc-1.2-cp37-cp37m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 638.4 kB
  • Tags: CPython 3.7m, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for asmc_asmc-1.2-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 bb511526cfa7586ffef7336ae92eac63aa061d5c740faf34bc9571377d1b1e7b
MD5 931e99a8ea63979c2489ae629e88b235
BLAKE2b-256 f32ddbb041daebf9bc8fe4522405cbeb6a9558fa65bf276567019f9d3abe116c

See more details on using hashes here.

File details

Details for the file asmc_asmc-1.2-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: asmc_asmc-1.2-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 988.4 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for asmc_asmc-1.2-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 65bf3db09e614d1bd0f48100e00122177b9825cfe82a39b463108a856f143dd1
MD5 578147c7a45443a41d24f0d0d1d709b4
BLAKE2b-256 7ed38cd5d2e0e0113e54a76c9e7432feba25440a39712cbeab975876c780ed90

See more details on using hashes here.

File details

Details for the file asmc_asmc-1.2-cp36-cp36m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: asmc_asmc-1.2-cp36-cp36m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 638.5 kB
  • Tags: CPython 3.6m, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for asmc_asmc-1.2-cp36-cp36m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 733e7680dfa641b0842b0dea729276e1e3056886b9e414d938df606c14b2f651
MD5 3c3f0f0cd53916abc4ac5caab12a5b8e
BLAKE2b-256 649f83e39909f8fb9458b0ae5bb7f4fa603e1ab7d8bab2b6f0365418aa435fe4

See more details on using hashes here.

Supported by

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