TreatmentResponseExperiment constructor method
TreatmentResponseExperiment.Rd
Builds a TreatmentResponseExperiment
object from rectangular
objects. The rowData
argument should contain row level metadata, while
the colData
argument should contain column level metadata, for the
experimental assays
in the assays
list. The rowIDs
and colIDs
lists are used to configure
the internal keys mapping rows or columns to rows in the assays. Each list
should contain at minimum one character vector, specifying which columns
in rowData
or colData
are required to uniquely identify each row. An
optional second character vector can be included, specifying any metadata
columns for either dimension. These should contain information about each
row but NOT be required to uniquely identify a row in the colData
or
rowData
objects. Additional metadata can be attached to a
TreatmentResponseExperiment
by passing a list to the metadata argument.
Usage
TreatmentResponseExperiment(
rowData,
rowIDs,
colData,
colIDs,
assays,
assayIDs,
metadata = list(),
keep.rownames = FALSE
)
Arguments
- rowData
data.table
,data.frame
,matrix
A table like object coercible to adata.table
containing the a uniquerowID
column which is used to key assays, as well as additional row metadata to subset on.- rowIDs
character
,integer
A vector specifying the names or integer indexes of the row data identifier columns. These columns will be pasted together to make up the rownames of theTreatmentResponseExperiment
object.- colData
data.table
,data.frame
,matrix
A table like object coercible to adata.table
containing the a uniquecolID
column which is used to key assays, as well as additional column metadata to subset on.- colIDs
character
,integer
A vector specifying the names or integer indexes of the column data identifier columns. These columns will be pasted together to make up the colnames of theTreatmentResponseExperiment
object.- assays
A
list
containing one or more objects coercible to adata.table
, and keyed by rowIDs and colIDs corresponding to the rowID and colID columns in colData and rowData.- assayIDs
list
A list ofcharacter
vectors specifying the columns needed to uniquely identify each row in anassay
. Names must match theassays
list.- metadata
A
list
of metadata associated with theTreatmentResponseExperiment
object being constructed- keep.rownames
logical
,character
Logical: whether rownames should be added as a column if coercing to adata.table
, default is FALSE. If TRUE, rownames are added to the column 'rn'. Character: specify a custom column name to store the rownames in.