tooluniverse-immune-repertoire-analysis
Comprehensive immune repertoire analysis for T-cell and B-cell receptor sequencing data. Analyze TCR/BCR repertoires to assess clonality, diversity, V(D)J gene usage, CDR3 characteristics, convergence, and predict epitope specificity. Integrate with single-cell data for clonotype-phenotype associations. Use for adaptive immune response profiling, cancer immunotherapy research, vaccine response assessment, autoimmune disease studies, or repertoire diversity analysis in immunology research.
npx skills add BioTender-max/awesome-bio-agent-skills --skill tooluniverse-immune-repertoire-analysis --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Comprehensive skill for analyzing T-cell receptor (TCR) and B-cell receptor (BCR) repertoire sequencing data to characterize adaptive immune responses, clonal expansion, and antigen specificity.
How it works
The skill provides an 8-phase workflow:
- Phase 1: Data Import & Clonotype Definition
- Load AIRR-seq data from formats like MiXCR, ImmunoSEQ, AIRR, or 10x Genomics output.
- Define clonotypes using criteria such as CDR3 amino acid, CDR3 nucleotide, or V/J+CDR3 composition, then aggregate by clonotype to obtain counts and frequencies.
- Phase 2: Diversity & Clonality Analysis
- Calculate diversity metrics: Shannon entropy, Simpson index, inverse Simpson, Gini coefficient, richness, and clonality/evenness.
- Perform rarefaction analysis via resampling to assess sampling depth and richness.
- Phase 3: V(D)J Gene Usage Analysis
- Analyze V and J gene usage, including V-J pairing frequencies, and perform a chi-square test for biased usage.
- Phase 4: CDR3 Sequence Analysis
- Assess CDR3 length distribution (weighted by counts) and report mean/median lengths.
- Analyze amino acid composition of CDR3 regions weighted by clonotype frequencies.
- Phase 5: Clonal Expansion Detection
- Identify expanded clonotypes using frequency thresholds (e.g., top percentile) and report counts and relative expansion.
- Longitudinal Clonotype Tracking
- Track clonotype frequencies across timepoints, computing persistence, mean, and max frequencies, and output a persistence-ranked table.
- Throughout, the tool uses provided code blocks to load data, define clonotypes, compute metrics, and generate plots such as rarefaction curves and CDR3 length distributions.
When to use it
Use when you have AIRR-seq data and want to quantify clonality, diversity, V(D)J usage, CDR3 properties, clonal expansion, and longitudinal clonotype dynamics; also to integrate with single-cell phenotyping for clonotype-phenotype associations.
What it can touch
- Uses data inputs via Python code paths for formats: 'mixcr', '10x', 'airr'.
- Reads columns like cloneId, count, frequency, cdr3aa, cdr3nt, v_gene, j_gene, chain, cdr3_length.
- Performs computations and plotting with libraries such as pandas, numpy, scipy, and matplotlib.
Caveats
- License: NOASSERTION
- The skill relies on having compatible input column names; mismatches may require data preprocessing.
- Statistical tests assume proper normalization; observed frequencies are used for some analyses.
- Plots require rendering in an environment with plotting support (matplotlib).
# ToolUniverse Immune Repertoire Analysis Comprehensive skill for analyzing T-cell receptor (TCR) and B-cell receptor (BCR) repertoire sequencing data to characterize adaptive immune responses, clonal expansion, and antigen specificity. ## Overview Adaptive immune receptor repertoire sequencing (AIRR-seq) enables comprehensive profiling of T-cell and B-cell populations through high-throughput sequencing of TCR and BCR variable regions. This skill provides an 8-phase workflow for: - Clonotype identification and tracking - Diversity and clonality assessment - V(D)J gene usage analysis - CDR3 sequence characterization - Clonal expansion and convergence detection - Epitope specificity prediction - Integration with single-cell phenotyping - Longitudinal repertoire tracking ## Core Workflow ### Phase 1: Data Import & Clonotype Definition **Load AIRR-seq Data** ```python import pandas as pd import numpy as np from collections import Counter def load_airr_data(file_path, format='mixcr'): """ Load immune repertoire data from common formats. Supported formats: - 'mixcr': MiXCR output - 'immunoseq': Adaptive Biotechnologies ImmunoSEQ - 'airr': AIRR Community Standard - '10x': 10x Genomics VDJ
- Overview
- Core Workflow
- Phase 1: Data Import & Clonotype Definition
- Phase 2: Diversity & Clonality Analysis
- Phase 3: V(D)J Gene Usage Analysis
- Phase 4: CDR3 Sequence Analysis
- Phase 5: Clonal Expansion Detection
- Phase 6: Convergence & Public Clonotypes
- Phase 7: Epitope Prediction & Specificity
- Phase 8: Integration with Single-Cell Data
- Advanced Use Cases
- Use Case 1: Cancer Immunotherapy Response Analysis
- Use Case 2: Vaccine Response Tracking
- Use Case 3: Autoimmune Disease Repertoire Analysis
What does the tooluniverse-immune-repertoire-analysis skill do?
Comprehensive immune repertoire analysis for T-cell and B-cell receptor sequencing data. Analyze TCR/BCR repertoires to assess clonality, diversity, V(D)J gene usage, CDR3 characteristics, convergence, and predict epitope specificity. Integrate with single-cell data for clonotype-phenotype associations. Use for adaptive immune response profiling, cancer immunotherapy research, vaccine response assessment, autoimmune disease studies, or repertoire diversity analysis in immunology research.
How do I install it?
Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill tooluniverse-immune-repertoire-analysis --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
