R/drop_doublets.R

Defines functions drop_doublets

Documented in drop_doublets

#' @rdname find_doublets
#' @export
drop_doublets <- function(txis, score=NULL, clust=TRUE, ...) {

  dbls <- find_doublets(txis, score=score, clust=clust, ...) 
  if ("scDblFinder.class" %in% names(colData(dbls))) {
    dbls <- dbls[, dbls$scDblFinder.class == "singlet"]
  }
  return(dbls)

} 
trichelab/velocessor documentation built on Jan. 5, 2022, 6:27 p.m.