Skip to content

Commit

Permalink
increased example dbr
Browse files Browse the repository at this point in the history
  • Loading branch information
plger committed Jan 8, 2025
1 parent 7f8cb0c commit dc05398
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/enrichment.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#' @export
#'
#' @examples
#' sce <- mockDoubletSCE(rep(200,5))
#' sce <- mockDoubletSCE(rep(200,5), dbl.rate=0.2)
#' sce <- scDblFinder(sce, clusters=TRUE, artificialDoublets=500)
#' clusterStickiness(sce)
clusterStickiness <- function(x, type=c("quasibinomial","nbinom","binomial","poisson"),
Expand All @@ -31,6 +31,7 @@ clusterStickiness <- function(x, type=c("quasibinomial","nbinom","binomial","poi
"with the cluster-based approach?")
}
stopifnot(all(c("combination","observed","expected") %in% colnames(x)))
if(sum(x$observed)<5) stop("Insufficient number of doublets")

if(is.null(inclDiff)) inclDiff <- length(unique(x$combination))>15

Expand Down
2 changes: 1 addition & 1 deletion man/clusterStickiness.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dc05398

Please sign in to comment.