Skip to content

Commit c60e155

Browse files
Merge pull request compbiomed#777 from mingl1997/devel
Bug fixes for various issues
2 parents 6557272 + a312b97 commit c60e155

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

R/doubletFinder_doubletDetection.R

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
}
245245

246246
.runDoubletFinder <- function(counts, seuratPcs, seuratRes, formationRate,
247-
seuratNfeatures, verbose = FALSE,
247+
seuratNfeatures, sct = FALSE, verbose = FALSE,
248248
nCores = NULL, seed = 12345) {
249249

250250
## Convert to sparse matrix if not already in that format
@@ -285,7 +285,7 @@
285285
)
286286
invisible(sweepResListSeurat <- .paramSweep(seurat,
287287
PCs = seuratPcs,
288-
sct = FALSE,
288+
sct = sct,
289289
num.cores = nCores,
290290
verbose = verbose,
291291
seed = seed
@@ -306,7 +306,7 @@
306306
pK = pkOptimal,
307307
nExp = nExpPoi,
308308
reuse.pANN = FALSE,
309-
sct = FALSE,
309+
sct = sct,
310310
verbose = FALSE
311311
)
312312
names(seurat@meta.data)[6] <- "doubletFinderAnnScore"
@@ -331,6 +331,7 @@
331331
#' @param seuratRes Numeric vector. The resolution parameter used in Seurat,
332332
#' which adjusts the number of clusters determined via the algorithm. Default
333333
#' \code{1.5}.
334+
#' @param sct Whether or not to use SCT. Default \code{FALSE}.
334335
#' @param formationRate Doublet formation rate used within algorithm. Default
335336
#' \code{0.075}.
336337
#' @param nCores Number of cores used for running the function. Default
@@ -355,6 +356,7 @@ runDoubletFinder <- function(inSCE,
355356
seuratNfeatures = 2000,
356357
seuratPcs = seq(15),
357358
seuratRes = 1.5,
359+
sct = FALSE,
358360
formationRate = 0.075,
359361
nCores = NULL,
360362
verbose = FALSE) {
@@ -405,6 +407,7 @@ runDoubletFinder <- function(inSCE,
405407
seuratRes = res,
406408
seuratNfeatures = seuratNfeatures,
407409
formationRate = formationRate,
410+
sct = sct,
408411
nCores = nCores,
409412
verbose = verbose,
410413
seed = seed

R/runQC.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ runCellQC <- function(inSCE,
8686
mitoRef = mitoRef,
8787
mitoIDType = mitoIDType,
8888
mitoPrefix = mitoPrefix,
89-
mitoID = mitoID,
89+
mitoID = list(mitoID),
9090
mitoGeneLocation = mitoGeneLocation,
9191
paramsList[["QCMetrics"]]))
9292
}

inst/WORDLIST

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ SCANORAMA
147147
SCDS
148148
SCE
149149
SCEsetObject
150+
SCT
150151
SCTK
151152
SCTK's
152153
SCTransform
@@ -267,7 +268,6 @@ colorBy
267268
colorScheme
268269
combineSCE
269270
compbiomed
270-
complexed
271271
computating
272272
computeHeatmap
273273
conda

inst/shiny/server.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,7 @@ shinyServer(function(input, output, session) {
20252025
soupXParams[["cluster"]] <- NULL
20262026
}
20272027
# add to master params list
2028-
paramsList[["decontX"]] = soupXParams
2028+
paramsList[["soupX"]] = soupXParams
20292029
return(paramsList)
20302030
}
20312031

man/runDoubletFinder.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)