#' Tools for single-cell genomics
#'
#' This is a slimmed down version of Seurat, only keeping functionalities deemed
#' the most commonly used.
#'
#' @section Package options:
#'
#' Seurat uses the following [options()] to configure behaviour:
#'
#' \describe{
#' \item{\code{Seurat.memsafe}}{global option to call gc() after many operations.
#' This can be helpful in cleaning up the memory status of the R session and
#' prevent use of swap space. However, it does add to the computational overhead
#' and setting to FALSE can speed things up if you're working in an environment
#' where RAM availability is not a concern.}
#' \item{\code{Seurat.checkdots}}{For functions that have ... as a parameter,
#' this controls the behavior when an item isn't used. Can be one of warn,
#' stop, or silent.}
#' }
#'
#' @docType package
#' @rdname SeuratBasics-package
#' @name SeuratBasics-package
#'
NULL
seurat_default_options <- list(
Seurat.memsafe = FALSE,
Seurat.checkdots = "warn"
)
.onLoad <- function(libname, pkgname) {
op <- options()
toset <- !(names(x = seurat_default_options) %in% names(x = op))
if (any(toset)) options(seurat_default_options[toset])
invisible()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.