Processes input data containing cancer types and validates each category
against a predefined list of supported cancer types (`timer_available_cancers`).
Arguments
- args
A list containing input parameters:
- batch
Character. Path to a CSV file (optional).
- expression
Character vector of expression identifiers (used if
`batch` is NULL).
- category
Character vector of cancer types (used if `batch` is NULL).
Value
A character matrix with two columns:
- Column 1
Expression identifiers
- Column 2
Cancer categories
Examples
args <- list(
expression = c("exp1", "exp2"),
category = c("luad", "brca"),
batch = NULL
)
result <- check_cancer_types(args)