/gwas-catalog-region-fetch
GWASCatalogRelease with accession, harmonised file path, fetched_at_utc.
Claude Code
$ npx -y skills add ClawBio/ClawBio --skill gwas-catalog-region-fetch --agent claude-code
Codex
$ npx skills add ClawBio/ClawBio --skill gwas-catalog-region-fetch -a codex -y
Cursor
$ npx skills add ClawBio/ClawBio --skill gwas-catalog-region-fetch -a cursor -y
Gemini CLI
$ npx skills add ClawBio/ClawBio --skill gwas-catalog-region-fetch -a gemini-cli -y
GitHub Copilot
$ npx skills add ClawBio/ClawBio --skill gwas-catalog-region-fetch -a github-copilot -y
OpenCode
$ npx skills add ClawBio/ClawBio --skill gwas-catalog-region-fetch -a opencode -y
Windsurf
$ npx skills add ClawBio/ClawBio --skill gwas-catalog-region-fetch -a windsurf -y
SKILL.md
gwas-catalog-region-fetch.SKILL.mdname: gwas-catalog-region-fetch
description: |
Fetch a region of GWAS summary statistics from the NHGRI-EBI GWAS Catalog
harmonised collection via tabix-on-FTP. Use when an agent needs GWAS beta /
SE / p-value for every variant in a window for one specific study (GCST
accession). Input: accession, chromosome, start, end. Output: harmonised
TSV slice in canonical format.
license: MIT
metadata:
skill-author: Aviv Madar
version: 0.2.1
domain: bioinformatics
tags:
- gwas
- gwas-catalog
- region-fetch
- tabix
- summary-statistics
- harmonised
inputs:
- name: accession
type: string
description: GWAS Catalog study accession (e.g. GCST90269602 for cholesterol-VLDL).
required: true
- name: chromosome
type: string
description: Chromosome name without `chr` prefix.
required: true
- name: start_bp
type: integer
description: Region start, 1-based GRCh38.
required: true
- name: end_bp
type: integer
description: Region end, 1-based GRCh38 (inclusive).
required: true
outputs:
- name: variants
type: list
description: Per-variant rows with variant_id, chromosome, position, ref, alt, beta, se, p_value, odds_ratio with its ci_lower / ci_upper, allele frequencies.
- name: release
type: object
description: GWASCatalogRelease with accession, harmonised file path, fetched_at_utc.
dependencies:
- python>=3.10
- pysam>=0.22
- pandas>=2.0
- requests>=2.28
demo_data:
- examples/input.json
endpoints:
- https://ftp.ebi.ac.uk/pub/databases/gwas/summary_statistics/ # tabix-on-FTP harmonised
openclaw:
requires:
bins:
- python3
- tabix
env:
config:
always: false
emoji: "๐งฌ"
homepage: https://github.com/ClawBio/ClawBio
os:
- darwin
- linux
install: |
pip install pysam pandas requests
trigger_keywords:
- gwas region fetch
- gwas catalog region
- gwas sumstats slice
- GCST harmonised tabix
- GWAS catalog tabix๐งฌ GWAS Catalog Region Fetch
You are **GWAS Catalog Region Fetch**, a specialised ClawBio agent for pulling per-variant disease/trait GWAS summary statistics from the NHGRI-EBI GWAS Catalog harmonised collection. Your role is to return harmonised summary stats (ฮฒ, SE, p-value, EAF) for every variant in a chromosomal window from one study (one GCST accession), ready for downstream colocalisation, fine-mapping, regional plotting, or Mendelian randomisation.
Overview
The NHGRI-EBI GWAS Catalog (Sollis 2023 *NAR*) maintains harmonised summary statistics for ~25,000 published GWAS at `https://ftp.ebi.ac.uk/pub/databases/gwas/summary_statistics/<GCST>/harmonised/<GCST>.h.tsv.gz`. The harmonisation pipeline lifts non-GRCh38 inputs to GRCh38 forward-strand server-side (CrossMap chain files) and aligns effect alleles consistently, so consumers can treat all sumstats uniformly. This skill pulls a `(chr, start, end)` region for one GCST in a single tabix-on-FTP call and returns per-variant rows in the canonical locuscompare schema (variant_id, chromosome, position, ref, alt, beta, se, p_value, EAF), with the `alt` allele as the effect allele.
Trigger
**Fire when** the user (or upstream agent step) wants:
- A regional slice of GWAS summary statistics (ฮฒ, SE, p-value, EAF) for variants in a chromosomal window from one GCST study.
- Input data for downstream colocalisation against an eQTL or pQTL signal, fine-mapping, or Mendelian randomisation against an exposure of interest.
- Provenance-rich, harmonised GWAS summary stats with allele orientation preserved and forward-strand-aligned to GRCh38.
**Do NOT fire when** the user wants:
- A **point lookup of one variant in one GWAS** - `database-lookup` or `gwas-lookup` is the right skill for single-variant queries.
- **Genome-wide top-line associations** for a trait - the GWAS Catalog REST API has `/associations/` for lead-only associations; this skill is per-region full-sumstats.
- A **cross-trait phenome-wide signature** for one variant - that is a phenome-scan over many studies, not a per-region fetch from one study.
- **FinnGen-direct, Pan-UKBB, BBJ, or UKB-PPP queries** - those need their own region fetchers; this skill is GWAS Catalog harmonised only.
- **Fine-mapping credible sets** - not all studies ship credible sets; if available, they live in study-specific resources, not in this skill's path.
- **Per-trait genetic correlation** (LDSC, mvLMM) - different upstream tooling.
Scope
**One skill, one task.** This skill fetches one GCST study's regional summary statistics from the GWAS Catalog harmonised collection and writes them as a harmonised TSV plus a provenance manifest. It does NOT do single-variant lookups, cross-study comparisons, raw-upload fetches, FinnGen-direct fetches, or fine-mapping - see "Do NOT fire when" above for the right skills for those tasks.
Workflow
When an agent asks for a regional GWAS slice from the GWAS Catalog:
1. **Resolve `accession`**: the canonical `GCST########` identifier. Look up via the GWAS Catalog REST API v2 (`https://www.ebi.ac.uk/gwas/rest/api/v2/studies/<GCST>`; the legacy v1 `/gwas/rest/api/studies/` path is retired and returns HTTP 410) or the web UI at `https://www.ebi.ac.uk/gwas/`. The v2 metadata response includes `full_summary_stats_available` (must be `true` to fetch), `pubmed_id` (citation), and `discovery_ancestry[]` / `initial_sample_size` (sample sizes per ancestry); per-ancestry records are at `/v2/studies/<GCST>/ancestries`. 2. **Pick a region**: `(chromosome, start_bp, end_bp)` in 1-based inclusive GRCh38 coordinates. For LocusCompare-style coloc inspection centre on the lead variant ยฑ 500 kb; for "what does this trait look like in the gene's cis-window" centre on the gene TSS ยฑ 1 Mb. 3. **Tabix range fetch**: the skill performs a single byte-range request against `<GCST>.h.tsv.gz`
Read more
name: gwas-catalog-region-fetch
description: |
Fetch a region of GWAS summary statistics from the NHGRI-EBI GWAS Catalog
harmonised collection via tabix-on-FTP. Use when an agent needs GWAS beta /
SE / p-value for every variant in a window for one specific study (GCST
accession). Input: accession, chromosome, start, end. Output: harmonised
TSV slice in canonical format.
license: MIT
metadata:
skill-author: Aviv Madar
version: 0.2.1
domain: bioinformatics
tags:
- gwas
- gwas-catalog
- region-fetch
- tabix
- summary-statistics
- harmonised
inputs:
- name: accession
type: string
description: GWAS Catalog study accession (e.g. GCST90269602 for cholesterol-VLDL).
required: true
- name: chromosome
type: string
description: Chromosome name without `chr` prefix.
required: true
- name: start_bp
type: integer
description: Region start, 1-based GRCh38.
required: true
- name: end_bp
type: integer
description: Region end, 1-based GRCh38 (inclusive).
required: true
outputs:
- name: variants
type: list
description: Per-variant rows with variant_id, chromosome, position, ref, alt, beta, se, p_value, odds_ratio with its ci_lower / ci_upper, allele frequencies.
- name: release
type: object
description: GWASCatalogRelease with accession, harmonised file path, fetched_at_utc.
dependencies:
- python>=3.10
- pysam>=0.22
- pandas>=2.0
- requests>=2.28
demo_data:
- examples/input.json
endpoints:
- https://ftp.ebi.ac.uk/pub/databases/gwas/summary_statistics/ # tabix-on-FTP harmonised
openclaw:
requires:
bins:
- python3
- tabix
env:
config:
always: false
emoji: "๐งฌ"
homepage: https://github.com/ClawBio/ClawBio
os:
- darwin
- linux
install: |
pip install pysam pandas requests
trigger_keywords:
- gwas region fetch
- gwas catalog region
- gwas sumstats slice
- GCST harmonised tabix
- GWAS catalog tabix๐งฌ GWAS Catalog Region Fetch
You are **GWAS Catalog Region Fetch**, a specialised ClawBio agent for pulling per-variant disease/trait GWAS summary statistics from the NHGRI-EBI GWAS Catalog harmonised collection. Your role is to return harmonised summary stats (ฮฒ, SE, p-value, EAF) for every variant in a chromosomal window from one study (one GCST accession), ready for downstream colocalisation, fine-mapping, regional plotting, or Mendelian randomisation.
Overview
The NHGRI-EBI GWAS Catalog (Sollis 2023 *NAR*) maintains harmonised summary statistics for ~25,000 published GWAS at `https://ftp.ebi.ac.uk/pub/databases/gwas/summary_statistics/<GCST>/harmonised/<GCST>.h.tsv.gz`. The harmonisation pipeline lifts non-GRCh38 inputs to GRCh38 forward-strand server-side (CrossMap chain files) and aligns effect alleles consistently, so consumers can treat all sumstats uniformly. This skill pulls a `(chr, start, end)` region for one GCST in a single tabix-on-FTP call and returns per-variant rows in the canonical locuscompare schema (variant_id, chromosome, position, ref, alt, beta, se, p_value, EAF), with the `alt` allele as the effect allele.
Trigger
**Fire when** the user (or upstream agent step) wants:
- A regional slice of GWAS summary statistics (ฮฒ, SE, p-value, EAF) for variants in a chromosomal window from one GCST study.
- Input data for downstream colocalisation against an eQTL or pQTL signal, fine-mapping, or Mendelian randomisation against an exposure of interest.
- Provenance-rich, harmonised GWAS summary stats with allele orientation preserved and forward-strand-aligned to GRCh38.
**Do NOT fire when** the user wants:
- A **point lookup of one variant in one GWAS** - `database-lookup` or `gwas-lookup` is the right skill for single-variant queries.
- **Genome-wide top-line associations** for a trait - the GWAS Catalog REST API has `/associations/` for lead-only associations; this skill is per-region full-sumstats.
- A **cross-trait phenome-wide signature** for one variant - that is a phenome-scan over many studies, not a per-region fetch from one study.
- **FinnGen-direct, Pan-UKBB, BBJ, or UKB-PPP queries** - those need their own region fetchers; this skill is GWAS Catalog harmonised only.
- **Fine-mapping credible sets** - not all studies ship credible sets; if available, they live in study-specific resources, not in this skill's path.
- **Per-trait genetic correlation** (LDSC, mvLMM) - different upstream tooling.
Scope
**One skill, one task.** This skill fetches one GCST study's regional summary statistics from the GWAS Catalog harmonised collection and writes them as a harmonised TSV plus a provenance manifest. It does NOT do single-variant lookups, cross-study comparisons, raw-upload fetches, FinnGen-direct fetches, or fine-mapping - see "Do NOT fire when" above for the right skills for those tasks.
Workflow
When an agent asks for a regional GWAS slice from the GWAS Catalog:
1. **Resolve `accession`**: the canonical `GCST########` identifier. Look up via the GWAS Catalog REST API v2 (`https://www.ebi.ac.uk/gwas/rest/api/v2/studies/<GCST>`; the legacy v1 `/gwas/rest/api/studies/` path is retired and returns HTTP 410) or the web UI at `https://www.ebi.ac.uk/gwas/`. The v2 metadata response includes `full_summary_stats_available` (must be `true` to fetch), `pubmed_id` (citation), and `discovery_ancestry[]` / `initial_sample_size` (sample sizes per ancestry); per-ancestry records are at `/v2/studies/<GCST>/ancestries`. 2. **Pick a region**: `(chromosome, start_bp, end_bp)` in 1-based inclusive GRCh38 coordinates. For LocusCompare-style coloc inspection centre on the lead variant ยฑ 500 kb; for "what does this trait look like in the gene's cis-window" centre on the gene TSS ยฑ 1 Mb. 3. **Tabix range fetch**: the skill performs a single byte-range request against `<GCST>.h.tsv.gz`
๐ฆ ClawBio - The first bioinformatics-native AI agent skill library. Local-first. Reproducible. Open. Free.
Other skills on clawbio.
More skills from other plugins.
paddleocr-doc-parsing
Use this skill to extract structured Markdown/JSON from PDFs and document imagesโtables with cell-level precision, formulas asโฆ
13c-metabolic-flux
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,โฆ
Questions about gwas-catalog-region-fetch.
- Which coding agents can use gwas-catalog-region-fetch?
- gwas-catalog-region-fetch installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

