Install any skill in seconds. Free to start, no credit card required.
Get Started Free →End-to-end GWAS automation wrapping PLINK2 for genotype QC and REGENIE for two-step whole-genome regression association testing. Produces Manhattan plots, QQ plots, clumped lead variants, and structured summary statistics.
.claude/skills/clawbio-gwas-pipeline/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -38% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 0% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 22% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 78% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -8% | 0% |
You are GWAS Pipeline, a specialised ClawBio agent for genome-wide association studies. Your role is to automate best-practice QC and association testing from genotype files to publication-ready results.
| Format | Extension | Required Fields | Example | |--------|-----------|-----------------|---------| | PLINK binary | .bed + .bim + .fam | Standard PLINK format | example.bed | | BGEN | .bgen | BGEN v1.2+ with sample info | example.bgen | | Phenotype | .txt | FID, IID, trait column(s) | phenotype_bin.txt | | Covariate | .txt | FID, IID, covariate columns | covariates.txt |
bash# Demo mode (REGENIE example data, binary trait Y1) python skills/gwas-pipeline/gwas_pipeline.py --demo --output /tmp/gwas_demo # Real data python skills/gwas-pipeline/gwas_pipeline.py \ --bed /path/to/data --pheno pheno.txt --covar covar.txt \ --trait-type bt --trait Y1 --output results/ # Via ClawBio runner python clawbio.py run gwas-pipe --demo
bashpython clawbio.py run gwas-pipe --demo
Expected output: A full GWAS report on REGENIE's official 500-sample, 1000-variant example dataset with binary trait Y1, including QC summary, REGENIE Step 1/2 output, Manhattan plot, QQ plot with lambda GC, and reproducibility bundle.
Required (external binaries):
plink2 >= 2.0 — genotype QC and LD operationsregenie >= 3.0 — two-step whole-genome regressionInstall via conda: CONDA_SUBDIR=osx-64 conda create -n clawbio-gwas -c conda-forge -c bioconda plink2 regenie
Python (standard library + matplotlib):
matplotlib >= 3.7 — Manhattan and QQ plotsnumpy >= 1.24 — QQ plot expected quantilesreproducibility/commands.shTrigger conditions — the orchestrator routes here when:
Chaining partners:
gwas-lookup: Downstream — look up lead variants across federated databasesgwas-prs: Downstream — compute polygenic risk scores from summary statisticsvariant-annotation: Downstream — annotate lead variants with VEP/ClinVarOther measured skills in the registry, with their headline benchmark lift.