Skip to content

Commit cba0d2c

Browse files
committed
Add line to ensure non-T/NK cells are not classified as t/nk subsets
1 parent 187dd75 commit cba0d2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

singlecell/resources/chunks/RunRiraClassification.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ for (datasetId in names(seuratObjects)) {
33
seuratObj <- readRDS(seuratObjects[[datasetId]])
44

55
seuratObj <- RIRA::RunCellTypist(seuratObj, modelName = 'RIRA_Immune_v1', maxBatchSize = maxBatchSize, columnPrefix = 'RIRA_Immune_v1.', retainProbabilityMatrix = retainProbabilityMatrix)
6-
seuratObj <- RIRA::Classify_TNK(seuratObj, maxBatchSize = maxBatchSize, retainProbabilityMatrix = retainProbabilityMatrix)
6+
seuratObj <- RIRA::Classify_TNK(seuratObj, maxBatchSize = maxBatchSize, retainProbabilityMatrix = retainProbabilityMatrix, columnPrefix = 'RIRA_TNK_v2.')
7+
8+
seuratObj$RIRA_TNK_v2.predicted_labels[seuratObj$RIRA_Immune_v1.majority_voting != 'T_NK'] <- 'Other'
79

810
saveData(seuratObj, datasetId)
911
}

0 commit comments

Comments
 (0)