Skip to contents

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:

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:

ScreenStrategy

Named functions with optional supported_phenotypes, parameter_mapper, etc. (see RegisterScreenMethod).

SCPreProcessStrategy

Named functions or character specifications (e.g., "h" = "Seurat::RunHarmony"; see RegisterSeuratMethod).

SCAnnotateStrategy

Named 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").

Value

Invisibly returns TRUE on successful registration (via the underlying registrar).

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)
} # }