Skip to content

Commit

Permalink
Do not update celltypist models when using a built-in model (#124)
Browse files Browse the repository at this point in the history
* Do not update celltypist models when using a built-in model
  • Loading branch information
bbimber authored Dec 20, 2024
1 parent 4de8cb2 commit 946f095
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions R/CellTypist.R
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ Classify_TNK <- function(seuratObj, assayName = Seurat::DefaultAssay(seuratObj),
minFractionToInclude = minFractionToInclude,
minCellsToRun = minCellsToRun,
maxBatchSize = maxBatchSize,
retainProbabilityMatrix = retainProbabilityMatrix
retainProbabilityMatrix = retainProbabilityMatrix,
runCelltypistUpdate = FALSE
)

# Limit the resulting calls to just RIRA T/NK cells:
Expand Down Expand Up @@ -488,7 +489,8 @@ Classify_Myeloid <- function(seuratObj, assayName = Seurat::DefaultAssay(seuratO
minFractionToInclude = minFractionToInclude,
minCellsToRun = minCellsToRun,
maxBatchSize = maxBatchSize,
retainProbabilityMatrix = retainProbabilityMatrix
retainProbabilityMatrix = retainProbabilityMatrix,
runCelltypistUpdate = FALSE
)

fn2 <- paste0(columnPrefix, 'cellclass')
Expand Down Expand Up @@ -544,7 +546,8 @@ Classify_ImmuneCells <- function(seuratObj, assayName = Seurat::DefaultAssay(seu
minFractionToInclude = minFractionToInclude,
minCellsToRun = minCellsToRun,
maxBatchSize = maxBatchSize,
retainProbabilityMatrix = retainProbabilityMatrix
retainProbabilityMatrix = retainProbabilityMatrix,
runCelltypistUpdate = FALSE
)

# Create a simplified final column:
Expand Down

0 comments on commit 946f095

Please sign in to comment.