Skip to contents

Verifies if a user-provided function meets the interface requirements for the screening pipeline.

Usage

ValidateScreenFunc(func, ...)

Arguments

func

Function to validate. Must accept core parameters and return expected structure.

...

For future updates

Value

TRUE if all checks pass, otherwise terminates with diagnostic report

Examples

if (FALSE) { # \dontrun{
# Example compliant function
my_screen <- function(
  sc_data,
  matched_bulk,
  phenotype,
  label_type,
  phenotype_class,
  verbose = FALSE,
  ...
) {
  if (verbose) {
    message("Running custom screen")
  }
  list(
    scRNA_data = sc_data, # Must be Seurat object
    results = data.frame(score = runif(10))
  )
}

ValidateScreenFunc(my_screen)
} # }