GWAS to Function via TWAS

GWAS to Function via TWAS is a skill for Claude Code, Codex from TianGzlab/OmicsClaw. It costs 7 tokens per session (4,765 once invoked), scanned A, original, Apache-2.0.

A genetics workflow that connects disease-associated DNA signals from genome-wide association studies (GWAS) to genes whose activity may be involved, using transcriptome-wide association study (TWAS) analysis. It also assesses whether a gene should potentially be increased or decreased and how strong the evidence is.

In plain words
What is it for?
Finding genes linked to disease risk, checking genetic evidence with colocalization and Mendelian randomization, comparing tissues, deciding whether to inhibit or activate a gene, and producing prioritized target reports.
Why use it?
GWAS can point to DNA regions without identifying the responsible gene; this workflow helps interpret those signals and rank possible drug targets.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is --ldsc-results ../gwas-heritability-ldsc/twas_tissue_recommendations.csv \.

Good fit Finding genes linked to disease risk, checking genetic evidence with colocalization and Mendelian randomization, comparing tissues, deciding whether to inhibit or activate a gene, and producing prioritized target reports.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/TianGzlab/OmicsClaw
agentmods
npx agentmods add skills/tiangzlab/omicsclaw/gwas-to-function-twas

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for GWAS to Function via TWAS

README.md
[![agentmods](https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/gwas-to-function-twas/github.svg)](https://agentmods.dev/skills/tiangzlab/omicsclaw/gwas-to-function-twas)
Your own site
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/gwas-to-function-twas"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/gwas-to-function-twas/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for GWAS to Function via TWAS

Your own site · 80×15
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/gwas-to-function-twas"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/gwas-to-function-twas.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,765 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • low Excessive Agency · line 320
    Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.
    Fix: Limit the skill's scope to its documented purpose. Remove instructions that enable the agent to perform actions outside its stated functionality.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00007 $0.04765
Opus 5 $0.00003 $0.02382
Sonnet 5 $0.00001 $0.00953
Haiku 4.5 $0.00001 $0.00477

Measured 9d ago against content hash d84f55fe5be2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

GWAS to Function via TWAS scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 14 executable files (scripts/colocalization_analysis.py, scripts/druggability_scoring.py, scripts/export_results.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

knowledge_base/gwas-to-function-twas/SKILL.md · 400 lines

How it starts

The opening of the file, as written. The whole thing — 400 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GWAS to Function via TWAS

Identify genes whose genetically regulated expression is associated with disease risk, determine therapeutic directionality (inhibit vs. activate), and prioritize drug targets with causal genetic evidence using Transcriptome-Wide Association Study (TWAS) analysis.

Key capabilities:

  • Dual TWAS tools: FUSION (comprehensive) and S-PrediXcan (fast, 10-100x faster)
  • Therapeutic directionality: Determine inhibit vs. activate strategy for each gene
  • Multi-tier analysis: Basic → Colocalization → Mendelian Randomization → Druggability
  • Colocalization testing: Filters LD artifacts (up to 50% of TWAS hits), requires PP.H4 > 0.8
  • Cross-tissue meta-analysis: S-MultiXcan across 54 GTEx v8 tissues
  • Biopharma-ready reports: Excel workbooks with prioritized targets and confidence levels

When to Use This Skill

Use this skill when:

  • ✅ You have genome-wide GWAS summary statistics (N > 5,000 samples)
  • ✅ Need to identify effector genes for non-coding GWAS variants
  • ✅ Want to determine therapeutic strategy (inhibit vs. activate gene expression)
  • ✅ Prioritizing drug targets by genetic evidence strength
  • ✅ Validating existing targets with causal genetic evidence

Don't use this skill when:

  • ❌ Only have significant loci (p < 5×10⁻⁸) without genome-wide data
  • ❌ Sample size < 5,000 (insufficient power for TWAS)
  • ❌ Need functional enrichment analysis → use functional-enrichment-from-degs
  • ❌ Working with individual-level genotypes → run GWAS first with gwas-genotype-qc

Data requirements: Genome-wide GWAS summary statistics with columns: SNP, CHR, BP, A1, A2, BETA/OR, SE, P, N

Installation

Required Software

Software Version License Commercial Use Installation
FUSION Latest MIT ✅ Permitted https://github.com/gusevlab/fusion_twas
MetaXcan/S-PrediXcan Latest MIT ✅ Permitted pip install metaxcan
Python ≥3.9 PSF ✅ Permitted conda/pip
R ≥4.0 GPL ✅ Permitted CRAN (required for FUSION only)

Read the full file on GitHub · 400 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 400 lines · 7 tokens per session scan A d84f55fe5be2

Subscribe to this mod's changes

GWAS to Function via TWAS is a skill published in the GitHub repository TianGzlab/OmicsClaw (160 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 7 tokens to every session and 4,765 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

scanpy

Standard single-cell RNA-seq analysis pipeline. Use for QC, normalization, dimensionality reduction (PCA/UMAP/t-SNE), clustering, differential expression, and visualization. Best for exploratory scRNA-seq analysis with established workflows. For deep learning models use scvi-tools; for data format questions use…

synthetic-sciences/openscience · 68 tokens

cellxgene-census-query

Query CZ CELLxGENE Census (61M+ cells). Filter by cell type/tissue/disease, retrieve expression data, and integrate with scanpy/PyTorch for population-scale single-cell analysis. Use this skill when: (1) Querying single-cell expression data by cell type, tissue, or disease, (2) Exploring available single-cell datasets…

PharMolix/OpenBioMed · 105 tokens

single-cell-scrna-seq-analysis-scanpy

Complete single-cell RNA-seq analysis workflow built on Scanpy and AnnData. Use this skill when: (1) Loading diverse single-cell data formats (10X, h5ad, CSV), (2) Performing quality control and filtering, (3) Normalization, dimensionality reduction, and clustering, (4) Marker gene identification and cell type…

PharMolix/OpenBioMed · 85 tokens

single-cell-multi-omics-analysis-scvi

Probabilistic deep learning framework for single-cell multi-omics data analysis. Use this skill when: (1) Analyzing single-cell RNA-seq data with batch correction, (2) Integrating multi-modal data (CITE-seq, ATAC-seq, multi-omics), (3) Performing cell type annotation with scANVI, (4) Spatial transcriptomics…

PharMolix/OpenBioMed · 94 tokens

anndata

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

synthetic-sciences/openscience · 63 tokens

celltypepilot

Single-cell cell-type annotation with evidence, conservative abstention, and reviewable drafts. Use this whenever the user wants to annotate, label, or identify cell types for pre-clustered single-cell or spatial transcriptomics data (.h5ad), or says things like "annotate my clusters", "what cell types are these?"…

HERRY423/CellTypePilot · 151 tokens