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 hashes)

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 hashes)

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 hashes)

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 hashes)

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 hashes)

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 hashes)

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 hashes)

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 hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

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