immune-deconvolution

immune-deconvolution is a skill for Claude Code, Codex from zamushwani/biomedical-ai-skills. It costs 0 tokens per session (5,252 once invoked), scanned A, original, MIT.

A way to estimate which immune and support cells are present in a tissue sample from bulk RNA sequencing, where gene activity is measured across many mixed cells. It applies several established cell-mixture estimation methods through one interface.

In plain words
What is it for?
Use it to estimate immune infiltration, tumour purity, stromal content, and immune subtypes from TPM expression data. It also supports comparing samples with several deconvolution methods.
Why use it?
Bulk sequencing combines signals from all cells, so it does not directly show the tissue’s cell composition. These estimates help separate changes in immune or stromal cells from changes in the cells being studied.

Skill for Claude CodeCodex

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

Good fit Use it to estimate immune infiltration, tumour purity, stromal content, and immune subtypes from TPM expression data. It also supports comparing samples with several deconvolution methods.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zamushwani/biomedical-ai-skills/immune-deconvolution
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 zamushwani/biomedical-ai-skills --skill immune-deconvolution
Clone the repo
git clone --depth 1 https://github.com/zamushwani/biomedical-ai-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 immune-deconvolution

README.md
[![agentmods](https://agentmods.dev/badge/skills/zamushwani/biomedical-ai-skills/immune-deconvolution/github.svg)](https://agentmods.dev/skills/zamushwani/biomedical-ai-skills/immune-deconvolution)
Your own site
<a href="https://agentmods.dev/skills/zamushwani/biomedical-ai-skills/immune-deconvolution"><img src="https://agentmods.dev/badge/skills/zamushwani/biomedical-ai-skills/immune-deconvolution/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 immune-deconvolution

Your own site · 80×15
<a href="https://agentmods.dev/skills/zamushwani/biomedical-ai-skills/immune-deconvolution"><img src="https://agentmods.dev/badge/skills/zamushwani/biomedical-ai-skills/immune-deconvolution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,252 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.
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.00000 $0.05252
Opus 5 $0.00000 $0.02626
Sonnet 5 $0.00000 $0.01050
Haiku 4.5 $0.00000 $0.00525

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

Security

Grade A, and why

immune-deconvolution 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 11d 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.

skills/immune-deconvolution/SKILL.md · 480 lines

How it starts

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

Immune Deconvolution

Estimate immune and stromal cell composition from bulk RNA-seq using multiple algorithms. Wraps CIBERSORT, quanTIseq, EPIC, xCell, MCP-counter, TIMER, and ESTIMATE through the immunedeconv unified interface.

When to Use This Skill

Activate when the user requests:

  • Immune cell type estimation from bulk RNA-seq or microarray
  • Tumor microenvironment characterization
  • Immune subtype classification across a cancer cohort
  • Tumor purity estimation from expression data
  • Comparison of immune infiltration between conditions or subtypes
  • Multi-method deconvolution benchmarking

Inputs

Data Type Format Source
Expression TPM matrix (genes x samples), not log-transformed TCGA via TCGAbiolinks, GEO
Clinical Tabular (subtype, stage, outcome) TCGA GDC, cBioPortal
Signature matrix LM22.txt (for CIBERSORT only) cibersortx.stanford.edu (registration required)

All methods except TIMER and ESTIMATE need TPM with HGNC gene symbols as rownames. Raw counts and Ensembl IDs will produce wrong results silently.


Preparing Input from TCGA

library(TCGAbiolinks)
library(SummarizedExperiment)

query <- GDCquery(
  project = "TCGA-BRCA",
  data.category = "Transcriptome Profiling",
  data.type = "Gene Expression Quantification",
  workflow.type = "STAR - Counts"
)
GDCdownload(query, directory = "GDCdata")
se <- GDCprepare(query, directory = "GDCdata")

# Extract TPM — immunedeconv needs TPM, not counts
tpm <- assay(se, "tpm_unstrand")

# Convert Ensembl IDs to gene symbols
library(org.Hs.eg.db)
symbols <- mapIds(org.Hs.eg.db,
  keys = sub("\\..*", "", rownames(tpm)),
  keytype = "ENSEMBL", column = "SYMBOL", multiVals = "first")

# Drop unmapped genes, resolve duplicates by keeping highest mean expression
tpm <- tpm[!is.na(symbols), ]
rownames(tpm) <- symbols[!is.na(symbols)]

# Deduplicate: quanTIseq crashes on duplicate rownames
dups <- duplicated(rownames(tpm))
if (any(dups)) {
  means <- rowMeans(tpm)
  keep <- !duplicated(rownames(tpm)) |
    (duplicated(rownames(tpm)) & means == ave(means, rownames(tpm), FUN = max))
  tpm <- tpm[keep, ]
  tpm <- tpm[!duplicated(rownames(tpm)), ]  # safety net
}

# Keep only tumor samples for deconvolution
tumor_barcodes <- colData(se)$sample_type == "Primary Tumor"
tpm_tumor <- tpm[, tumor_barcodes]

Read the full file on GitHub · 480 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 480 lines · 0 tokens per session scan A a5b8fd90c4ce

Subscribe to this mod's changes

immune-deconvolution is a skill published in the GitHub repository zamushwani/biomedical-ai-skills (1 stars, last pushed 12d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,252 tokens. 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-31.

Related

Other skills, from other repositories

automated-soap-note-generator

Generate structured SOAP notes from clinical narratives, transcripts, or existing notes; use when the user needs de-identified clinical documentation organized into Subjective, Objective, Assessment, and Plan sections, with clear assumptions and review points.

aipoch/medical-research-skills · 51 tokens

gsva-analysis-and-visualization

Use this skill to run GSVA or ssGSEA pathway-level differential analysis from a bulk expression matrix and a sample group file, then generate a heatmap from the saved GSVA result object. Trigger keywords: GSVA, ssGSEA, pathway enrichment, KEGG pathway analysis, MSigDB. NOT for: gene-level differential expression…

aipoch/medical-research-skills · 88 tokens

medical-research-literature-reader-pro

A medical-research-native literature reading skill for users with clinical, bioinformatics, translational, and basic experimental backgrounds. Use this skill whenever a user wants to read, analyze, critique, or interpret a medical or scientific paper — whether they provide a PDF, abstract, DOI, PMID, or just a title.…

aipoch/medical-research-skills · 199 tokens

anatomy-quiz-master

Generate interactive anatomy quizzes for medical education with multiple.

aipoch/medical-research-skills · 17 tokens

find-paper-references

Automatically find references for academic paper Markdown files. Reads full paper text, identifies each knowledge point requiring citation (epidemiological data, mechanism descriptions, existing research conclusions, etc.), searches PubMed for 3-5 most relevant articles per kn...

aipoch/medical-research-skills · 55 tokens

graph-interpretation

Use when interpreting scientific graphs and charts, explaining data visualizations for research presentations, writing figure captions for publications, or analyzing trends in clinical research data. Converts complex visual data into clear, accurate explanations for academic papers, clinical reports, and public…

aipoch/medical-research-skills · 55 tokens