Skip to main content

Ancestral recombination graph (ARG) data structure and operations

Project description

arg-needle-lib

This repository contains arg-needle-lib, which implements an ARG data structure and ARG-based analyses such as genealogy-wide association.

Quickstart

Install the Python module from PyPI

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

pip install arg-needle-lib

This Python module is currently available on Linux and macOS.

Documentation

Please see the ARG-Needle manual for all usage instructions and documentation.

License

arg-needle-lib is distributed under the GNU General Public License v3.0 (GPLv3). For any questions or comments on arg-needle-lib, please contact Pier Palamara using <lastname>@stats.ox.ac.uk.

Acknowledgements

arg-needle-lib is developed by (in alphabetical order) Arjun Biddanda, Fergus Cooper, Árni Freyr Gunnarsson, Pier Francesco Palamara, Sinan Shi, Brian C. Zhang, and Jiazheng Zhu.

Reference

If you use this software, please cite:

B. C. Zhang, A. Biddanda, Á. F. Gunnarsson, F. Cooper, P. F. Palamara, Biobank-scale inference of ancestral recombination graphs enables genealogical analysis of complex traits. Nature Genetics, 2023.

arg-needle-lib Release Notes

v1.1.0 (2024-09-26)

Major changes

  • Added methods for genotype mapping
    • map_genotype_to_ARG, taking a single genotype as a vector/list and a position
    • map_genotypes_to_ARG, taking a matrix of genotypes, and a vector/list of positions
  • Method to get sorted vector/list of positions from ARG object is renamed to get_site_positions from get_sites

Other changes

  • Improve documentation
  • Deserialization now performed in C++ rather than Python
  • Python infrastructure modernized to replace setup.py with pyproject.toml

v1.0.2 (2023-09-29)

Breaking changes

None

Other changes

  • Improve documentation.
  • Build Python wheels for macOS arm64 (Apple Silicon)
  • Build wheels for Python 3.12

v1.0.1 (2023-07-14)

Breaking changes

None

Other changes

  • Clean-up and release of the source code.
  • Improved mutation class.
  • Added from-to parameters to some functions.

v1.0.0 (2023-03-07)

Initial PyPI release of arg-needle-lib.

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

arg_needle_lib-1.1.0-cp312-cp312-manylinux_2_28_x86_64.whl (15.7 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.28+ x86-64

arg_needle_lib-1.1.0-cp312-cp312-macosx_14_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

arg_needle_lib-1.1.0-cp312-cp312-macosx_13_0_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

arg_needle_lib-1.1.0-cp311-cp311-manylinux_2_28_x86_64.whl (15.7 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.28+ x86-64

arg_needle_lib-1.1.0-cp311-cp311-macosx_14_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

arg_needle_lib-1.1.0-cp311-cp311-macosx_13_0_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

arg_needle_lib-1.1.0-cp310-cp310-manylinux_2_28_x86_64.whl (15.7 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

arg_needle_lib-1.1.0-cp310-cp310-macosx_14_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

arg_needle_lib-1.1.0-cp310-cp310-macosx_13_0_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

arg_needle_lib-1.1.0-cp39-cp39-manylinux_2_28_x86_64.whl (15.7 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

arg_needle_lib-1.1.0-cp39-cp39-macosx_14_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

arg_needle_lib-1.1.0-cp39-cp39-macosx_13_0_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

Details for the file arg_needle_lib-1.1.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for arg_needle_lib-1.1.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f0702cdd969a7b512d1e302a55c25382c9327ce7442191bfdd14f745ecbea8c7
MD5 c558477f7b7d1877a1f18f8b709e0ee4
BLAKE2b-256 399baadd85db7fc5f8e8f8f81e2f4f93bb14900238697d85ec70a7cdc1155f95

See more details on using hashes here.

File details

Details for the file arg_needle_lib-1.1.0-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for arg_needle_lib-1.1.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 fba866902df54409840e9990b774cad1d6bf829244668d37c83010cf43fe3d99
MD5 2824d393ca09ca9a4e4fae91b86926a7
BLAKE2b-256 ca7d070edecd5f41398224372b544f2da0a6dd00f5a9dad478c011808d937ab4

See more details on using hashes here.

File details

Details for the file arg_needle_lib-1.1.0-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for arg_needle_lib-1.1.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7531edfda604a749c967cd1496af4e11a7b8d36d5493c5c6ba36e16cc0f6b6e2
MD5 be4738482fc24af4eebed0e783ebec48
BLAKE2b-256 439529c0d22b1a1cda1ffbffcaa30fa41ff696d80cdfe49030766327e503bd41

See more details on using hashes here.

File details

Details for the file arg_needle_lib-1.1.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for arg_needle_lib-1.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 656ab8bc6a14764139088fbc5b84bb8cc4b4ae5c8a60f8037a0efc7d79b909a7
MD5 d5e91cbe84343ebbe0b6117aa2e9363d
BLAKE2b-256 41a3973165df7c34a00cf00af498ab5cf0792dcb16bcff12f986105ee8bd3943

See more details on using hashes here.

File details

Details for the file arg_needle_lib-1.1.0-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for arg_needle_lib-1.1.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ef5fe2316debf87e318d7f013bee88e6af304a8f93af4088f4ec5e5503e1c9a8
MD5 e0a5dc368089820c9b4ea8966551df39
BLAKE2b-256 b37774648f1ef07b94760c09727e6134beed8099cb48b73696f16a86492467b0

See more details on using hashes here.

File details

Details for the file arg_needle_lib-1.1.0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for arg_needle_lib-1.1.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b0510002f5d103d00e9dce6bad97d2bd8cd88957c09ade4fef8bc52f53c3d81a
MD5 3f5323478c579dcf17e9f726a52284ff
BLAKE2b-256 92934ac7b5f477d82249d1ea31f36159645a87d74673ed866786783d644dce7e

See more details on using hashes here.

File details

Details for the file arg_needle_lib-1.1.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for arg_needle_lib-1.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 371419f4678eb5da7f9fa9d32de8be9cfacc8570cc5e72ba3611ca2d187292d2
MD5 8c867d6e1b903ebfc65f3ae551b047d0
BLAKE2b-256 898396d86042e223bf003c3098269a763f66b343b8e265f0d98b573d0e5a7c1e

See more details on using hashes here.

File details

Details for the file arg_needle_lib-1.1.0-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for arg_needle_lib-1.1.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 68c20327c9dea7224a171698dc4e8eb63cead43b74cca95fb337a095b7170339
MD5 ba2b5322ba7d60896391324fa773866b
BLAKE2b-256 849e34ee256f217e97a4214bdb073c13721adf3d259f292eb524ccf9efd2336d

See more details on using hashes here.

File details

Details for the file arg_needle_lib-1.1.0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for arg_needle_lib-1.1.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 eba405027f12d69d377e4b33b97b0889dfbf70cffec29fcfd92e1585baeed1ac
MD5 8ce5b5b8b6c6cde78b7abb132de5c5c5
BLAKE2b-256 ab6c2ca4909efd76025c4fb46b1db3410b7d14b81d9844487930e80d3e88d8f4

See more details on using hashes here.

File details

Details for the file arg_needle_lib-1.1.0-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for arg_needle_lib-1.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 28b8ae849a6bfda599b1844818c983e85c87fc0b02d9a242b93adfdc5183ae9d
MD5 a19b8245294a4818a503119c957a5e78
BLAKE2b-256 da0d8948a17b170c66bab438aef187bfc75e729d46e47c847da0594ce621e043

See more details on using hashes here.

File details

Details for the file arg_needle_lib-1.1.0-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for arg_needle_lib-1.1.0-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 df28b5332277061793323b354cbd7fd0e64d99adaa260959ced2c0e499e350ad
MD5 d1090fc37c6d7ac9e11b8c6d51391478
BLAKE2b-256 f6339ad669940aaac97825082a90d9894a383fdd5590c2692f85d8d27bed9511

See more details on using hashes here.

File details

Details for the file arg_needle_lib-1.1.0-cp39-cp39-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for arg_needle_lib-1.1.0-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 1aca5ba89769fe9035052420abede829ed4cd39c8b5773754cbc69fd85f653d9
MD5 559ebab780087f16dd2284eae2ad7cd6
BLAKE2b-256 3802c1276f008db965ff0a49a79d92e7a8ae18e673a3c9ef580c690be858f72b

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