A Class for Mapping Between Raw Data and an LongTable
Object
LongTableDataMapper-class.Rd
A Class for Mapping Between Raw Data and an LongTable
Object
Functions
show(LongTableDataMapper)
: Show method for LongTableDataMapper. Determines how the object is displayed in the console.
Slots
rawdata
See Slots section.
rowDataMap
See Slots section.
colDataMap
See Slots section.
assayMap
See Slots section.
metadataMap
See Slots section.
Slots
rowDataMap: A list-like object containing two
character
vectors. The first is column names inrawdata
needed to uniquely identify each row, the second is additional columns which map to rows, but are not required to uniquely identify them. Rows should be drugs.colDataMap: A list-like object containing two
character
vectors. The first is column names inrawdata
needed to uniquely identify each column, the second is additional columns which map to rows, but are not required to uniquely identify them. Columns should be samples.assayMap A list-like where each item is a
list
with two elements specifying an assay, the first being the identifier columns inrawdata
needed to uniquely identify each row an assay, and the second a list ofrawdata
columns to be mapped to that assay. The names ofassayMap
will be the names of the assays in theLongTable
that is created when callingmetaConstruct
on thisDataMapper
object.metadataMap: A list-like where each item is a
character
vector ofrawdata
column names to assign to the@metadata
of theLongTable
, where the name of that assay is the name of the list item. If names are omitted, assays will be numbered by their index in the list.
rawdata: A list-like object containing one or more pieces of raw data that will be processed and mapped to the slots of an
S4
object.metadata: A
List
of object level metadata.
Examples
show(exampleDataMapper)
#> <LongTableDataMapper>
#> rawdata: dim(3, 4)
#> treatmentid sampleid viability metadata
#> <char> <char> <num> <char>
#> 1: drug1 cell1 0.75 additional info
#> 2: drug1 cell1 0.10 additional info
#> 3: drug1 cell1 0.90 additional info
#>
rowDataMap: NA
#> colDataMap: NA
#> assayMap: NA
#> metadataMap: NA