Dynamically registers one or more new preprocessing strategies into a strategy
environment (i.e., SCPreProcessStrategy). Each strategy is stored under
a user-defined key and wraps a Seurat-compatible function to conform to the
standard interface: function(object, params).
Supports both direct function objects and character specifications of
package-qualified function names (e.g., h = "Seurat::RunHarmony").
This enables safe, lazy resolution of external dependencies and simplifies
pipeline configuration via strings.
Usage
RegisterSeuratMethod(
...,
overwrite = FALSE,
registry = SCPreProcessStrategy,
verbose = getFuncOption("verbose")
)Arguments
- ...
Named arguments where each name is a strategy key (e.g.,
"h") and each value is either:A function, or
A character string specifying a function (e.g.,
"Seurat::RunHarmony"or"stats::prcomp").
The function will be automatically wrapped to accept
objectandparams, making it compatible withSCPreProcess()pipelines.- overwrite
Logical. If
FALSE(default), throws an error when attempting to replace an existing strategy. Set toTRUEto allow updates.- registry
Environment. The target registry to store strategies. Default:
SCPreProcessStrategy.- verbose
Logical. Whether to print registration messages. Default: inherits from
getOption("SigBridgeR.verbose").
See also
Other Registering:
Register(),
RegisterAnnoMethod(),
RegisterScreenMethod()
Other single_cell_preprocess:
FilterTumorCell(),
FindRobustElbow(),
Pattern2Colname(),
QCPatternDetect(),
SCAnnotate(),
SCIntegrate(),
SCPreProcess(),
SCPreProcessStrategy,
compatible_with_3.0.2()