Skip to content

Commit 2d1f04d

Browse files
committed
Summarize tcrClustR results
1 parent a0ef885 commit 2d1f04d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

singlecell/resources/chunks/PerformTcrClustering.R

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ for (datasetId in names(seuratObjects)) {
1616
clusterSizeThreshold = 1
1717
)
1818

19+
print(paste0('Summary of distances: '))
20+
if (!'TCR_Distances' %in% names(seuratObj@misc)) {
21+
warning('No TCR_Distances were found, this could indicate a problem with processing')
22+
} else {
23+
for (an in names(seuratObj@misc$TCR_Distances)) {
24+
ad <- seuratObj@misc$TCR_Distances[[an]]
25+
print(paste0('Assay: ', an, ', total clones: ', nrow(ad)))
26+
}
27+
}
28+
1929
saveData(seuratObj, datasetId)
2030

2131
# Cleanup

0 commit comments

Comments
 (0)