gwas-pipeline
End-to-end GWAS automation wrapping PLINK2 for genotype QC and REGENIE for two-step whole-genome regression association testing.
Skill by Reza
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/clawbio-gwas-pipeline
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, data, sales
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/gwas-pipeline
What's inside
- Skill name
gwas-pipeline- Description
- 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.
- License
- MIT
- Metadata
- author: Reza · version: 0.1.0
- Instructions
- 97 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (11)
- SKILL.md
- covariates.txt · example_data/
- example.bed · example_data/
- example.bgen · example_data/
- example.bim · example_data/
- example.fam · example_data/
- phenotype_bin.txt · example_data/
- test_bin_out_firth_Y1.regenie · example_data/
- gwas_pipeline.py
- __init__.py · tests/
- test_gwas_pipeline.py · tests/
SKILL.md (first lines)
# 📊 GWAS Pipeline 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. ## Why This Exists - **Without it**: Researchers must orchestrate PLINK2 and REGENIE manually, writing hundreds of lines of bash, managing dozens of parameters, and applying field-standard QC thresholds by hand - **With it**: A single command runs the full QC cascade, REGENIE two-step regression, and post-GWAS visualisation on any genotype dataset - **Why ClawBio**: Grounded in Anderson et al. (2010) QC thresholds and Mbatchou et al. (2021) REGENIE methodology — not ad hoc parameter choices. Every command logged for reproducibility ## Core Capabilities 1. **Genotype QC via PLINK2**: Sample/variant missingness, MAF, HWE, LD pruning 2. **REGENIE Step 1**: Whole-genome ridge regression with LOCO predictions 3. **REGENIE Step 2**: Single-variant association (Firth logistic / linear) 4. **Visualisation**: Manhattan plot, QQ plot with lambda GC 5. **Post-GWAS**: Lead variant extraction at genome-wide significance (P < 5e-8) 6. **Reproducibility**: Full command logging, parameter tracking, software versions ## Input Formats | 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` | ## Workflow 1. **Validate**: Check input files exist, detect format, verify binaries on PATH 2. **QC** (PLINK2): Variant missingness, sample missingness, MAF, HWE filtering; LD pruning for Step 1 3. **Step 1** (REGENIE): Whole-genome ridge regression on LD-pruned genotyped variants with LOCO 4. **Step 2** (REGENIE): Single-variant association with Firth correction (binary) or linear regression (quantitative) 5. **Post-GWAS**: Parse results, compute lambda GC, extract lead variants, generate plots 6. **Report**: Write report.md, result.json, summary statistics TSV, and reproducibility bundle ## CLI Reference ```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 ``` ## Demo ```bash python 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. ## Dependencies **Required** (external binaries): - `plink2` >= 2.0 — genotype QC and LD operations - `regenie` >= 3.0 — two-step whole-genome regression Install 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 plots - `numpy` >= 1.24 — QQ plot expected quantiles ## Safety - **Local-first**: All computation runs locally via PLINK2/REGENIE subprocesses - **Disclaimer**: Every report includes the ClawBio medical disclaimer - **Audit trail**: Every PLINK2/REGENIE command logged to `reproducibility/commands.sh` - **No hallucinated science**: All QC thresholds trace to Anderson et al. 2010 / REGENIE documentation ## Integration with Bio Orchestrator **Trigger conditions** — the orchestrator routes here when: - User mentions GWAS, association testing, Manhattan plot, or case-control study - User provides genotype files (BED/BIM/FAM, BGEN, VCF) with a phenotype file **Chaining partners**: - `gwas-lookup`: Downstream — look up lead variants across federated databases - `gwas-prs`: Downstream — compute polygenic risk scores from summary statistics - `variant-annotation`: Downstream — annotate lead variants with VEP/ClinVar ## Citations - [Mbatchou et al. (2021)](https://pubmed.ncbi.nlm.nih.gov/34017140/) — REGENIE: computationally efficient whole-genome regression. *Nature Genetics* 53:1097–1103 - [Chang et al. (2015)](https://pubmed.ncbi.nlm.nih.gov/25722852/) — Second-generation PLINK. *GigaScience* 4:7 - [Anderson et al. (2010)](https://pubmed.ncbi.nlm.nih.gov/21085122/) — Data quality control in genetic case-control association studies. *Nature Protocols* 5:1564–1573
From ClawBio/ClawBio, MIT.
More from ClawBio/ClawBio
- 0.825score
polars-bio
ClawBio (adapted from K-Dense scientific-agent-skills/polars-bio)
Fast genomic interval operations (overlap, nearest, merge, coverage, cluster, complement, subtract, count-overlaps), multi-format bioinformatics I/O…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
ena-fetch
Nikolai Hecker, UK Dementia Research Institute
Query metadata and download sequencing data from the European Nucleotide Archive (ENA) via the Portal and Browser APIs.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
gi-expression
ClawBio + Genomic Intelligence
Predict tissue / cell-type expression (log TPM + TPM) from 9,198–500,000 bp of DNA around a TSS, at least 4,599 bp each side (anything but exactly 9,198 bp…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
geo-fetch
Nikolai Hecker, UK Dementia Research Institute
Query metadata and download data from the NCBI Gene Expression Omnibus (GEO).
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
ukb-ppp-region-fetch
ClawBio
Fetch a regional slice of plasma pQTL summary statistics from the UK Biobank Pharma Proteomics Project (UKB-PPP; Sun 2023 Nature) for a specific (protein…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
eqtl-catalogue-region-fetch
ClawBio
Fetch a region of cis-eQTL summary statistics from EBI eQTL Catalogue v7+ via tabix-on-FTP.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
protocols-io
ClawBio Contributors
Search, browse, and retrieve scientific protocols from protocols.io via REST API.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
gwas-sumstats-harmonize
AlsammanAlsamman
Harmonize GWAS summary statistics from any common format (GWAS-Catalog SSF, PLINK 1.9/2, REGENIE, METAL, BOLT, SAIGE) to one canonical table (SNP CHR BP EA…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
prs-applicability-gate
Rinat Rizvanov
Deterministic gate for ONE already-computed polygenic score result and ONE person: returns SUPPORTED (raw score, standardised score and reference percentile…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
pride-fetch
Nikolai Hecker, UK Dementia Research Institute
Query metadata and download data from the PRIDE Archive, EMBL-EBI's proteomics identifications database, via the PRIDE Archive REST API v3.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
wgs-prs
David de Lorenzo
End-to-end WGS to polygenic risk score pipeline.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
biostudies-fetch
Nikolai Hecker, UK Dementia Research Institute
Query metadata and download data from EMBL-EBI BioStudies, the database that describes biological studies and links their data across collections…
SkillAFreshness: A★ 1.2KClaude Code +9
Signals
- Stars
- 1,166
- Forks
- 288
- Open issues
- 27
- Last commit (this folder)
- Apr 24, 2026 (6 months ago)
- Last release
- Sep 11, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 0.1.0
- License
- MIT
- Repository
- github.com/ClawBio/ClawBio
- Website
- clawbio.github.io/ClawBio/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Reza
- 0.819score
mendelian-randomisation
Reza
Two-sample Mendelian Randomisation from GWAS summary statistics with IVW, MR-Egger, weighted median/mode, and full sensitivity analysis (Cochran Q, Egger…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.819score
clinical-variant-reporter
Reza
Classify germline variants from VCF/BCF files according to the ACMG/AMP 2015 28-criteria evidence framework and generate clinical-grade interpretation reports…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.819score
affinity-proteomics
Reza
Unified analysis pipeline for affinity-based proteomics platforms — Olink (PEA, NPX) and SomaLogic SomaScan (SOMAmer, RFU).
SkillAFreshness: A★ 1.2KClaude Code +9
Cite this page
gwas-pipeline skill. Agent Mart. https://agentmart.dev/skills/clawbio-gwas-pipeline (last updated 2026-10-24)