ToxicoSet-accessors | R Documentation |
CoreSet
Documentation for the various setters and getters which allow manipulation
of data in the slots of a CoreSet
object.
drugInfo(...) drugInfo(...) <- value drugNames(...) drugNames(...) <- value ## S4 method for signature 'ToxicoSet' annotation(object) ## S4 replacement method for signature 'ToxicoSet,list' annotation(object) <- value ## S4 method for signature 'ToxicoSet' dateCreated(object) ## S4 replacement method for signature 'ToxicoSet,character' dateCreated(object) <- value ## S4 method for signature 'ToxicoSet' name(object) ## S4 replacement method for signature 'ToxicoSet' name(object) <- value ## S4 method for signature 'ToxicoSet' sampleInfo(object) ## S4 replacement method for signature 'ToxicoSet,data.frame' sampleInfo(object) <- value ## S4 method for signature 'ToxicoSet' sampleNames(object) ## S4 replacement method for signature 'ToxicoSet,character' sampleNames(object) <- value ## S4 method for signature 'ToxicoSet' curation(object) ## S4 replacement method for signature 'ToxicoSet,list' curation(object) <- value ## S4 method for signature 'ToxicoSet' datasetType(object) ## S4 replacement method for signature 'ToxicoSet,character' datasetType(object) <- value ## S4 method for signature 'ToxicoSet' molecularProfiles(object, mDataType, assay) ## S4 replacement method for signature 'ToxicoSet,character,character,matrix' molecularProfiles(object, mDataType, assay) <- value ## S4 method for signature 'ToxicoSet' featureInfo(object, mDataType) ## S4 replacement method for signature 'ToxicoSet,character,data.frame' featureInfo(object, mDataType) <- value ## S4 method for signature 'ToxicoSet,character' phenoInfo(object, mDataType) ## S4 replacement method for signature 'ToxicoSet,character,data.frame' phenoInfo(object, mDataType) <- value ## S4 method for signature 'ToxicoSet,character' fNames(object, mDataType) ## S4 replacement method for signature 'ToxicoSet,character,character' fNames(object, mDataType) <- value ## S4 method for signature 'ToxicoSet' mDataNames(object) ## S4 replacement method for signature 'ToxicoSet' mDataNames(object) <- value ## S4 method for signature 'ToxicoSet' molecularProfilesSlot(object) ## S4 replacement method for signature 'ToxicoSet,list_OR_MAE' molecularProfilesSlot(object) <- value ## S4 method for signature 'ToxicoSet' sensitivityInfo(object, dimension, ...) ## S4 replacement method for signature 'ToxicoSet,data.frame' sensitivityInfo(object, dimension, ...) <- value ## S4 method for signature 'ToxicoSet' sensitivityMeasures(object) ## S4 replacement method for signature 'ToxicoSet,character' sensitivityMeasures(object) <- value ## S4 method for signature 'ToxicoSet' sensitivityProfiles(object) ## S4 replacement method for signature 'ToxicoSet,data.frame' sensitivityProfiles(object) <- value ## S4 method for signature 'ToxicoSet' sensitivityRaw(object) ## S4 replacement method for signature 'ToxicoSet,array' sensitivityRaw(object) <- value ## S4 method for signature 'ToxicoSet' treatmentResponse(object) ## S4 replacement method for signature 'ToxicoSet,list_OR_LongTable' treatmentResponse(object) <- value ## S4 method for signature 'ToxicoSet' sensNumber(object) ## S4 replacement method for signature 'ToxicoSet,matrix' sensNumber(object) <- value ## S4 method for signature 'ToxicoSet' pertNumber(object) ## S4 replacement method for signature 'ToxicoSet,array' pertNumber(object) <- value
... |
See details. |
value |
See details. |
object |
A |
mDataType |
|
assay |
|
dimension |
See details. |
treatmentInfo: data.frame
Metadata for all treatments in a ToxicoSet
object. Arguments:
object: ToxicoSet
An object to retrieve treatment metadata from.
treatmentInfo<-: ToxicoSet
object with updated treatment metadata.
object. Arguments:
object: ToxicoSet
An object to set treatment metadata for.
value: data.frame
A new table of treatment metadata for object
.
treatmentNames: character
Names for all treatments in a ToxicoSet
object. Arguments:
object: ToxicoSet
An object to retrieve treatment names from.
treatmentNames<-: ToxicoSet
Object with updates treatment names.
object. Arguments:
object: ToxicoSet
An object to set treatment names from.
value: character
A character vector of updated treatment names.
annotation: A list
of ToxicoSet annotations with items: 'name',
the name of the object; 'dateCreated', date the object was created; 'sessionInfo',
the sessionInfo()
when the object was created; 'call', the R constructor call;
and 'version', the object version.
annotation<-: Setter method for the annotation slot. Arguments:
value: a list
of annotations to update the ToxicoSet with.
dateCreated: character(1)
The date the ToxicoSet
object was
created, as returned by the date()
function.
dateCreated<-: Update the 'dateCreated' item in the annotation
slot of
a ToxicoSet
object. Arguments:
value: A character(1)
vector, as returned by the date()
function.
name: character(1)
The name of the ToxicoSet
, retreived from
the @annotation
slot.
name<-: Update the @annotation$name
value in a ToxicoSet
object.
value: character(1)
The name of the ToxicoSet
object.
cellInfo: data.frame
Metadata for all sample in a ToxicoSet
object.
sampleInfo<-: assign updated sample annotations to the ToxicoSet
object.
Arguments:
value: a data.frame
object.
sampleNames: character
Retrieve the rownames of the data.frame
in
the sample
slot from a ToxicoSet object.
sampleNames<-: assign new rownames to the sampleInfo data.frame
for
a ToxicoSet object.
Arguments:
value: character
vector of rownames for the sampleInfo(object)
data.frame
.
curation: A list
of curated mappings between identifiers in the
ToxicoSet object and the original data publication. Contains three data.frame
s, 'cell' with
cell-line ids and 'tissue' with tissue ids and 'drug' with drug ids.
curation<-: Update the curation
slot of a ToxicoSet object. Arugments:
value: A list
of data.frame
s, one for each type of curated
identifier. For a ToxicoSet
object the slot should
contain tissue, cell-line and drug id data.frame
s.
datasetType: character(1)
The type treatment response in the
sensitivity
slot. Valid values are 'sensitivity', 'perturbation' or 'both'.
datasetType<-: Update the datasetType slot of a ToxicoSet object. Arguments:
value: A character(1)
vector with one of 'sensitivity', 'perturbation'
or 'both'
molecularProfiles: matrix()
Retrieve an assay in a
SummarizedExperiment
from the molecularProfiles
slot of a ToxicoSet
object with the specified mDataType
. Valid mDataType
arguments can be
found with mDataNames(object)
. Exclude mDataType
and assay
to
access the entire slot. Arguments:
assay: Optional character(1)
vector specifying an assay in the
SummarizedExperiment
of the molecularProfiles
slot of the
ToxicoSet
object for the specified mDataType
. If excluded,
defaults to modifying the first assay in the SummarizedExperiment
for
the given mDataType
.
molecularProfiles<-: Update an assay in a SummarizedExperiment
from
the molecularProfiles
slot of a ToxicoSet object with the specified
mDataType
. Valid mDataType
arguments can be found with
mDataNames(object)
. Omit mDataType
and assay
to update the slot.
assay: Optional character(1)
vector specifying an assay in the
SummarizedExperiment
of the molecularProfiles
slot of the
ToxicoSet
object for the specified mDataType
. If excluded,
defaults to modifying the first assay in the SummarizedExperiment
for
the given mDataType
.
value: A matrix
of values to assign to the assay
slot of the
SummarizedExperiment
for the selected mDataType
. The rownames and
column names must match the associated SummarizedExperiment
.
featureInfo: Retrieve a DataFrame
of feature metadata for the specified
mDataType
from the molecularProfiles
slot of a ToxicoSet
object. More
specifically, retrieve the @rowData
slot from the SummarizedExperiment
from the @molecularProfiles
of a ToxicoSet
object with the name
mDataType
.
featureInfo<-: Update the featureInfo(object, mDataType)
DataFrame
with new feature metadata. Arguments:
value: A data.frame
or DataFrame
with updated feature metadata for
the specified molecular profile in the molecularProfiles
slot of a
ToxicoSet
object.
phenoInfo: Return the @colData
slot from the SummarizedExperiment
of
mDataType
, containing sample-level metadata, from a ToxicoSet
object.
phenoInfo<-: Update the @colData
slot of the SummarizedExperiment
of mDataType
in the @molecularProfiles
slot of a ToxicoSet
object.
This updates the sample-level metadata in-place.
value: A data.frame
or DataFrame
object where rows are samples
and columns are sample metadata.
fNames: character()
The features names from the rowData
slot of a
SummarizedExperiment
of mDataType
within a ToxicoSet
object.
fNames: Updates the rownames of the feature metadata (i.e., rowData
)
for a SummarizedExperiment
of mDataType
within a ToxicoSet
object.
value: character()
A character vector of new features names for the
rowData
of the SummarizedExperiment
of mDataType
in the
@molecularProfiles
slot of a ToxicoSet
object. Must be the same
length as nrow(featureInfo(object, mDataType))
,
the number of rows in the feature metadata.
mDataNames: character
Retrieve the names of the molecular data types
available in the molecularProfiles
slot of a ToxicoSet
object. These
are the options which can be used in the mDataType
parameter of various
molecularProfiles
slot accessors methods.
mDataNames: Update the molecular data type names of the
molecularProfiles
slot of a ToxicoSet object. Arguments:
value: character
vector of molecular datatype names, with length
equal to length(molecularProfilesSlot(object))
.
molecularProfilesSlot: Return the contents of the @molecularProfiles
slot of a ToxicoSet
object. This will either be a list
or
MultiAssayExperiment
of SummarizedExperiment
s.
molecularProfilesSlot<-: Update the contents of the @molecularProfiles
slot of a ToxicoSet
object. Arguemnts:
value: A list
or MultiAssayExperiment
of SummarizedExperiment
s. The
list
and assays
should be named for the molecular datatype in each
SummarizedExperiment
.
dimension
: Optional character(1)
One of 'treatment', 'sample' or
'assay' to retrieve rowData
, colData
or the 'assay_metadata' assay from
the ToxicoSet
@sensitvity
LongTable
object, respectively. Ignored with
warning if @treatmentResponse
is not a LongTable
object.
...
: Additional arguments to the rowData
or colData
.
LongTable
methods. Only used if the sensitivity slot contains a
LongTable
object instead of a list
and the dimension
argument is
specified.
sensitivityInfo: DataFrame
or data.frame
of sensitivity treatment combo
by sample metadata for the ToxicoSet
object. When the dimension
parameter is used, it allows retrieval of the dimension specific metadata
from the LongTable
object in @treatmentResponse
of a ToxicoSet object.
sensitivityInfo<-: Update the @treatmentResponse
slot metadata for a
ToxicoSet
object. When used without the dimension
argument is behaves
similar to the old ToxicoSet implementation, where the @treatmentResponse
slot
contained a list with a $info
data.frame
item. When the dimension
arugment is used, more complicated assignments can occur where 'sample'
modifies the @sensitvity
LongTable
colData, 'treatment' the rowData and
'assay' the 'assay_metadata' assay.
Arguments:
value: A data.frame
of treatment response experiment metadata,
documenting experiment level metadata (mapping to treatments and samples). If
the @treatmentResponse
slot doesn't contain a LongTable
and dimension
is
not specified, you can only modify existing columns as returned by
sensitivityInfo(object)
.
sensitivityMeaures: Get the 'sensitivityMeasures' available in a ToxicoSet
object. Each measure reprents some summary of sample sensitivity to a given
treatment, such as ic50, ec50, AUC, AAC, etc. The results are returned as a
character
vector with all available metrics for the PSet object.
sensitivityMeaures: Update the sensitivity meaure in a ToxicoSet
object. Thesee values are the column names of the 'profiles' assay and
represent various compued sensitviity metrics such as ic50, ec50, AUC, AAC,
etc.
value: A character
vector of new sensitivity measure names, the
then length of the character vector must matcht he number of columns of the
'profiles' assay, excluding metadata and key columns.
sensitivityProfiles: Return the sensitivity profile summaries from the sensitivity slot. This data.frame cotanins vaarious sensitivity summary metrics, such as ic50, amax, EC50, aac, HS, etc as columns, with rows as treatment by sample experiments.
sensitivityProfiles<-: Update the sensitivity profile summaries the
sensitivity slot. Arguments:
-value: A data.frame
the the same number of rows as as returned by
sensitivityProfiles(object)
, but potentially modified columns, such as the
computation of additional summary metrics.
sensitivityRaw: Access the raw sensitiity measurents for a ToxicoSet
object. A 3D array
where rows are experiment_ids, columns are doses
and the third dimension is metric, either 'Dose' for the doses used or
'Viability' for the sample viability at that dose.
sensitvityRaw<-: Update the raw dose and viability data in a ToxicoSet
.
value: A 3D array
object where rows are experiment_ids, columns are
replicates and pages are c('Dose', 'Viability'), with the corresponding
dose or viability measurement for that experiment_id and replicate.
sensNumber: Return a count of viability observations in a ToxicoSet
object for each treatment-combo by sample combination.
sensNumber<-: Update the 'n' item, which holds a matrix with a count
of treatment by sample-line experiment counts, in the list
in @treatmentResponse
slot of a ToxicoSet
object. Will error when @sensitviity
contains
a LongTable
object, since the counts are computed on the fly. Arguments:
value: A matrix
where rows are samples and columns are treatments, with a
count of the number of experiments for each combination as the values.
pertNumber: array
Summary of available perturbation experiments
from in a ToxicoSet
object. Returns a 3D array
with the number of
perturbation experiments per treatment and sample, and data type.
pertNumber<-: Update the @perturbation$n
value in a ToxicoSet
object,
which stores a summary of the available perturbation experiments. Arguments:
value: A new 3D array
with the number of perturbation experiments per
treatment and sample, and data type
Accessors: See details.
Setters: An updated CoreSet
object, returned invisibly.
data(TGGATESsmall) treatmentInfo(TGGATESsmall) treatmentInfo(TGGATESsmall) <- treatmentInfo(TGGATESsmall) treatmentNames(TGGATESsmall) treatmentNames(TGGATESsmall) <- treatmentNames(TGGATESsmall) ## @annotation annotation(TGGATESsmall) annotation(TGGATESsmall) <- annotation(TGGATESsmall) dateCreated(TGGATESsmall) ## dateCreated dateCreated(TGGATESsmall) <- date() name(TGGATESsmall) name(TGGATESsmall) <- 'new_name' sampleInfo(TGGATESsmall) <- sampleInfo(TGGATESsmall) sampleNames(TGGATESsmall) sampleNames(TGGATESsmall) <- sampleNames(TGGATESsmall) ## curation curation(TGGATESsmall) curation(TGGATESsmall) <- curation(TGGATESsmall) datasetType(TGGATESsmall) datasetType(TGGATESsmall) <- 'both' # No assay specified molecularProfiles(TGGATESsmall, 'rna') <- molecularProfiles(TGGATESsmall, 'rna') # Specific assay molecularProfiles(TGGATESsmall, 'rna', 'exprs') <- molecularProfiles(TGGATESsmall, 'rna', 'exprs') # Replace the whole slot molecularProfiles(TGGATESsmall) <- molecularProfiles(TGGATESsmall) featureInfo(TGGATESsmall, 'rna') featureInfo(TGGATESsmall, 'rna') <- featureInfo(TGGATESsmall, 'rna') phenoInfo(TGGATESsmall, 'rna') phenoInfo(TGGATESsmall, 'rna') <- phenoInfo(TGGATESsmall, 'rna') fNames(TGGATESsmall, 'rna') fNames(TGGATESsmall, 'rna') <- fNames(TGGATESsmall, 'rna') mDataNames(TGGATESsmall) mDataNames(TGGATESsmall) <- mDataNames(TGGATESsmall) molecularProfilesSlot(TGGATESsmall) molecularProfilesSlot(TGGATESsmall) <- molecularProfilesSlot(TGGATESsmall) sensitivityInfo(TGGATESsmall) sensitivityInfo(TGGATESsmall) <- sensitivityInfo(TGGATESsmall) sensitivityMeasures(TGGATESsmall) <- sensitivityMeasures(TGGATESsmall) sensitivityMeasures(TGGATESsmall) <- sensitivityMeasures(TGGATESsmall) sensitivityProfiles(TGGATESsmall) sensitivityProfiles(TGGATESsmall) <- sensitivityProfiles(TGGATESsmall) head(sensitivityRaw(TGGATESsmall)) sensitivityRaw(TGGATESsmall) <- sensitivityRaw(TGGATESsmall) treatmentResponse(TGGATESsmall) treatmentResponse(TGGATESsmall) <- treatmentResponse(TGGATESsmall) sensNumber(TGGATESsmall) sensNumber(TGGATESsmall) <- sensNumber(TGGATESsmall) pertNumber(TGGATESsmall) pertNumber(TGGATESsmall) <- pertNumber(TGGATESsmall)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.