Skip to content

Ascertained Sequentially Markovian Coalescent

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
COPYING
Notifications You must be signed in to change notification settings

PalamaraLab/ASMC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

60e290c · Nov 21, 2024
Nov 21, 2024
Feb 17, 2023
Sep 24, 2021
Aug 5, 2021
Sep 23, 2021
Jul 30, 2021
Sep 22, 2023
Jul 30, 2021
Mar 3, 2023
Feb 28, 2023
Jun 30, 2023
Jun 30, 2023
Feb 28, 2023
Jul 30, 2021
Jul 30, 2021
Jun 23, 2023
Sep 23, 2021
Sep 22, 2023
Jun 30, 2023
Jul 23, 2021
Jul 23, 2021
Mar 3, 2023
Sep 22, 2023
Jun 30, 2023
Jun 30, 2023
Feb 28, 2023

Repository files navigation

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.

The following pages of documentation contains specific information:

Installation

ASMC and FastSMC are regularly built and tested on Ubuntu and macOS. They consist of a C++ library, C++ executables, and optional Python bindings.

The C++ libraries and executables require:

  • A C++ compiler (C++17 or later)
  • CMake (3.15 or later)
  • Boost (1.62 or later)
  • Eigen (3.3.4 or later)
  • {fmt}
  • range-v3
  • OpenMP
  • zlib

We recommend installing dependencies using vcpkg, distributed with this repository as a submodule. Information below.

Building the optional Python bindings additionally requires:

  • Python (3.6 or later) with development files
  • PyBind11 (distributed with this repository as a submodule)

Quickstart guides

Decoding Quantities

Decoding quantities files are required in order to run ASMC and FastSMC. These can be generated directly from a Python module, and instructions can be found here. Input and output file formats for the tool used to create decoding quantities are described here.

Note: the CEU.demo demographic model and the decoding quantities for CEU+UKBB previously provided in this repository and this repository were mistakenly encoded as diploid rather than haploid. The file CEU.demo and CEU+UKBB decoding quantities here have now been fixed. They were generated using v2.2.1 of the PrepareDecoding tool, which also provides a simpler interface for computing decoding quantities as well as support for additional demographic models. Using these new decoding quantities with v1.2 of ASMC will tend to produce more recent estimates for TMRCAs compared to the decoding quantities distributed with v1.0 and v1.1. This should not have a substantial impact on most downstream analyses.

For developers: making a release

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.