This class manages a collection of benchmark trios and mapping functions. It allows adding new trios, mapping functions, and running mappings on data.
Public fields
nameA character string to name the study.
triosA list to store benchmark trios.
mappingFunctionsA list to store mapping functions with metadata.
descriptionA character string describing the study.
versionInteger specifying the version of the study.
Methods
Method new()
Usage
BenchmarkStudy$new(
name = NULL,
trios = list(),
fetchFromCtd = FALSE,
version = NULL
)Arguments
nameA character string to name the study. If fetchFromCtd is TRUE, this name will be used to fetch the study from Curated Trio Datasets.
triosA list of Trio objects to initialize the study.
fetchFromCtdLogical indicating whether to fetch study details from Curated Trio Datasets.
versionOptional integer specifying which version of the study to fetch (when fetchFromCtd is TRUE).
Method addMappingFunction()
Add a mapping function with metadata
Usage
BenchmarkStudy$addMappingFunction(
name,
func,
inputDescription,
outputDescription,
exampleUsage = NULL
)Arguments
nameA character string to name the mapping function.
funcA function that takes data as input and returns transformed data.
inputDescriptionA character string describing the input data.
outputDescriptionA character string describing the output data.
exampleUsageAn optional character string showing example usage of the function.
Method runMapping()
Apply a mapping function to data
Method evaluate()
Evaluate a trio with input data
Method print()
Print method to display key information about the BenchmarkStudy object.