Validates whether the cached configuration matches the current parameters. This function reads a cache metadata JSON file and compares it with the provided screen method, phenotype class, label type, and parameters.
Usage
CheckCache(
path,
screen_method,
phenotype_class = c("binary", "survival", "continuous"),
label_type = screen_method,
params,
...
)Arguments
- path
Character string specifying the path to the cache directory or directly to the
cache_config.jsonfile.- screen_method
Character string indicating the screening method used.
- phenotype_class
Character vector specifying the phenotype class type. Must be one of
"binary","survival", or"continuous".- label_type
Character string specifying the label type. Defaults to the value of
screen_method.- params
List of parameters used for the screening method.
- ...
Additional arguments (must be empty; raises error if provided).
Value
Returns invisible(TRUE) if the cache configuration is consistent
with the current parameters. Otherwise, aborts with an error message
displaying the differences.
See also
Other cache_config:
CacheSetHere(),
ChooseCache(),
LoadCache(),
WriteCache(),
WriteCacheMeta()