cibersort-immune-infiltration-analysis

cibersort-immune-infiltration-analysis is a skill for Claude Code, Codex from aipoch/medical-research-skills. It costs 92 tokens per session (2,443 once invoked), scanned A, original, MIT.

An analysis workflow that estimates the relative amounts of immune cell types in a bulk gene-expression matrix, a table of gene activity measured across mixed cells.

In plain words
What is it for?
Use it for CIBERSORT-style analysis with an LM22 signature matrix, producing result tables, a saved result object, and optional PDF plots.
Why use it?
It separates mixed biological samples into estimated immune-cell fractions so one case group can be compared with one control group. It is not intended for single-cell data or treatment decisions.

Skill for Claude CodeCodex

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

Good fit Use it for CIBERSORT-style analysis with an LM22 signature matrix, producing result tables, a saved result object, and optional PDF plots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aipoch/medical-research-skills/cibersort-immune-infiltration-analysis
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 cibersort-immune-infiltration-analysis
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 cibersort-immune-infiltration-analysis

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aipoch/medical-research-skills/cibersort-immune-infiltration-analysis"><img src="https://agentmods.dev/badge/skills/aipoch/medical-research-skills/cibersort-immune-infiltration-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,443 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.00092 $0.02443
Opus 5 $0.00046 $0.01222
Sonnet 5 $0.00018 $0.00489
Haiku 4.5 $0.00009 $0.00244

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

Security

Grade A, and why

cibersort-immune-infiltration-analysis 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/cibersort-immune-infiltration-analysis/SKILL.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 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

CIBERSORT Immune Infiltration Analysis

When to Use

  • Estimate relative immune cell fractions from a bulk expression matrix.
  • Compare one case group against one control group after deconvolution.
  • Generate structured tables, a serialized result object, and optional PDF plots.

When Not to Use

  • Single-cell RNA-seq, spatial transcriptomics, or clustering tasks.
  • Absolute clinical interpretation or treatment recommendation.
  • Workflows that require the original online CIBERSORT service instead of a local R implementation.

Workflow

  1. Confirm that the expression matrix, group file, and signature matrix are available.
  2. Run scripts/main.R with the case and control groups.
  3. Review the full result table, derived summary tables, and optional plots.
  4. Inspect run_record.txt and output_manifest.txt after each run, including failed validation attempts.

When to Read External Files

Situation File to Read Purpose
Need to run the analysis scripts/main.R CLI entry point
Need algorithm details references/algorithm.md HQ reference workflow and result interpretation
Encounter an error references/troubleshooting.md Error codes and environment fixes
Need CLI examples or the baseline record references/cli-guide.md Example commands and validation notes
Need packaged test inputs tests/data/ Demo expression matrix, group file, and LM22 file

Usage

Rscript scripts/main.R \
  --input_file ./expression_matrix.csv \
  --group_file ./group_info.csv \
  --signature_file ./LM22.txt \
  --case_group treatment \
  --control_group control \
  --output_dir ./output \
  --qn false \
  --seed 42

Arguments

Short Long Type Default Description
-i --input_file file required Expression matrix with genes as rows and samples as columns
-g --group_file file required Group annotation table
-a --case_group string required Case group label
-b --control_group string required Control group label
-o --output_dir dir ./output Output directory
--signature_file file tests/data/LM22.txt when present Signature matrix file
--sample_col string/int none Optional sample column name or 1-based index
--group_col string/int none Optional group column name or 1-based index
--gene_id_case string upper Gene ID normalization: asis, upper, or lower
--auto_unlog boolean true Apply 2^x only if the expression matrix passes a conservative log-scale heuristic
--min_mean_expression numeric 1 Minimum mean expression before deconvolution
--perm integer 1000 Permutation count for empirical p-value estimation; 0 keeps the run lightweight but records P-value as NA
--qn boolean true Apply quantile normalization to the mixture matrix
--svm_cores integer 1 Worker count for the nu-SVR model selection step
--make_plots boolean true Generate PDF plots
--plot_width numeric 16 Default plot width in inches
--plot_height numeric 10 Default plot height in inches
-s --seed integer 42 Random seed
-t --timeout_seconds integer 0 Optional timeout in seconds; 0 disables it
--verbose boolean true Print progress logs

Read the full file on GitHub · 205 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 · 205 lines · 92 tokens per session scan A 60ddb05f5401

Subscribe to this mod's changes

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

fragment-based-count-matrix-generation

Use when you have a backed AnnData object containing processed fragment data (stored in .obsm['fragmentpaired'] or .

HolobiomicsLab/asb-skill-collections · 33 tokens

methylbase-object-handling

Use when after reading in per-sample methylation call files with methRead() and obtaining methylRawList objects, but before calculating differential methylation or performing annotation.

HolobiomicsLab/asb-skill-collections · 40 tokens

motif-annotation-correlation-analysis

Use when you have a chromVARDeviations object with multiple annotation sets (such as JASPAR motifs and kmers) and need to determine which annotation pairs are redundant (high correlation) versus synergistic (high synergy z-scores).

HolobiomicsLab/asb-skill-collections · 57 tokens

motif-database-query-and-matching

Use when you have a set of differentially accessible peaks (output from differential accessibility testing, e.g., tl.

HolobiomicsLab/asb-skill-collections · 32 tokens

motif-enrichment-statistical-testing

Use when after identifying a set of differentially accessible peaks (via tl.difftest or equivalent), when you need to infer which transcription factors may regulate the observed chromatin state changes.

HolobiomicsLab/asb-skill-collections · 44 tokens

motif-peak-overlap-matching

Use when you have a filtered set of non-overlapping peaks from ATAC-seq data and a collection of motifs (typically from JASPAR or similar databases), and you need to identify which peaks contain matches to which motifs as a prerequisite for computing motif-based deviation scores across samples.

HolobiomicsLab/asb-skill-collections · 66 tokens