Skip to content

Commit

Permalink
Improve logs for pre-filtering step
Browse files Browse the repository at this point in the history
  • Loading branch information
mass-a committed Oct 15, 2021
1 parent be4df4c commit f48f07c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ filterCells <- function(query.object, species="mouse", gating.model=NULL, ncores
} else {
query.object <- NULL
}
message <- sprintf("%i out of %i ( %i%% ) non-pure cells removed. Use filter.cells=FALSE to avoid pre-filtering (NOT RECOMMENDED)",
message <- sprintf("%i out of %i ( %i%% ) non-pure cells removed. Use filter.cells=FALSE to avoid pre-filtering",
ncells - ncells.keep, ncells, round(100*(ncells-ncells.keep)/ncells))
print(message)

Expand Down Expand Up @@ -178,6 +178,7 @@ projection.helper <- function(query, ref=NULL, filter.cells=TRUE, query.assay=NU
if (!is.null(ref@misc$scGate[[species.query$species]])) {
scGate_model <- ref@misc$scGate[[species.query$species]]
} else { #if no model was specified, and no model was found in the atlas, use a default filter
message("No scGate model specified: using default filter for T cells")
models <- suppressMessages(scGate::get_scGateDB())
scGate_model <- models[[species.query$species]]$generic$Tcell
}
Expand Down

0 comments on commit f48f07c

Please sign in to comment.