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.1 (2024-10-21)
Other changes
- Added
child_edges_at
method to ARGNode API, for parity for existing methods likeparent_edge_at
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
Built Distributions
File details
Details for the file arg_needle_lib-1.1.1-cp312-cp312-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: arg_needle_lib-1.1.1-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 15.7 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3e66b75581f8d90ecdd072015a9cdbe577bb3c1ffa896ded9659061c61bd525 |
|
MD5 | a21084a9560f9fb855a3016406569196 |
|
BLAKE2b-256 | 19adab04a5fe8cc782d93970be36f08a9a1beab180efc134aa1f6918478d962c |
File details
Details for the file arg_needle_lib-1.1.1-cp312-cp312-macosx_14_0_arm64.whl
.
File metadata
- Download URL: arg_needle_lib-1.1.1-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34513ea90032e0e7c7d62719184dcf336c4393209818fd47a5ac711846098501 |
|
MD5 | 2ba0b6e5394ccc2ef3c5a3f7abe2df6e |
|
BLAKE2b-256 | 115759a2dae2300dfc9b6107f7a50dd4d20be32f3b910da68eac175debfb479d |
File details
Details for the file arg_needle_lib-1.1.1-cp312-cp312-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: arg_needle_lib-1.1.1-cp312-cp312-macosx_13_0_x86_64.whl
- Upload date:
- Size: 2.7 MB
- Tags: CPython 3.12, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be1d796aa95f8190e4043a07d6def5e119a8299836de5625aa6745c60e9d6aa8 |
|
MD5 | 1cd950916e5099385c923fce418d755c |
|
BLAKE2b-256 | 67ab0c6481b16046bd0eaee2e864283409b078b3e57df6b2450d1114cd705a3d |
File details
Details for the file arg_needle_lib-1.1.1-cp311-cp311-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: arg_needle_lib-1.1.1-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 15.7 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e94059678e0184d66891839ef96302e079f9d69da335cf44a96aa33e88b2851 |
|
MD5 | 0fb32d456ff4d5a44abac004d8f01a9b |
|
BLAKE2b-256 | 7b2c5d297b613584923cc8f37fb06559e0bbd922f155171f0096c441d7966a29 |
File details
Details for the file arg_needle_lib-1.1.1-cp311-cp311-macosx_14_0_arm64.whl
.
File metadata
- Download URL: arg_needle_lib-1.1.1-cp311-cp311-macosx_14_0_arm64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.11, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84f014fb3c9fbc49f863ad60a38ab047dbef191db910ac52eb655b51cdac5500 |
|
MD5 | ec49e05c3a35854c82847ebf55009d40 |
|
BLAKE2b-256 | 29814a9bfa88a3a7b2c3c15075611d70199f50919b4467f9b2d29905d412e806 |
File details
Details for the file arg_needle_lib-1.1.1-cp311-cp311-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: arg_needle_lib-1.1.1-cp311-cp311-macosx_13_0_x86_64.whl
- Upload date:
- Size: 2.7 MB
- Tags: CPython 3.11, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7089a0c44be719f9391b3a8cf316e3dc270efb86a9d57a10831f6f1723c6fb0c |
|
MD5 | d17f2e821974a8b418511f86f3f97e2c |
|
BLAKE2b-256 | a4b6134678ecf6a8002f64adb6c18d6622ba8baad604621f49686b4e68b96f62 |
File details
Details for the file arg_needle_lib-1.1.1-cp310-cp310-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: arg_needle_lib-1.1.1-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 15.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af5aa2462c99c4ad710cd7b197bd45c9d959d92e44491b4a3ca6adbcb011488b |
|
MD5 | 1334573786bace15459c5c69340dafb0 |
|
BLAKE2b-256 | 036396eea42cac7f844b9feb309aafe5cb6f3ec6eafb1ef73a0a678b904232ea |
File details
Details for the file arg_needle_lib-1.1.1-cp310-cp310-macosx_14_0_arm64.whl
.
File metadata
- Download URL: arg_needle_lib-1.1.1-cp310-cp310-macosx_14_0_arm64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.10, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8af6c18a521f4f3ac6533402755d7ba17b35c2f6127fed1b80fbd38bac625539 |
|
MD5 | ec5fa34a16ba157a8e46d1e41c394701 |
|
BLAKE2b-256 | 9e24bfb055ba71bedd25c8929c1247cb7cc61be62c05bcac828969c3b9ccd519 |
File details
Details for the file arg_needle_lib-1.1.1-cp310-cp310-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: arg_needle_lib-1.1.1-cp310-cp310-macosx_13_0_x86_64.whl
- Upload date:
- Size: 2.7 MB
- Tags: CPython 3.10, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65f6f8b75ece7c5ccbeb71ec8bcc3fa58547aba9f0d5cda8a5ccf7b375c1fd71 |
|
MD5 | a7a2d7c90fde4982ae361a7a944aea91 |
|
BLAKE2b-256 | f1aeb7ffc86376148870c8fe771057c47404617e650d7e1f77c18978c5cabf36 |
File details
Details for the file arg_needle_lib-1.1.1-cp39-cp39-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: arg_needle_lib-1.1.1-cp39-cp39-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 15.7 MB
- Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19ba7df59782ecf32e7ba315ee9784314e8c940515e22a418b015020459208e7 |
|
MD5 | 51c7893f19f4e47eeff9532c6a214e30 |
|
BLAKE2b-256 | 5002bfc29a436f039d43ee545e9183b7b8ad66558c197d6aa10df04bd6dfa2cd |
File details
Details for the file arg_needle_lib-1.1.1-cp39-cp39-macosx_14_0_arm64.whl
.
File metadata
- Download URL: arg_needle_lib-1.1.1-cp39-cp39-macosx_14_0_arm64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.9, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 214a791634c96881c505ff66fcdd26dfe2f6fff84fa5bdb8defa58bb74512953 |
|
MD5 | 23e07fc534f58fbbb6f64a037395a810 |
|
BLAKE2b-256 | 074902657afa19e34a3e458c6fb464be08033ecae1d9b6f0798c992b80e0ccfc |
File details
Details for the file arg_needle_lib-1.1.1-cp39-cp39-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: arg_needle_lib-1.1.1-cp39-cp39-macosx_13_0_x86_64.whl
- Upload date:
- Size: 2.7 MB
- Tags: CPython 3.9, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec8597ea4c40b06815545d31fe64785c87382bb3c77deeb3655d37f59747c3f8 |
|
MD5 | 5d43e5ad7080b7d75e568f9f4c4e610e |
|
BLAKE2b-256 | 4b3aa9654e4decc80c3bb353fcac374cd2975f626822eaf0a7dc1f1f9d32c5d6 |