Generic for preprocessing complex data before being used in the constructor of an S4 container object.
      
      metaConstruct.RdThis method is intended to abstract away complex constructor arguments
and data preprocessing steps needed to transform raw data, such as that
produced in a treatment-response or next-gen sequencing experiment, and
automate building of the appropriate S4 container object. This is
is intended to allow mapping between different experimental designs,
in the form of an S4 configuration object, and various S4 class
containers in the Bioconductor community and beyond.
Usage
metaConstruct(mapper, ...)
# S4 method for LongTableDataMapper
metaConstruct(mapper)
# S4 method for TREDataMapper
metaConstruct(mapper)Arguments
- mapper
 An
TREDataMapperobject abstracting arguments to an theTreatmentResponseExperimentconstructor.- ...
 Allow new arguments to be defined for this generic.
Value
An S4 object for which the class corresponds to the type of
the build configuration object passed to this method.
A LongTable object, as specified in the mapper.
A TreatmentResponseExperiment object, as specified in the mapper.
Examples
data(exampleDataMapper)
rowDataMap(exampleDataMapper) <- list(c('treatmentid'), c())
colDataMap(exampleDataMapper) <- list(c('sampleid'), c())
assayMap(exampleDataMapper) <- list(sensitivity=list(c("treatmentid", "sampleid"), c('viability')))
metadataMap(exampleDataMapper) <- list(experiment_metadata=c('metadata'))
longTable <- metaConstruct(exampleDataMapper)
#> 2025-08-25 16:10:19 Building assay index...
#> 2025-08-25 16:10:19 Joining rowData to assayIndex...
#> 2025-08-25 16:10:20 Joining colData to assayIndex...
#> 2025-08-25 16:10:21 Joining assays to assayIndex...
#> 2025-08-25 16:10:22 Setting assayIndex key...
#> 2025-08-25 16:10:22 Building LongTable...
#> 
longTable
#> <LongTable> 
#>    dim:  1 1 
#>    assays(1): sensitivity 
#>    rownames(1): drug1 
#>    rowData(1): treatmentid 
#>    colnames(1): cell1 
#>    colData(1): sampleid 
#>    metadata(1): experiment_metadata 
data(exampleDataMapper)
exampleDataMapper <- as(exampleDataMapper, "TREDataMapper")
rowDataMap(exampleDataMapper) <- list(c('treatmentid'), c())
colDataMap(exampleDataMapper) <- list(c('sampleid'), c())
assayMap(exampleDataMapper) <- list(sensitivity=list(c("treatmentid", "sampleid"), c('viability')))
metadataMap(exampleDataMapper) <- list(experiment_metadata=c('metadata'))
tre <- metaConstruct(exampleDataMapper)
#> 2025-08-25 16:10:22 Building assay index...
#> 2025-08-25 16:10:22 Joining rowData to assayIndex...
#> 2025-08-25 16:10:23 Joining colData to assayIndex...
#> 2025-08-25 16:10:24 Joining assays to assayIndex...
#> 2025-08-25 16:10:25 Setting assayIndex key...
#> 2025-08-25 16:10:25 Building LongTable...
#> 
tre
#> <TreatmentResponseExperiment> 
#>    dim:  1 1 
#>    assays(1): sensitivity 
#>    rownames(1): drug1 
#>    rowData(1): treatmentid 
#>    colnames(1): cell1 
#>    colData(1): sampleid 
#>    metadata(1): experiment_metadata