Gwas Pipeline logo

Gwas Pipeline

OrganizationPopular
ClawBio
gwas-pipeline

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.

Overview

PublisherClawBio
RepositoryClawBio
Skill namegwas-pipeline
Stars
1.2K
Forks
280
Bundled files
10
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 10 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ClawBio on GitHub. Read the source before you install it.

Installation

Install the Gwas Pipeline AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ClawBio/ClawBio/tree/main/skills/gwas-pipeline
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ClawBio/ClawBio.git /tmp/ClawBio
mkdir -p .claude/skills
cp -r /tmp/ClawBio/skills/gwas-pipeline .claude/skills/gwas-pipeline
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gwas Pipeline in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gwas Pipeline on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gwas Pipeline is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

📊 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

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Gwas Pipeline AI skill do?

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.

Why use Gwas Pipeline on TypingMind?

Because you install it once and use it with any model. Gwas Pipeline is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gwas Pipeline in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ClawBio/ClawBio/tree/main/skills/gwas-pipeline. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Gwas Pipeline?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gwas Pipeline?

As many as you like. As long as a model supports skills, you can use Gwas Pipeline with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gwas Pipeline AI skill free?

Yes. It is published on GitHub by ClawBio under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇