Back to Blog
5 min read

How to Compute ESTIMATE Immune Score from Bulk RNA-Seq? An AI Agent Workflow

AIPOCH's Estimate Immune Score Analysis skill computes ImmuneScore, StromalScore, and TumorPurity from bulk RNA-seq expression matrices with structured heatmap and grouped comparison outputs.An optional sample group file can also be provided in CSV or TSV format. This file is used for grouped boxplots and significance testing when researchers want to compare ESTIMATE scores across predefined sample groups.

AIPOCHJune 5, 2026

The Estimate Immune Score Analysis skill from AIPOCH is an AI agent skill helps researchers run ESTIMATE-based tumor microenvironment scoring from compatible tumor bulk RNA-seq or microarray expression matrices. Despite commonly used upstream exploratory analysis, running ESTIMATE reproducibly requires manual R scripting, gene identifier formatting, platform-specific parameter management, and separate visualization code for heatmaps and grouped comparisons. The workflow can generate StromalScore, ImmuneScore, ESTIMATEScore, and TumorPurity outputs when available. AIPOCH offers this skill through its Medical Research Agent Skills library to help researchers automate and reuse this workflow with ease.

What the Estimate Immune Score Analysis Skill Does?

Given a bulk transcriptomic expression matrix, this skill runs the ESTIMATE workflow, generates standardized score outputs, and produces an ESTIMATE score heatmap. When a sample group file is also provided, it additionally performs group-wise score comparison and exports boxplots plus significance summary tables, supporting fast and standardized tumor microenvironment analysis.

The skill is open-source and available in the AIPOCH medical research skills repository on GitHub. Estimate Immune Score Analysis Skill

When Not to Use this skill?

  • Immune cell fraction estimation: use a CIBERSORT-like deconvolution workflow instead
  • Differential testing between biological groups: use a differential analysis skill instead
  • Single-cell analysis: use a single-cell-specific workflow
  • Clinical diagnosis or treatment decision support: do not use this skill

Input Validation

This skill accepts:

  • one bulk expression matrix in CSV or TSV format with genes in the first column and samples in the remaining columns
  • an optional sample group file in CSV or TSV format for grouped boxplots and significance testing
  • requests to compute ESTIMATE-derived StromalScore, ImmuneScore, ESTIMATEScore, TumorPurity, and related visualizations from bulk transcriptomic data

Output Files

FileDescription
data/expression_input.tsvTab-delimited expression matrix prepared for ESTIMATE
data/estimate_input.gctGCT file created by estimate::filterCommonGenes()
data/estimate_score.gctRaw ESTIMATE score output from estimate::estimateScore()
table/estimate_scores.tsvReformatted sample-by-score table
plot/estimate_scores_heatmap.pdfSample-level ESTIMATE score heatmap
table/estimate_score_group_stats.csvPer-score p-values and the group with the higher median score when --group_file is provided
plot/estimate_scores_boxplot.pdfESTIMATE score boxplot when --group_file is provided
session_info.txtR session and package version information
output_manifest.txtAppend-only output file manifest with descriptions
run_record.txtAppend-only run record with parameters, runtime, and output summary

How to Run ESTIMATE Immune Score Analysis with AI: Step-by-Step Workflow

The example is for demonstration purposes only. Sample data, model parameters, and output values shown are illustrative and do not represent any real clinical cohort or validated research

The two images below show a demo of the expected ​workflow when running the estimate-immune-score-analysis skill via OpenClaw.

ESTIMATE Immune Score Analysis

Step 1 — Prepare Your Inputs

The researcher prepares two CSV files:

Then uploads both files to the AI agent and types a natural language request:

Run ESTIMATE on this 8-sample bulk expression matrix and compare Tumor vs Healthy on Stromal, Immune, and ESTIMATE scores.

Step 2 — Execute the ESTIMATE Scoring Workflow

ESTIMATE Immune Score Analysis

AI agent locates and runs the skill, walking through these stages:

  1. Searches Skills Hub → finds AIPOCHestimate-immune-score-analysis
  2. Loads the expression matrix and validates sample groups
  3. Filters to overlapping genes and identifies Stromal/Immune signature genes
  4. Computes ​StromalScore​, ​ImmuneScore​, ​ESTIMATEScore​, and TumorPurity per sample
  5. Runs group comparison (Tumor vs Healthy) and reports statistics

Step 3 — Review Structured Outputs

FileFormatContent
estimate_scores.tsvTSVPer-sample raw scores
estimate_score_group_stats.csvCSVGroup-level statistics
estimate_scores_heatmap.pdfPDFScore heatmap across samples
estimate_scores_boxplot.pdfPDFBoxplot comparing Tumor vs Healthy

Watch the Full Demo

Want to see how an AI agent runs ESTIMATE immune score analysis? Watch the complete workflow demonstration on YouTube, including data upload, analysis execution, and structured result generation.

Watch the video: the Estimate Immune Score Analysis Skill workflow demonstration

R Package (Manual) vs. AIPOCH Agent Skill: Workflow Comparison

TaskR Package (Manual)AIPOCH Agent Skill
Format expression matrix for ESTIMATEManual R scripting across multiple stepsSkill handles matrix preparation and gene identifier conversion
Run filterCommonGenes + estimateScoreSequential R calls requiring package setupCLI entry point executes both steps in sequence
Generate ESTIMATE score heatmapSeparate visualization script requiredHeatmap PDF produced with each run
Grouped boxplot + significance tableAdditional custom R code per comparisonOptional group file activates boxplot and stats table output
Record run parameters and outputsManually noted or informally trackedrun_record.txt and output_manifest.txt maintained automatically
Error diagnosisManual inspection of R console outputStructured SKILL_* error codes with defined resolutions
Reproducible re-executionSeed must be set and tracked manually--seed parameter recorded in run record for every run

Who Can Use ESTIMATE Immune Score Analysis

Biomedical researchers running bulk RNA-seq or microarray analyses who need ESTIMATE-based ImmuneScore and StromalScore computation as part of a larger bioinformatics workflow are the primary users. Computational biologists preprocessing TCGA or GEO datasets, bioinformaticians organizing tumor microenvironment scoring for downstream signature or prognosis analyses, systematic review teams building evidence tables around immune contexture, translational medicine teams structuring TME data for comparative analysis, and graduate students learning reproducible bioinformatics workflows may all find this skill useful as a structured workflow support tool.

Conclusion

The Estimate Immune Score Analysis skill from AIPOCH is an AI agent skill designed to help researchers compute ESTIMATE immune score analysis outputs — ImmuneScore, StromalScore, ESTIMATEScore, and TumorPurity — from bulk RNA-seq or microarray expression matrices. It can assist researchers in reducing repetitive manual preprocessing steps in the estimate R package workflow, organizing tumor microenvironment scoring outputs into standardized files, and supporting reproducible execution through seed control and append-only run records. All outputs require independent researcher interpretation before use in any research context.

AIPOCH is a collection of Medical Research Agent Skills created to support AI-assisted biomedical research workflows across literature review, evidence organization, bioinformatics preprocessing, data analysis support, and research writing tasks. Explore the full AIPOCH skill library or browse the medical research skills source repository.

FAQ

What input does the Estimate Immune Score Analysis skill require?

The skill requires one bulk expression matrix in CSV or TSV format, with genes in the first column and samples in the remaining columns.

An optional sample group file can also be provided in CSV or TSV format. This file is used for grouped boxplots and significance testing when researchers want to compare ESTIMATE scores across predefined sample groups.

Can the skill be used with ​RNA-seq data?

Yes. The skill can be used with normalized bulk RNA-seq expression matrices, such as log2(TPM + 1). Raw count matrices are not recommended.

What is this skill not intended for?

This skill is not designed for immune cell deconvolution, single-cell analysis, differential expression, clinical diagnosis.

Disclaimer

This article is intended for informational purposes only and does not constitute medical advice, clinical guidance, diagnostic recommendations, treatment decisions, or validated scientific conclusions.

Any sample data, model parameters, output values, or workflow examples shown in this article are for demonstration purposes only. They do not represent real clinical cohorts, validated research findings, or guaranteed results from use of the skill.

The Estimate Immune Score Analysis skill available through AIPOCH is a research workflow support skill. All outputs it produces require independent verification and expert interpretation before use in any research or clinical context. The skill does not replace researcher judgment, and researchers remain fully responsible for evaluating the accuracy, completeness, and appropriateness of any outputs generated.

References and external links in this article are provided for informational purposes. AIPOCH does not endorse and is not responsible for the content of third-party sources.