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
name
A character string to name the study.
trios
A list to store benchmark trios.
mappingFunctions
A list to store mapping functions with metadata.
description
A character string describing the study.
version
Integer specifying the version of the study.
Methods
Method new()
Usage
BenchHubStudy$new(
name = NULL,
trios = list(),
fetchFromCtd = FALSE,
version = NULL
)
Arguments
name
A character string to name the study. If fetchFromCtd is TRUE, this name will be used to fetch the study from Curated Trio Datasets.
trios
A list of Trio objects to initialize the study.
fetchFromCtd
Logical indicating whether to fetch study details from Curated Trio Datasets.
version
Optional integer specifying which version of the study to fetch (when fetchFromCtd is TRUE).
Method addMappingFunction()
Add a mapping function with metadata
Usage
BenchHubStudy$addMappingFunction(
name,
func,
inputDescription,
outputDescription,
exampleUsage = NULL
)
Arguments
name
A character string to name the mapping function.
func
A function that takes data as input and returns transformed data.
inputDescription
A character string describing the input data.
outputDescription
A character string describing the output data.
exampleUsage
An 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 BenchHubStudy object.