一键导入
gsea-for-ranked-gene-list
Use when the user wants to run GSEA from a ranked gene list and generate publication-quality enrichment figures and result tables.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user wants to run GSEA from a ranked gene list and generate publication-quality enrichment figures and result tables.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Pan-cancer analysis for a gene across all 33 TCGA cancer types plus DepMap and CPTAC. Use this skill when the user asks for pan-cancer analysis, cross-cancer comparison, multi-cancer gene report, or wants to analyze a gene across ALL cancer types at once. Generates a comprehensive PDF report with expression, survival (KM curves + log-rank), mutation, copy-number, DepMap cell-line data, and CPTAC protein data. Covers TCGA expression + survival, TCGA mutation/CNA survival, DepMap 26Q1 expression/copy-number/mutations, and CPTAC proteomics.
DepMap analysis for a gene across CANCER CELL LINES (NOT patient samples). Modules: expression, mutation, copy number, essentiality. Data is streamed directly from the DepMap API — no full dataset download needed. Also includes standalone co-expression (depmap_coexpression.py) and co-essentiality (depmap_coessentiality.py) scripts for cell-line correlations. For patient/tumor co-expression use coexpression-for-gene (TCGA/GTEx) instead.
Co-expression in PATIENT SAMPLES (TCGA tumors / GTEx normal tissues). NOT for cell lines — use depmap_coexpression.py for DepMap cell-line co-expression. Fetches real TCGA expression from cBioPortal API (PanCancer Atlas). GTEx requires user-provided expression file.
Run Cox proportional hazards regression on clinical and molecular data. Fits univariate and multivariate Cox models, computes hazard ratios with confidence intervals, tests the proportional hazards assumption, and generates forest plots and Schoenfeld residual plots.
Correlate gene expression or dependency scores with drug sensitivity data from PRISM (DepMap). Identifies drugs whose sensitivity correlates with the gene's expression or essentiality, and generates correlation plots.
Analyze TCGA somatic mutations in a gene via cBioPortal API (PanCancer Atlas). Supports local TCGA MAF file as fallback. Computes mutation frequencies, identifies hotspot residues, classifies mutation types, and generates lollipop plots and summaries.
| name | gsea_for_ranked_gene_list |
| description | Use when the user wants to run GSEA from a ranked gene list and generate publication-quality enrichment figures and result tables. |
Use this skill to run preranked GSEA from a ranked gene list and generate publication-quality plots and tabular outputs.
This skill performs Gene Set Enrichment Analysis using a ranked gene list. It is intended for users who already have a ranking metric for genes, such as log2 fold change, signal-to-noise score, Wald statistic, t statistic, correlation coefficient, or another signed ranking score.
This skill is appropriate for:
Use this skill when the user:
Typical requests:
Do not use this skill when the user:
If the user provides only a gene list without ranking values, use a gene-list enrichment skill instead.
The skill expects:
Optional inputs:
Supported libraries in the script:
HALLMARKKEGGREACTOMEGO_BPGO_MFGO_CCFor each run, generate:
This skill assumes:
Run:
python scripts/gsea_analysis_for_ranked_gene_list.py --input <ranked_gene_file> --output-prefix <prefix>
Common optional arguments:
--gene-col <col>--score-col <col>--library <HALLMARK|KEGG|REACTOME|GO_BP|GO_MF|GO_CC>--organism <human|mouse>--permutation-num <int>--min-size <int>--max-size <int>--top-n <int>--fdr-cutoff <float>--fig-width <float>--fig-height <float>--dpi <int>--font-family <string>--font-size <float>| Signal in user request | Parameter to set |
|---|---|
| "Hallmark pathways" (default for cancer biology) | --library HALLMARK |
| "KEGG pathways" | --library KEGG |
| "Reactome" | --library REACTOME |
| "GO biological process" | --library GO_BP |
| Ranked by log2FC from DE results | --gene-col gene --score-col log2FC |
| Ranked by Wald statistic / t-statistic | --gene-col gene --score-col stat |
| "top 5 pathways" | --top-n 5 |
| "top 10 pathways" (default) | --top-n 10 |
| "FDR < 0.1" (standard for GSEA) | --fdr-cutoff 0.1 |
| "FDR < 0.25" (lenient, exploratory) | --fdr-cutoff 0.25 |
| Mouse gene list | --organism mouse |
| "more permutations / reliable p-values" | --permutation-num 1000 (slower but more accurate) |
| "fast / exploratory" | --permutation-num 100 |
| Small gene sets (< 15 genes) | lower --min-size 10 |
| Filter out very large gene sets | --max-size 300 |
Users may express requests in natural language. Translate supported requests into script arguments when possible.
Examples:
Install with:
pip install -r requirements.txt
Fail clearly when:
This skill should trigger for prompts like:
This skill should not trigger for prompts like: