一键导入
cdr3clustering
Cluster TCR/BCR clones by CDR3 sequences using GIANA or ClusTCR (both Faiss-based). Adds `CDR3_Cluster` column to metadata for clonotype analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Cluster TCR/BCR clones by CDR3 sequences using GIANA or ClusTCR (both Faiss-based). Adds `CDR3_Cluster` column to metadata for clonotype analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Master skill for generating immunopipe pipeline configurations. Determines pipeline architecture based on data type (scRNA-seq with or without scTCR/BCR-seq) and analysis requirements. Routes to individual process skills for detailed configuration. Use this skill when starting a new immunopipe configuration or modifying pipeline-level options.
Analyzes physicochemical properties of CDR3 amino acid sequences to understand biochemical characteristics of T-cell receptor repertoires. Performs regression analysis between two cell groups at different CDR3 lengths for each physicochemical feature (hydrophobicity, volume, isoelectric point, etc.).
Infer ligand-receptor interactions and cell-cell communication networks from single-cell RNA-seq data using the LIANA+ framework. Identifies potential signaling events between cell types based on gene expression patterns and curated ligand-receptor interaction databases.
Visualize cell-cell communication inference results from CellCellCommunication process. Creates publication-ready network diagrams, heatmaps, and interaction plots to help interpret ligand-receptor interactions between cell types.
Annotates cell clusters with biological cell type labels using multiple methods: direct assignment, ScType, scCATCH, hitype, or CellTypist. This process is essential for interpreting clustering results by assigning meaningful biological identities to each cluster.
Generate comprehensive clonality statistics and diversity visualizations for TCR/BCR repertoire analysis. Quantifies clonal expansion, measures diversity metrics (Shannon, Simpson, Gini), and creates publication-ready plots.
| name | cdr3clustering |
| description | Cluster TCR/BCR clones by CDR3 sequences using GIANA or ClusTCR (both Faiss-based). Adds `CDR3_Cluster` column to metadata for clonotype analysis. |
Cluster TCR/BCR clones by CDR3 sequences using GIANA or ClusTCR (both Faiss-based). Adds CDR3_Cluster column to metadata for clonotype analysis.
Important: Only runs when VDJ input present (TCRData/BCRData columns in SampleInfo).
[CDR3Clustering]
cache = true
[CDR3Clustering.in]
screpfile = "path/to/combined_object.qs"
[CDR3Clustering.envs]
type = "auto" # TCR, BCR, or auto
tool = "GIANA" # GIANA or ClusTCR
python = "python" # Path to python
within_sample = true # Cluster per sample
args = {} # Tool-specific arguments
chain = "both" # TRA, TRB, IGH, IGL, IGK, both, heavy, light
args)[CDR3Clustering.envs.args]
method = "hierarchical" # hierarchical, kmeans
dist = "hamming" # hamming, levenshtein
threshold = 0.15 # Distance threshold
args)[CDR3Clustering.envs.args]
method = "two-step" # mcl, faiss, two-step
n_cpus = 4 # CPUs for MCL
faiss_cluster_size = 5000 # Supercluster size
mcl_params = [1.2, 2] # [inflation, expansion]
[CDR3Clustering]
[CDR3Clustering.in]
screpfile = "intermediate/screpcombiningexpression/combined.qs"
[CDR3Clustering]
[CDR3Clustering.in]
screpfile = "intermediate/screpcombiningexpression/combined.qs"
[CDR3Clustering.envs]
tool = "GIANA"
[CDR3Clustering.envs.args]
method = "hierarchical"
dist = "hamming"
threshold = 0.15
[CDR3Clustering]
[CDR3Clustering.in]
screpfile = "intermediate/screpcombiningexpression/combined.qs"
[CDR3Clustering.envs]
tool = "ClusTCR"
[CDR3Clustering.envs.args]
method = "two-step"
faiss_cluster_size = 5000
n_cpus = 8
[CDR3Clustering]
[CDR3Clustering.in]
screpfile = "intermediate/screpcombiningexpression/combined.qs"
[CDR3Clustering.envs]
tool = "ClusTCR"
[CDR3Clustering.envs.args]
method = "mcl"
n_cpus = 4
[CDR3Clustering]
[CDR3Clustering.in]
screpfile = "intermediate/screpcombiningexpression/combined.qs"
[CDR3Clustering.envs]
chain = "TRB"
[CDR3Clustering]
[CDR3Clustering.in]
screpfile = "intermediate/screpcombiningexpression/combined.qs"
[CDR3Clustering.envs]
within_sample = false
[CDR3Clustering]
[CDR3Clustering.in]
screpfile = "intermediate/screpcombiningexpression/combined.qs"
[CDR3Clustering.envs]
type = "TCR"
tool = "GIANA"
chain = "TRB"
[CDR3Clustering]
[CDR3Clustering.in]
screpfile = "intermediate/screpcombiningexpression/combined.qs"
[CDR3Clustering.envs]
tool = "ClusTCR"
[CDR3Clustering.envs.args]
method = "two-step"
faiss_cluster_size = 5000
n_cpus = 8
[CDR3Clustering]
[CDR3Clustering.in]
screpfile = "intermediate/screpcombiningexpression/combined.qs"
[CDR3Clustering.envs]
tool = "GIANA"
[CDR3Clustering.envs.args]
threshold = 0.15 # Higher=fewer clusters, Lower=more clusters
CDR3_Cluster metadata)"GIANA" or "ClusTCR"method = "mcl" (highest quality)method = "two-step" (balanced)500K sequences: GIANA or ClusTCR
method = "two-step"(fastest)
Cause: No VDJ data available Solution: Verify ScRepCombiningExpression output contains TCR/BCR data
Cause: Missing dependencies Solution:
pip install biopython faiss-cpu scikit-learnconda install -c conda-forge clustcrCause: Threshold inappropriate Solution: Adjust threshold (higher = fewer clusters, lower = more clusters)
Cause: Dataset too large for RAM
Solution: Use within_sample = true, reduce n_cpus, or use GIANA
Cause: Suboptimal method for dataset size Solution:
50K: ClusTCR
method = "two-step"with increased n_cpus
Metadata column: CDR3_Cluster
Cluster naming:
S_1, S_2: Single unique CDR3 sequence (may have multiple cells)M_1, M_2: Multiple unique CDR3 sequences (similar but different)Interpretation:
S_ prefix: Cells share identical CDR3 sequenceM_ prefix: Cells have similar but different CDR3 sequencesCDR3_Cluster as grouping factor in Seurat plotsPerformance Tips: