Skip to contents

A Class for Mapping Between Raw Data and an LongTable Object

Usage

# S4 method for LongTableDataMapper
show(object)

Arguments

object

A LongTableDataMapper to display in the console.

Value

invisible Prints to console.

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 in rawdata 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 in rawdata 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 in rawdata needed to uniquely identify each row an assay, and the second a list of rawdata columns to be mapped to that assay. The names of assayMap will be the names of the assays in the LongTable that is created when calling metaConstruct on this DataMapper object.

  • metadataMap: A list-like where each item is a character vector of rawdata column names to assign to the @metadata of the LongTable, 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