Dear scRepertoire Developers
I am working with paired single-cell RNA-seq and TCR sequencing data for multiple samples and using the scRepertoire package for my analysis. I have a question regarding the recommended workflow for calculating sample-level TCR diversity metrics.
Specifically, I would like clarification on the proper step for diversity computation. Should I:
Calculate diversity directly using the combined list object generated by combineTCR()?
Or, should I first integrate the TCR data into my Seurat/SingleCellExperiment object using combineExpression(), subset to confirmed T cells based on gene expression, and then perform the diversity calculation on that subset?
While I have observed that both approaches can yield similar trends in some samples, in others, the results show a significant discrepancy. This variation has led to uncertainty about which method provides the most accurate biological interpretation.
I would be very grateful for any guidance on the intended or recommended workflow for this purpose. Understanding the best practice would greatly help ensure the correctness of my downstream analysis.
Thank you for your time and for developing this incredibly useful tool.
Best regards
TCR_list <- lapply(tcr_files, read.csv)
data_tcr <- combineTCR(
TCR_list,
sample = sample_names,
removeNA = TRUE,
removeMulti = TRUE
)
diversity_tcr = clonalDiversity(data_tcr,
cloneCall = "strict",
group.by = "sample",
chain = "both",
metric = "norm.entropy",
exportTable = TRUE,
skip.boots = FALSE )
or
T_sub_Pbmc = combineExpression(
data_tcr,
T_sub_Pbmc,
cloneCall = "strict",
chain = "both",
proportion = TRUE,
cloneSize = c(Rare = 1e-04, Small = 0.001, Medium = 0.01, Large = 0.1, Hyperexpanded = 1)
)
diversity_tcr = clonalDiversity(T_sub_Pbmc,
cloneCall = "strict",
group.by = "sample_id",
chain = "both",
metric = "norm.entropy",
exportTable = TRUE,
skip.boots = FALSE )

Dear scRepertoire Developers
I am working with paired single-cell RNA-seq and TCR sequencing data for multiple samples and using the scRepertoire package for my analysis. I have a question regarding the recommended workflow for calculating sample-level TCR diversity metrics.
Specifically, I would like clarification on the proper step for diversity computation. Should I:
Calculate diversity directly using the combined list object generated by combineTCR()?
Or, should I first integrate the TCR data into my Seurat/SingleCellExperiment object using combineExpression(), subset to confirmed T cells based on gene expression, and then perform the diversity calculation on that subset?
While I have observed that both approaches can yield similar trends in some samples, in others, the results show a significant discrepancy. This variation has led to uncertainty about which method provides the most accurate biological interpretation.
I would be very grateful for any guidance on the intended or recommended workflow for this purpose. Understanding the best practice would greatly help ensure the correctness of my downstream analysis.
Thank you for your time and for developing this incredibly useful tool.
Best regards
or