Skip to content

Commit

Permalink
Autodownload TCR data if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Mar 4, 2024
1 parent 3c91df0 commit 84bb901
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions singlecell/resources/chunks/SummarizeTCellActivation.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ for (datasetId in names(seuratObjects)) {
printName(datasetId)
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]])

if (!'HasCDR3Data' %in% names(seuratObj@meta.data)){
seuratObj <- seuratObj <- Rdiscvr::DownloadAndAppendTcrClonotypes(seuratObj, allowMissing = FALSE)
}

outFile <- paste0(outputPrefix, '.', makeLegalFileName(datasetId), '.activation.txt')
Rdiscvr::SummarizeTNK_Activation(seuratObj, outFile = outFile, xFacetField = xFacetField, groupingFields = groupingFields, activationFieldName = activationFieldName, threshold = threshold)

Expand Down

0 comments on commit 84bb901

Please sign in to comment.