A convenience wrapper that dispatches registration requests to the appropriate
strategy-specific registrar based on the target registry. This function
provides a single entry point for registering screening, preprocessing, or
annotation methods without needing to call RegisterScreenMethod(),
RegisterSeuratMethod(), or RegisterAnnoMethod() directly.
Internally routes to:
registry = "auto"→detect_registry()registry = "ScreenStrategy"→RegisterScreenMethodregistry = "SCPreProcessStrategy"→RegisterSeuratMethodregistry = "SCAnnotateStrategy"→RegisterAnnoMethod
Usage
Register(
...,
registry = c("auto", "ScreenStrategy", "SCPreProcessStrategy", "SCAnnotateStrategy"),
verbose = getFuncOption("verbose")
)Arguments
- ...
Arguments passed to the underlying registrar. The exact requirements depend on the target
registry:ScreenStrategyNamed functions with optional
supported_phenotypes,parameter_mapper, etc. (seeRegisterScreenMethod).SCPreProcessStrategyNamed functions or character specifications (e.g.,
"h" = "Seurat::RunHarmony"; seeRegisterSeuratMethod).SCAnnotateStrategyNamed annotation functions (see
RegisterAnnoMethod).
- registry
Character. Target strategy environment for registration. Must be one of:
"auto","ScreenStrategy","SCPreProcessStrategy", or"SCAnnotateStrategy". Partial matching is supported (e.g.,"screen"→"ScreenStrategy").- verbose
Logical. Whether to print registration success messages. Default: inherits from package option
getOption("SigBridgeRUtils.verbose").
Examples
if (FALSE) { # \dontrun{
# Register a screening method for binary/survival phenotypes
Register(
registry = "ScreenStrategy",
Scissor = DoScissor,
supported_phenotypes = c("binary", "survival")
)
# Register a preprocessing step (e.g., Harmony integration)
Register(
registry = "SCPreProcessStrategy",
h = "Seurat::RunHarmony"
)
# Register an annotation method
Register(
registry = "SCAnnotateStrategy",
my_annot = MyCustomAnnotator
)
# auto detects the target registry
Register(my_annot2 = AnotherAnnotator)
} # }