bio-tcr-bcr-analysis-scirpy-analysis
Installation
SKILL.md
Version Compatibility
Reference examples tested with: MiXCR 4.6+, VDJtools 1.2.1+, scanpy 1.10+
Before using code patterns, verify installed versions match. If versions differ:
- Python:
pip show <package>thenhelp(module.function)to check signatures
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
scirpy Analysis
"Analyze single-cell TCR/BCR with gene expression" → Integrate immune receptor clonotype data with scRNA-seq gene expression for joint analysis of clonal expansion and cell state.
- Python:
scirpy.io.read_10x_vdj(),scirpy.tl.clonal_expansion(),scirpy.tl.clonotype_network()
Load VDJ Data
Goal: Import single-cell VDJ annotations and integrate them with an existing scRNA-seq AnnData object.