Agent skill

Gwas Pipeline

by ClawBio in ClawBio/ClawBio

End-to-end GWAS automation wrapping PLINK2 for genotype QC and REGENIE for two-step whole-genome regression association testing.

MITAuto-check passedResearch & Science

Install Gwas Pipeline

skills CLI
$ npx skills add ClawBio/ClawBio --skill gwas-pipeline -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ClawBio/ClawBio gwas-pipeline --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ClawBio/ClawBio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/gwas-pipeline .claude/skills/gwas-pipeline && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gwas-pipeline
GitHub stars
1.2k
Used in
1 other repo
Token cost
~1.4k tokens
SKILL.md length
499 words
Files
11
Skills in repo
104
Repo updated
First seen
Licence
MIT

At a glance

End-to-end GWAS automation wrapping PLINK2 for genotype QC and REGENIE for two-step whole-genome regression association testing.

  • Works in 6 steps: Genotype QC via PLINK2: Sample/variant… → REGENIE Step 1: Whole-genome ridge… → REGENIE Step 2: Single-variant… → …
  • Tasks that involve Bioinformatics
  • SKILL.md covers Why This Exists, Core Capabilities, Input Formats and Workflow, plus 6 more sections
  • Runs Python scripts from its folder; calls python and conda

What it does

Gwas Pipeline is an agent skill from ClawBio/ClawBio. 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.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files (for example `gwas_pipeline.py`, `tests/__init__.py` and `tests/test_gwas_pipeline.py`).

It sits in Research & Science, covering Bioinformatics and Data analysis. The repository describes itself as: 🦖 ClawBio - The first bioinformatics-native AI agent skill library. Local-first. Reproducible. Open. Free. The licence is MIT.

When your agent uses it

  • Tasks that involve Bioinformatics
  • Tasks that involve Data analysis

Example prompts

  • “/gwas-pipeline”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit dece754. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • conda

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • pubmed.ncbi.nlm.nih.gov

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gwas Pipeline loads about 1.4k tokens when it runs. Until then it costs about 59 tokens; SKILL.md has 499 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~59
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ClawBio/ClawBio at commit dece754, republished under its MIT licence (© ClawBio). 499 words, ~1,416 tokens.

Download SKILL.mdSave it as .claude/skills/gwas-pipeline/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.
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.version
0.1.0
metadata.author
Reza
metadata.tags
gwas, association-testing, regenie, plink2, population-genetics, biobank, quality-control

📊 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

FormatExtensionRequired FieldsExample
PLINK binary.bed + .bim + .famStandard PLINK formatexample.bed
BGEN.bgenBGEN v1.2+ with sample infoexample.bgen
Phenotype.txtFID, IID, trait column(s)phenotype_bin.txt
Covariate.txtFID, IID, covariate columnscovariates.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
Show full SKILL.md (215 more words)Show less

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

© ClawBio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 10 other files in skills/gwas-pipeline of ClawBio/ClawBio.

  • SKILL.md
  • example_data/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
  • gwas_pipeline.py
  • tests/__init__.py
  • tests/test_gwas_pipeline.py

Open the folder on GitHubat commit dece754

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in ClawBio/ClawBio, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Gwas Pipeline next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gwas Pipeline compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gwas Pipeline this skillClawBio/ClawBio1.2k1 repos~1.4kAutomated safety check: PassMIT
Scanpy Single-Cell Analysisdavila7/claude-code-templates33k15 repos~2.8kAutomated safety check: PassMIT
Single-Cell Initial AnalysisLigphiDonk/Oh-my--paper7391 repos~1.4kAutomated safety check: PassMIT
Tooluniverse Polygenic Risk Scorewu-yc/LabClaw1.1k2 repos~3.7kAutomated safety check: PassNone
Lncrna Regulatory Network Construction Analysisaipoch/medical-research-skills1.9k—~2.7kAutomated safety check: PassMIT
Bio Population Genetics Linkage DisequilibriumGPTomics/bioSkills1.2k1 repos~4.7kAutomated safety check: PassMIT

Similar skills

  • Scanpy Single-Cell Analysis

    davila7/claude-code-templates

    Walks through single-cell RNA-seq analysis with Scanpy: loading .h5ad and 10X data, QC, normalization, PCA and UMAP, Leiden clustering, marker genes and cell type annotation.

    33k GitHub starsUsed in 15 repos~2.8k tokens
    Research & ScienceAuto-check passed
  • Single-Cell Initial Analysis

    LigphiDonk/Oh-my--paper

    Runs a seven-step quality-control and exploration pipeline on scRNA-seq, CyTOF or flow cytometry data and writes a plain-language report of what it found.

    739 GitHub starsUsed in 1 repo~1.4k tokens
    Research & ScienceAuto-check passed
  • Build and interpret polygenic risk scores (PRS) for complex diseases using GWAS summary statistics.

    1.1k GitHub starsUsed in 2 repos~3.7k tokens
    Research & ScienceAuto-check passed
  • Use this bioinformatics data analysis skill to construct a database-driven lncRNA-mRNA regulatory network from target lncRNA and/or gene lists by projecting shared miRNA evidence from local ceRNA…

    1.9k GitHub stars~2.7k tokensUpdated 23 days ago
    Research & ScienceAuto-check passed
  • Computes linkage disequilibrium (r2, D', composite Rogers-Huff r2), prunes correlated variants, clumps GWAS summary statistics to lead SNPs, and defines haplotype blocks with PLINK 1.9/2.0 and…

    1.2k GitHub starsUsed in 1 repo~4.7k tokens
    Research & ScienceAuto-check passed
  • Dnanexus Integration

    aipoch/medical-research-skills

    DNAnexus cloud genomics platform. An agent skill from aipoch/medical-research-skills.

    1.9k GitHub stars~3.5k tokensUpdated 23 days ago
    Research & ScienceAuto-check passed

More from ClawBio/ClawBio

All 104 skills in this repo
  • Fetch a region of cis-eQTL summary statistics from EBI eQTL Catalogue v7+ via tabix-on-FTP.

    1.2k GitHub starsUsed in 1 repo~4.7k tokens
    Auto-check passed
  • Xena Tcga Gene Query

    ClawBio/ClawBio

    Query TCGA tumor biology through the ucscxenatoolspy API. An agent skill from ClawBio/ClawBio.

    1.2k GitHub stars~4.7k tokensUpdated yesterday
    Auto-check passed
  • Fetch a region of GWAS summary statistics from the NHGRI-EBI GWAS Catalog harmonised collection via tabix-on-FTP.

    1.2k GitHub starsUsed in 1 repo~3.5k tokens
    Auto-check passed
  • Dnasp

    ClawBio/ClawBio

    Population genetics of pre-aligned DNA sequences or multi-sample VCFs using selected DnaSP 6 methods.

    1.2k GitHub stars~5.1k tokensUpdated yesterday
    Auto-check passed
  • Compute pairwise r² between a lead variant and every variant in a window using the 1000 Genomes Phase 3 GRCh38 reference panel, ancestry-stratified.

    1.2k GitHub stars~3.9k tokensUpdated yesterday
    Auto-check passed
  • Ncbi Datasets

    ClawBio/ClawBio

    Download genomes, genes, virus sequences, and taxonomy data from NCBI using the datasets and dataformat CLI tools.

    1.2k GitHub starsUsed in 1 repo~2.8k tokens
    Auto-check passed

Questions about Gwas Pipeline

What does Gwas Pipeline do?

End-to-end GWAS automation wrapping PLINK2 for genotype QC and REGENIE for two-step whole-genome regression association testing. Gwas Pipeline is an agent skill from ClawBio/ClawBio. End-to-end GWAS automation wrapping PLINK2 for genotype QC and REGENIE for two-step whole-genome regression association testing.

When should I use Gwas Pipeline?

Gwas Pipeline fits situations like: tasks that involve Bioinformatics; tasks that involve Data analysis.

How do I install Gwas Pipeline in Claude Code?

Run `npx skills add ClawBio/ClawBio --skill gwas-pipeline -a claude-code`. Or copy the skill folder (skills/gwas-pipeline in ClawBio/ClawBio) into .claude/skills/gwas-pipeline in your project. Claude Code loads it when a task matches its description.

How do I install Gwas Pipeline in Codex?

Run `npx skills add ClawBio/ClawBio --skill gwas-pipeline -a codex`. Or copy the skill folder (skills/gwas-pipeline in ClawBio/ClawBio) into .agents/skills/gwas-pipeline in your project. Codex loads it when a task matches its description.

Can I use Gwas Pipeline in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ClawBio/ClawBio --skill gwas-pipeline -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gwas-pipeline, .gemini/skills/gwas-pipeline, .github/skills/gwas-pipeline and .opencode/skills/gwas-pipeline in your project.

What does Gwas Pipeline need to run?

Going by SKILL.md and its folder, Gwas Pipeline needs Python for the scripts in its folder and the command-line tools its instructions call (python and conda). Our summary lists: Python 3.

Does Gwas Pipeline access the network?

SKILL.md names 1 domain. As links in the text: pubmed.ncbi.nlm.nih.gov. This is read from the text; nothing was executed.

Is Gwas Pipeline safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gwas Pipeline use?

Gwas Pipeline is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gwas Pipeline use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gwas Pipeline?

Skills that share tags, products or a category with Gwas Pipeline: Scanpy Single-Cell Analysis (davila7/claude-code-templates, 33k stars), Single-Cell Initial Analysis (LigphiDonk/Oh-my--paper, 739 stars), Tooluniverse Polygenic Risk Score (wu-yc/LabClaw, 1.1k stars) and Lncrna Regulatory Network Construction Analysis (aipoch/medical-research-skills, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gwas Pipeline?

ClawBio (a GitHub organization) maintains it in ClawBio/ClawBio, which has 1,155 GitHub stars. The repository holds 104 skills in this directory. The repository was last updated on October 9, 2026.

Source: ClawBio/ClawBio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.