Skip to main content

agricola

agricola is a command-line tool and Python package 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. Agricola is highly computationally efficient and can be run on GPU, CPU, or TPU compute environments.


Documentation

Full documentation, including examples, methods description, and details can be found here: https://frankp-0.github.io/agricola

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 address this gap by performing single-variant association tests with explicit local ancestry adjustment. agricola follows the same conceptual approach but uses whole genome regression to correct for sample relatedness. Other features include:

  • Accelerated linear algebra via JAX
  • CUDA GPU, TPU, or CPU support for flexible compute environments
  • Fast local ancestry queries using lanctools
  • Efficient multi-phenotype modeling
  • Hypothesis testing for ancestry effect heterogeneity

Installation

Requirements: Python 3.12+

Install via pip:

pip install agricola

For GPU or TPU support:

pip install agricola[cuda]
pip install agricola[tpu]

Release files for agricola 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agricola 1.3.1
File Size Uploaded
agricola-1.3.1.tar.gz 40.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agricola 1.3.1
File Interpreter ABI Platform
agricola-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 84.5 kB

Release files / agricola-1.3.1.tar.gz

Download URL agricola-1.3.1.tar.gz
Size 40.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e6e68d215230768072c6b2aa4ce984cdfd9760af76221ff5ebc4f3554d59d3f1
BLAKE2b-256 checksum
How to use checksums
33418fa0a845edc7c92b6ff925aaefbc8afbcf2919bf9c16681c3b928a6c9325
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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}

Release files / agricola-1.3.1-py3-none-any.whl

Download URL agricola-1.3.1-py3-none-any.whl
Size 44.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40a312b74a07d0fd90d30479ee59fe7aec7d050a26385dc5d3fcd3d2ef38c1f6
BLAKE2b-256 checksum
How to use checksums
32763d9cf049b1a2f9c91254b6b9a6677ffd9a70c04119e0921a7a3b6a60fb4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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}

Release history Release notifications | RSS feed

1.5.0

2 release files

1.4.0

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.2

2 release files

This release

1.3.1 This release

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page