Skip to content

Commit 84bb901

Browse files
committed
Autodownload TCR data if missing
1 parent 3c91df0 commit 84bb901

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

singlecell/resources/chunks/SummarizeTCellActivation.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ for (datasetId in names(seuratObjects)) {
1010
printName(datasetId)
1111
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]])
1212

13+
if (!'HasCDR3Data' %in% names(seuratObj@meta.data)){
14+
seuratObj <- seuratObj <- Rdiscvr::DownloadAndAppendTcrClonotypes(seuratObj, allowMissing = FALSE)
15+
}
16+
1317
outFile <- paste0(outputPrefix, '.', makeLegalFileName(datasetId), '.activation.txt')
1418
Rdiscvr::SummarizeTNK_Activation(seuratObj, outFile = outFile, xFacetField = xFacetField, groupingFields = groupingFields, activationFieldName = activationFieldName, threshold = threshold)
1519

0 commit comments

Comments
 (0)