TreatmentResponseExperiment constructor method
TreatmentResponseExperiment.RdBuilds 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,matrixA table like object coercible to adata.tablecontaining the a uniquerowIDcolumn which is used to key assays, as well as additional row metadata to subset on.- rowIDs
 character,integerA 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 theTreatmentResponseExperimentobject.- colData
 data.table,data.frame,matrixA table like object coercible to adata.tablecontaining the a uniquecolIDcolumn which is used to key assays, as well as additional column metadata to subset on.- colIDs
 character,integerA 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 theTreatmentResponseExperimentobject.- assays
 A
listcontaining 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
 listA list ofcharactervectors specifying the columns needed to uniquely identify each row in anassay. Names must match theassayslist.- metadata
 A
listof metadata associated with theTreatmentResponseExperimentobject being constructed- keep.rownames
 logical,characterLogical: 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.