Admixed GWAS for Related Individuals Conditioning On Local Ancestry
Project description
agricola
agricola is a Python package and command-line tool for conducting genome-wide association studies (GWAS) in admixed populations. Inspired by regenie and Tractor, agricola provides a scalable, local-ancestry–aware framework that handles relatedness, population structure, and ancestry effect heterogeneity.
Full documentation can be found here
Why agricola?
Admixed individuals have unique LD patterns that can improve signal localization and improve power for population-specific causal variants. However, standard GWAS tools fail to adjust for local ancestry or model effect heterogeneity in admixed individuals.
Tools like Tractor and SAIGE-Tractor address this gap. agricola follows the same conceptual approach-performing single-variant association tests with explicit local ancestry adjustment-but combines it with:
- Accelerated linear algebra via JAX
- CUDA GPU, TPU, or CPU support for flexible compute environments
- Efficient local ancestry queries using lanctools
- Multi-phenotype modeling
- Adjustment for sample relatedness
Installation
Requirements: Python 3.10+
Install via pip:
pip install agricola
For GPU or TPU support:
pip install agricola[cuda]
pip install agricola[tpu]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agricola-0.4.0.tar.gz.
File metadata
- Download URL: agricola-0.4.0.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41c906c323692625046a154602ff466b66019be19e3ffc19c515ce0503dabab2
|
|
| MD5 |
3435d1eb40710720018ff8788b1b09b6
|
|
| BLAKE2b-256 |
f17d93c1f1143184abd1f3f67d98b85fd8888ac5816a7e63b803dfafa6d61769
|
File details
Details for the file agricola-0.4.0-py3-none-any.whl.
File metadata
- Download URL: agricola-0.4.0-py3-none-any.whl
- Upload date:
- Size: 26.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c699e227d95c3e0248951a0a8dfc6f498738011c9ace30c47d0f4684302473d6
|
|
| MD5 |
7b60ce333e7041ebccc470b29981d4ba
|
|
| BLAKE2b-256 |
b61362d2080ed00ad7fe8a5b57215823e34a232c21364e3996ba9870a92f1af9
|