mixcr-analysis

Analyze bulk TCR and BCR repertoires from amplicon FASTQ data using MiXCR.

Updated May 28, 2026
One-click install
npx skills add https://github.com/cpanse/skills --skill mixcr-analysis-cpanse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mixcr-analysis
Source: https://github.com/cpanse/skills/tree/main/sequencing-pipelines/skills/mixcr-analysis
Command: npx skills add https://github.com/cpanse/skills --skill mixcr-analysis-cpanse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve? Processing bulk TCR/BCR amplicon sequencing data into interpretable repertoire metrics requires coordinating MiXCR alignment, clonotype assembly, chain-specific export, and diversity statistics, which is error-prone without a standardized workflow. ## Core Features & Use Cases - MiXCR Processing Workflow: Align reads to V(D)J references, assemble clonotypes by CDR3, and select the correct preset (generic-amplicon, QIAseq, Takara) for the data type. - Chain-Specific Clonotype Export: Export TRA, TRB, TRD, TRG (TCR) or IGH, IGK, IGL (BCR) clonotype tables with gene annotations and CDR3 sequences. - Diversity Analysis in R: Calculate Shannon entropy, Simpson clonality, and top-clone fractions, then generate boxplots, V gene usage charts, and interactive HTML reports. - Use Case: An FGCZ analyst receives demultiplexed QIAseq TCR FASTQs for project p35802, submits an SBATCH job to run MiXCR across all samples, exports TRB clonotypes, and delivers a rendered R Markdown report with clonality comparisons to gstore. ## Quick Start Ask the agent to process your demultiplexed TCR FASTQ files with MiXCR using the generic-amplicon preset and generate a clonality report for your project.

Frequently Asked Questions about mixcr-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze bulk TCR sequencing data with MiXCR?

Run mixcr analyze with the generic-amplicon preset on paired-end FASTQs, specifying species, --rna, and CDR3-based clonotype assembly. Then use mixcr exportClones with --chains to export TRA, TRB, TRD, and TRG tables for downstream R analysis.

Which MiXCR preset should I use for QIAseq TCR data?

Use qiagen-human-rna-tcr-umi-qiaseq only if barcodes are still in the R2 sequence. If FASTQs are already demultiplexed with barcodes in the header, switch to generic-amplicon to avoid over 90% barcode extraction failures.

Can MiXCR analyze 10x Genomics VDJ data?

MiXCR is intended here for bulk amplicon data, not single-cell. For 10x VDJ data, use a single-cell workflow such as the scRepertoire skill instead of this bulk processing pipeline.

Why does MiXCR show a low alignment rate below 50%?

Low alignment usually means the wrong species was specified, the reads contain non-TCR/BCR contamination, poor sequencing quality, or a mismatched preset. Check the align report with grep for 'Successfully aligned' and verify quality with FastQC.

What is Simpson clonality in TCR repertoire analysis?

Simpson clonality is 1 minus Shannon entropy normalized by log of clone count, ranging from 0 (perfectly diverse) to 1 (monoclonal). Healthy blood repertoires typically score 0.01-0.10, while tumor-infiltrating samples often exceed 0.10.

Why is my TRD or TRG clonotype export file empty?

Empty TRD or TRG files are normal when samples are dominated by alpha-beta T cells, since gamma-delta chains are rare unless specifically enriched. Verify alignment succeeded first, then confirm the chain is biologically expected in your sample type.