gsea

gsea is a skill for Claude Code, Codex from aipoch/medical-research-skills. It costs 25 tokens per session (2,725 once invoked), scanned A, original, MIT.

Gene Set Enrichment Analysis, or GSEA, checks whether genes from known biological groups cluster near the top or bottom of a ranked gene list. It produces tables of enrichment results, running scores and plots.

In plain words
What is it for?
Use it on a statistically ranked gene list, or create enrichment plots from existing GSEA result tables.
Why use it?
It can reveal coordinated biological changes across gene groups instead of examining genes one at a time.

Skill for Claude CodeCodex

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

Good fit Use it on a statistically ranked gene list, or create enrichment plots from existing GSEA result tables.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aipoch/medical-research-skills/gsea
About the project

Medical Research Agent Skills is a library of agent instructions for medical and biomedical research, covering evidence analysis, study protocol design, data analysis, and academic writing. Researchers use it to guide compatible coding agents through common scientific workflows. The catalogue contains many of the library's skills and commands.

aipoch/medical-research-skills · 1,860 stars · on GitHub · aipoch.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aipoch/medical-research-skills --skill gsea
Clone the repo
git clone --depth 1 https://github.com/aipoch/medical-research-skills

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 gsea

README.md
[![agentmods](https://agentmods.dev/badge/skills/aipoch/medical-research-skills/gsea/github.svg)](https://agentmods.dev/skills/aipoch/medical-research-skills/gsea)
Your own site
<a href="https://agentmods.dev/skills/aipoch/medical-research-skills/gsea"><img src="https://agentmods.dev/badge/skills/aipoch/medical-research-skills/gsea/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 gsea

Your own site · 80×15
<a href="https://agentmods.dev/skills/aipoch/medical-research-skills/gsea"><img src="https://agentmods.dev/badge/skills/aipoch/medical-research-skills/gsea.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,725 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 pass 7 Sept 2026
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.00025 $0.02725
Opus 5 $0.00013 $0.01362
Sonnet 5 $0.00005 $0.00545
Haiku 4.5 $0.00003 $0.00272

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

Security

Grade A, and why

gsea 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 13d ago.

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.

awesome-med-research-skills/Data Analysis/gsea/SKILL.md · 183 lines

How it starts

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

Source: https://github.com/aipoch/medical-research-skills

When to read external files

Situation Read Purpose
Need algorithm details references/algorithm.md Statistical method and formulas
Need to run an analysis scripts/main.R Full command reference
Hit an error references/troubleshooting.md Look up error codes and fixes
Need CLI examples references/cli-guide.md Worked argument examples

Scope

Use this skill for:

  • Running GSEA on a gene list ranked by a statistic
  • Generating enrichment curve plots from existing enrichGSEA.csv and gsea_running_scores.csv
  • Smoke-testing the pipeline with tests/data/sample_deg_results.csv

Do not use it for:

  • Differential expression on raw expression matrices
  • Single-sample ssGSEA
  • Network analysis or multi-omics integration

Usage

Analysis mode: Rscript scripts/main.R --input tests/data/sample_deg_results.csv --outdir ./GSEA_analysis --type KEGG --species human --seed 42 --timeout 300

Plot mode: Rscript scripts/main.R --running_file ./GSEA_analysis/Table/gsea_running_scores.csv --enrich_file ./GSEA_analysis/Table/enrichGSEA.csv --plot_output ./GSEA_analysis/plot/gsea_plot.pdf --top_n 5 --plot_format pdf --seed 42 --timeout 300

See references/cli-guide.md for more.

Mode selection:

  • Passing only --input runs analysis mode
  • Passing both --running_file and --enrich_file runs plot mode
  • If both sets of arguments are provided, plot mode takes precedence; analysis mode is skipped and a warning is logged

Arguments

Analysis-mode arguments

Short Long Type Default Required Description
-i --input character NULL yes Input CSV file
-o --outdir character GSEA_analysis no Output directory
-g --gene_col character name no Gene column name
-f --fc_col character logFC no Ranking-statistic column name
-t --type character KEGG no Gene-set type: KEGG, HALLMARKS, GO_BP, GO_MF, GO_CC. With a preloaded RDS, HALLMARKS is automatically mapped to the asset key Hallmarks
-s --species character human no Species: human, mouse, rat
-p --pvalue_cutoff numeric 0.05 no Significance threshold
-m --method character fgsea no GSEA backend: fgsea or DOSE
-c --chunk_size numeric 1000 no Chunk size for large gene-set conversion
-r --rds_path character NULL no Path to a pre-stored gene-set RDS
-v --verbose logical FALSE no Verbose logging
--seed integer 42 no Random seed
--timeout integer 300 no Timeout in seconds; <=0 disables it
-h --help logical FALSE no Show help

Read the full file on GitHub · 183 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. 13d ago First seen · 183 lines · 25 tokens per session scan A f8dfcb232500

Subscribe to this mod's changes

gsea is a skill published in the GitHub repository aipoch/medical-research-skills (1,860 stars, last pushed 1mo ago), licensed MIT. It adds 25 tokens to every session and 2,725 once invoked, about $0.0001 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