Validate Custom Screening Function Compliance
Source:R/61-ValidateScreenFunc.R
ValidateScreenFunc.RdVerifies if a user-provided function meets the interface requirements for the screening pipeline.
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)
} # }