editor_options: markdown: wrap: 72
README
🧬 Local Ancestry Analysis Notebook
LAAX (Local Ancestry Analysis in Crossbred Populations) is a comprehensive Python package for genome-wide local ancestry inference in crossbred populations. It integrates PLINK, ADMIXTURE, and LAMP into a streamlined, automated pipeline.
🚀 Features
-
Automated Pipeline: End-to-end local ancestry analysis
-
Quality Control: Robust filtering and preprocessing with PLINK
-
Global Ancestry: Population structure analysis using ADMIXTURE
-
Local Ancestry: Fine-scale ancestry segments with LAMP
-
Interactive Notebook: Original Colab notebook for exploratory analysis
-
Visualization: Comprehensive plots and summary statistics
-
Dual Usage: Available as both Python package and Google Colab notebook
📦 Installation
From PyPI
pip install laax
⚙️ Dependencies
LAAX requires these external tools to be installed and available in your system PATH:
-
PLINK (v1.9+): For genotype data processing
-
ADMIXTURE: For global ancestry estimation
-
LAMP: For local ancestry inference
🏁 Quick Start
Basic Usage:
laax --target MyBreed
--ancestors Anc1 Anc2
--input genotypes
--chr-set 30
--output my_results
Advanced Usage:
laax --target MyBreed
--ancestors Anc1 Anc2
--input genotypes
--chr-set 30
--output my_results
--maf 0.05
--hwe 1e-6
--geno 0.1
--mind 0.1
💡 Command Line Usage
laax --target TARGET --ancestors ANCESTOR1 ANCESTOR2 --input INPUT [options]
Required Arguments:
-
--target TARGET: Target population name -
--ancestors ANCESTORS ANCESTORS: Two ancestral population names -
--input INPUT: PLINK file prefix (without .bed/.bim/.fam extension) -
--chr-set:Number of chromosomes (default: 26)
Optional Arguments:
-
--output OUTPUT: Output directory (default: laax_results) -
--maf MAF: Minor allele frequency threshold (default: 0.05) -
--hwe HWE: HWE threshold (default: 1e-6) -
--geno GENO: SNP missingness threshold (default: 0.1) -
--mind MIND: Individual missingness threshold (default: 0.1) -
--plink-path PLINK_PATH: Path to PLINK executable (auto-detected) -
--admixture-path ADMIXTURE_PATH: Path to ADMIXTURE executable (auto-detected) -
--lamp-path LAMP_PATH: Path to LAMP executable (auto-detected)
📊 Output
The pipeline generates the following outputs in the specified output directory:
-
✅ Quality-controlled genotype data (PLINK format)
-
🌍 Global ancestry proportions (ADMIXTURE Q-files)
-
🧬 Local ancestry segments (LAMP output)
-
📈 Ancestry visualization plots
-
📋 Summary statistics and composition reports
-
🔍 Significant genomic regions
-
📝 Pipeline execution logs and configuration
🛠 Troubleshooting
Common Issues:
-
Tool not found: Ensure PLINK, ADMIXTURE, LAMP are in system PATH or specify paths explicitly
-
Memory errors: Use smaller datasets or increase system memory
-
Installation fails: Try
pip install --upgrade laax -
File format errors: Verify PLINK binary format (.bed, .bim, .fam) exists
-
Chromosome set mismatch: Adjust
--chr-setparameter for your organism
👨🔬 About the Author
Dr. Kanaka K. K., PhD, ARS
Scientist
School of Bioinformatics and Computational Biology ICAR-Indian
Institute of Agricultural Biotechnology,
Ranchi > Be like
IIAB!:
IIAB is like yogic center where all the sciences (Plant, Animal,
Aquatic,Mibrobiology, IT) meet to address emerging issues in food
production.
🔎 Spy on me
Metadata
Release files for laax 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| laax-1.0.0.tar.gz | 30.8 kB | Without provenance | Details for laax-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| laax-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for laax-1.0.0-py3-none-any.whl |
Total release size: 61.7 kB
Release files / laax-1.0.0.tar.gz
| Download URL | laax-1.0.0.tar.gz |
|---|---|
| Size | 30.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39cf953c60965878415af4bb649eebc8cdc4afde407d48d4df2271f21deb6c39
|
|
BLAKE2b-256 checksum How to use checksums |
da4c04c97f374f43221ba6b796a8e148141fd908633a842bac2fb4cad2c90a09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / laax-1.0.0-py3-none-any.whl
| Download URL | laax-1.0.0-py3-none-any.whl |
|---|---|
| Size | 30.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8016e668384d54bf7b7ec104de1b51c130ecba163fc584baf7932e3b89103960
|
|
BLAKE2b-256 checksum How to use checksums |
451f81cd41846ed5468e0d3a5b1c24ca339ab7cf5e45bbe63d1ac647e666e328
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for laax 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.