Agent skill

Ssgsea Immune Infiltration Analysis

by aipoch in aipoch/medical-research-skills

A skill your agent uses when estimating immune infiltration from bulk RNA-seq expression matrices with ssGSEA/GSVA, comparing case versus control groups, and generating downstream immune-score…

MITAuto-check passedResearch & Science

Install Ssgsea Immune Infiltration Analysis

skills CLI
$ npx skills add aipoch/medical-research-skills --skill ssgsea-immune-infiltration-analysis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills ssgsea-immune-infiltration-analysis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'awesome-med-research-skills/Data Analysis/ssgsea-immune-infiltration-analysis' .claude/skills/ssgsea-immune-infiltration-analysis && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ssgsea-immune-infiltration-analysis
GitHub stars
1.9k
Token cost
~1.7k tokens
SKILL.md length
624 words
Files
17 (incl. scripts, references)
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when estimating immune infiltration from bulk RNA-seq expression matrices with ssGSEA/GSVA, comparing case versus control groups, and generating downstream immune-score…

  • Works in 4 steps: Confirm that the expression matrix,… → Run scripts/main.R with the target case… → Review run_record.txt,… → …
  • Estimating immune infiltration from bulk RNA-seq expression matrices with ssGSEA/GSVA
  • SKILL.md covers When to Use, When Not to Use, Workflow and When to Read External Files, plus 6 more sections
  • Runs R scripts from its folder

What it does

Ssgsea Immune Infiltration Analysis is an agent skill from aipoch/medical-research-skills. Use when estimating immune infiltration from bulk RNA-seq expression matrices with ssGSEA/GSVA, comparing case versus control groups, and generating downstream immune-score visualizations. NOT for single-cell RNA-seq, absolute cell proportion estimation, or clinical decision making.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 20 other files, including scripts and reference files (for example `eval_report_ssgsea-immune-infiltration-analysis_result.json`, `references/algorithm.md` and `references/cli-guide.md`).

It sits in Research & Science, covering Bioinformatics. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • Estimating immune infiltration from bulk RNA-seq expression matrices with ssGSEA/GSVA
  • Comparing case versus control groups
  • Generating downstream immune-score visualizations

Example prompts

  • “/ssgsea-immune-infiltration-analysis”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Confirm that the expression matrix, group file, and gene-set file match the documented schemas.
  2. Run scripts/main.R with the target case and control groups.
  3. Review run_record.txt, output_manifest.txt, and the generated tables or plots.
  4. If execution fails, read references/troubleshooting.md before retrying.

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 8 files in scripts/ (R), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ssgsea Immune Infiltration Analysis loads about 1.7k tokens when it runs, and up to ~4.5k if it reads all its reference files. Until then it costs about 80 tokens; SKILL.md has 624 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~80
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 624 words, ~1,740 tokens.

Download SKILL.mdSave it as .claude/skills/ssgsea-immune-infiltration-analysis/SKILL.md (or your agent's skills folder). This skill also uses 16 other files; get the full folder from GitHub.
name
ssgsea-immune-infiltration-analysis
description
Use when estimating immune infiltration from bulk RNA-seq expression matrices with ssGSEA/GSVA, comparing case versus control groups, and generating downstream immune-score visualizations. NOT for single-cell RNA-seq, absolute cell proportion estimation, or clinical decision making.
license
MIT
author
AIPOCH

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

ssGSEA Immune Infiltration Analysis

When to Use

  • Estimate relative immune infiltration from a bulk RNA-seq expression matrix.
  • Compare immune enrichment scores between one case group and one control group.
  • Generate structured result tables plus optional PDF visualizations for downstream review.

When Not to Use

  • Single-cell RNA-seq or spatial transcriptomics.
  • Absolute immune cell proportion estimation or deconvolution.
  • Clinical diagnosis, treatment recommendation, or any other medical decision making.

Workflow

  1. Confirm that the expression matrix, group file, and gene-set file match the documented schemas.
  2. Run scripts/main.R with the target case and control groups.
  3. Review run_record.txt, output_manifest.txt, and the generated tables or plots.
  4. If execution fails, read references/troubleshooting.md before retrying.

When to Read External Files

SituationFile to ReadPurpose
Need to run the analysisscripts/main.RCLI entry point
Need algorithm detailsreferences/algorithm.mdMethod assumptions and interpretation
Encounter an errorreferences/troubleshooting.mdError codes and fixes
Need CLI examples or baseline execution detailsreferences/cli-guide.mdExamples and recorded run details
Need dependency declarationsDESCRIPTIONPackage list and Bioconductor source note
Need test commandstests/run_tests.REnd-to-end test entry

Usage

bash
Rscript scripts/main.R \
  --input_file ./expression_matrix.csv \
  --group_file ./group_info.csv \
  --gene_set ./immune_gene_sets.csv \
  --case_group treatment \
  --control_group control \
  --output_dir ./output \
  --method ssgsea \
  --seed 42

Validated path note:

  • ssgsea is the default validated path.
  • gsva is supported, but only with kernels validated in the local GSVA environment.
  • In the current audited environment, gsva with Gaussian completed successfully and is the documented baseline.

Arguments

ShortLongTypeDefaultDescription
-i--input_filefilerequiredExpression matrix with genes as rows and samples as columns
-g--group_filefilerequiredGroup annotation table
-e--gene_setfiletests/data/immune_gene_sets.csvImmune gene-set CSV
-a--case_groupstringrequiredCase group label
-b--control_groupstringrequiredControl group label
-o--output_dirdir./outputOutput directory
-m--methodstringssgseaGSVA method: ssgsea, gsva
-k--kcdfstringGaussianKernel mode: Gaussian, Poisson; Gaussian is the validated GSVA baseline
-n--min_szinteger2Minimum overlap genes per gene set
-x--max_szinteger10000Maximum genes per gene set
-p--parallel_szinteger2Requested parallel CPU count
-u--taunumeric0.25Tau parameter for ssGSEA
-d--mx_diffbooleantrueGSVA mx.diff switch
-c--gene_id_casestringupperGene ID normalization: asis, upper, lower
-s--seedinteger42Random seed
-t--timeout_secondsinteger0Optional timeout; 0 disables it
--sample_colstring/intnoneSample column name or 1-based index
--group_colstring/intnoneGroup column name or 1-based index
--make_plotsbooleantrueGenerate PDF plots
--verbosebooleantruePrint progress logs
Show full SKILL.md (236 more words)Show less

Input Format

Expression Matrix

CSV or TSV. The first column must contain gene identifiers. Remaining columns are sample-level numeric expression values.

csv
gene,Sample1,Sample2,Sample3
TP53,10.2,8.5,9.1
CXCL9,4.3,6.1,5.7
Group File

CSV or TSV with at least one sample column and one group column.

csv
sample,group
Sample1,control
Sample2,treatment
Sample3,treatment
Gene Set File

CSV with gene and cell_type; immunity_class is optional.

csv
gene,cell_type,immunity_class
CXCL9,Activated CD8 T cell,Adaptive
CD3D,Activated CD8 T cell,Adaptive

Output Files

FileDescription
data/ssgsea_list.rdsSerialized analysis result object
table/ssgsea_scores_long.csvLong-format immune infiltration scores
table/ssgsea_scores_wide.csvWide-format immune infiltration score matrix
table/ssgsea_group_compare.csvCase-vs-control comparison summary
table/immune_cell_correlation_matrix.csvImmune-cell Spearman correlation matrix
table/immune_cell_correlation_pvalue.csvCorrelation p-value matrix
plot/immune_cell_composition_sample.pdfSample-level composition plot; generated only when --make_plots=true
plot/immune_group_boxplot.pdfGroup comparison boxplot; generated only when --make_plots=true
plot/immune_correlation_heatmap.pdfImmune-cell correlation heatmap; generated only when --make_plots=true
plot/gene_immune_correlation_scatter_*.pdfAuto-selected gene-vs-cell scatter plot; generated only when --make_plots=true
run_record.txtStructured execution record
output_manifest.txtOutput file manifest with descriptions
session_info.txtR session information

Error Handling

ErrorCauseSolution
SKILL_FILE_NOT_FOUNDInput file path is invalidCheck file paths
SKILL_MISSING_COLUMNSRequired columns are absentFix the input schema
SKILL_EMPTY_DATANo usable rows, gene sets, or aligned samples remainCheck IDs and filters
SKILL_INVALID_PARAMETERCLI value is invalid or data is malformedReview arguments and file content
SKILL_SAMPLE_MISMATCHExpression and group samples do not alignHarmonize sample identifiers
SKILL_PACKAGE_NOT_FOUNDRequired R package is missingInstall the missing package
SKILL_TIMEOUTThe configured time limit was exceededIncrease --timeout_seconds or disable it with 0

Testing

bash
Rscript scripts/main.R --help

Rscript tests/run_tests.R

Rscript tests/test_skill.R

tests/test_skill.R is self-contained: if expected outputs are absent, it first runs tests/run_tests.R and then validates both file presence and core result structure.

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 16 other files (scripts, references) in awesome-med-research-skills/Data Analysis/ssgsea-immune-infiltration-analysis of aipoch/medical-research-skills.

  • SKILL.md
  • eval_report_ssgsea-immune-infiltration-analysis_result.json
  • references/algorithm.md
  • references/cli-guide.md
  • references/troubleshooting.md
  • scripts/cli_options.R
  • scripts/functions.R
  • scripts/io.R
  • scripts/main.R
  • scripts/recording.R
  • scripts/run_analysis.R
  • scripts/utils.R
  • scripts/visualization.R
  • tests/data/expression_matrix.csv
  • tests/data/group_info.csv
  • tests/data/immune_gene_sets.csv
  • tests/run_tests.R

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Ssgsea Immune Infiltration Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ssgsea Immune Infiltration Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ssgsea Immune Infiltration Analysis this skillaipoch/medical-research-skills1.9k—~1.7kAutomated safety check: PassMIT
Alphagenome Single Variant Analysisgoogle-deepmind/science-skills3.2k2 repos~3kAutomated safety check: NotesApache-2.0
13C Metabolic Flux AnalysisK-Dense-AI/scientific-agent-skills48k1 repos~3.2kAutomated safety check: PassMIT
Clinvar Databasegoogle-deepmind/science-skills3.2k2 repos~3.9kAutomated safety check: NotesApache-2.0
Metabolic Study Planneraiming-lab/AutoResearchClaw15k—~1.9kAutomated safety check: PassMIT
Dbsnp Databasegoogle-deepmind/science-skills3.2k2 repos~3.4kAutomated safety check: NotesApache-2.0

Similar skills

  • Alphagenome Single Variant Analysis

    google-deepmind/science-skills

    Analyzes genetic variant effects on gene expression (RNA-seq), chromatin accessibility (DNASE), histone marks (ChIP), and transcription factors using the AlphaGenome API.

    3.2k GitHub starsUsed in 2 repos~3k tokens
    Research & ScienceAuto-check: notes
  • 13C Metabolic Flux Analysis

    K-Dense-AI/scientific-agent-skills

    Estimates reaction fluxes inside cells from steady-state carbon-13 labeling data with a bundled mfapy-based solver, and reports which fluxes the data pin down.

    48k GitHub starsUsed in 1 repo~3.2k tokens
    Research & ScienceAuto-check passed
  • Clinvar Database

    google-deepmind/science-skills

    A skill your agent uses when needing clinical significance, pathogenicity classifications (e.g., Pathogenic, Benign, VUS), clinical evidence rationales, or finding "hard positive" benchmark controls…

    3.2k GitHub starsUsed in 2 repos~3.9k tokens
    Research & ScienceAuto-check: notes
  • Metabolic Study Planner

    aiming-lab/AutoResearchClaw

    Turns a broad metabolic modelling topic into a concrete, paper-shaped plan with organism, model, perturbations, metrics and figures before any FBA code is written.

    15k GitHub stars~1.9k tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed
  • Dbsnp Database

    google-deepmind/science-skills

    A skill your agent uses when you want to look up, map, and search for short genetic variants (SNPs, indels) in NCBI's dbSNP database.

    3.2k GitHub starsUsed in 2 repos~3.4k tokens
    Research & ScienceAuto-check: notes
  • MFA Pipeline Orchestrator

    aiming-lab/AutoResearchClaw

    Runs a metabolic flux analysis from model loading to phenotype prediction and figures by handing work to four sub-agents in sequence.

    15k GitHub stars~923 tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed

More from aipoch/medical-research-skills

All 578 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    1.9k GitHub stars~2.2k tokensUpdated 24 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    1.9k GitHub stars~1.4k tokensUpdated 24 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    1.9k GitHub stars~3.7k tokensUpdated 24 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    1.9k GitHub stars~1.8k tokensUpdated 24 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    1.9k GitHub stars~1.7k tokensUpdated 24 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    1.9k GitHub stars~1.3k tokensUpdated 24 days ago
    Auto-check passed

Questions about Ssgsea Immune Infiltration Analysis

What does Ssgsea Immune Infiltration Analysis do?

A skill your agent uses when estimating immune infiltration from bulk RNA-seq expression matrices with ssGSEA/GSVA, comparing case versus control groups, and generating downstream immune-score…. Ssgsea Immune Infiltration Analysis is an agent skill from aipoch/medical-research-skills. Use when estimating immune infiltration from bulk RNA-seq expression matrices with ssGSEA/GSVA, comparing case versus control groups, and generating downstream immune-score visualizations.

When should I use Ssgsea Immune Infiltration Analysis?

Ssgsea Immune Infiltration Analysis fits situations like: estimating immune infiltration from bulk RNA-seq expression matrices with ssGSEA/GSVA; comparing case versus control groups; generating downstream immune-score visualizations.

How do I install Ssgsea Immune Infiltration Analysis in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill ssgsea-immune-infiltration-analysis -a claude-code`. Or copy the skill folder (awesome-med-research-skills/Data Analysis/ssgsea-immune-infiltration-analysis in aipoch/medical-research-skills) into .claude/skills/ssgsea-immune-infiltration-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Ssgsea Immune Infiltration Analysis in Codex?

Run `npx skills add aipoch/medical-research-skills --skill ssgsea-immune-infiltration-analysis -a codex`. Or copy the skill folder (awesome-med-research-skills/Data Analysis/ssgsea-immune-infiltration-analysis in aipoch/medical-research-skills) into .agents/skills/ssgsea-immune-infiltration-analysis in your project. Codex loads it when a task matches its description.

Can I use Ssgsea Immune Infiltration Analysis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill ssgsea-immune-infiltration-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ssgsea-immune-infiltration-analysis, .gemini/skills/ssgsea-immune-infiltration-analysis, .github/skills/ssgsea-immune-infiltration-analysis and .opencode/skills/ssgsea-immune-infiltration-analysis in your project.

What does Ssgsea Immune Infiltration Analysis need to run?

Going by SKILL.md and its folder, Ssgsea Immune Infiltration Analysis needs R for the scripts in its folder.

Does Ssgsea Immune Infiltration Analysis access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ssgsea Immune Infiltration Analysis safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Ssgsea Immune Infiltration Analysis use?

Ssgsea Immune Infiltration Analysis is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ssgsea Immune Infiltration Analysis use?

About 1.7k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.8k tokens, read only when the agent opens those files.

What are the alternatives to Ssgsea Immune Infiltration Analysis?

Skills that share tags, products or a category with Ssgsea Immune Infiltration Analysis: Alphagenome Single Variant Analysis (google-deepmind/science-skills, 3.2k stars), 13C Metabolic Flux Analysis (K-Dense-AI/scientific-agent-skills, 48k stars), Clinvar Database (google-deepmind/science-skills, 3.2k stars) and Metabolic Study Planner (aiming-lab/AutoResearchClaw, 15k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ssgsea Immune Infiltration Analysis?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,937 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.