R/AllGenerics.R, R/SequenceData-class.R, R/SequenceDataSet-class.R, and 3 more
aggregate.RdThe aggregate function is defined for each
SequenceData object and can be used
directly on a SequenceData object or
indirectly via a Modifier object.
For the letter the call is redirect to the
SequenceData object, the result summarized
as defined for the individual Modifier class and stored in the
aggregate slot of the Modifier object. The data is then used
for subsequent tasks, such as search for modifications and visualization of
the results.
The summarization is implemented in the aggregateData for each type of
Modifier class. The stored data from the aggregate slot can be
retrieved using the getAggregateData function.
Whether the aggrgeated data is already present in the aggregate slot
can be checked using the hasAggregateData function.
For SequenceDataSet, SequenceDataList and ModfierSet
classes wrapper of the aggregate function exist as well.
aggregate(x, ...)
aggregateData(x, ...)
getAggregateData(x)
hasAggregateData(x)
# S4 method for class 'SequenceData'
aggregate(x, condition = c())
# S4 method for class 'SequenceData'
aggregateData(x, condition)
# S4 method for class 'SequenceDataSet'
aggregate(x, condition = "Treated")
# S4 method for class 'SequenceDataList'
aggregate(x, condition = "Treated")
# S4 method for class 'Modifier'
aggregate(x, force = FALSE)
# S4 method for class 'Modifier'
aggregateData(x)
# S4 method for class 'Modifier'
getAggregateData(x)
# S4 method for class 'Modifier'
hasAggregateData(x)
# S4 method for class 'ModifierSet'
aggregate(x, force = FALSE)a SequenceData,
SequenceDataSet, SequenceDataList,
Modifier or
ModfierSet object.
additional arguments
character value, which selects, for which condition the data
should be aggregated. One of the following values: Both,
Control, Treated
whether to recreate the aggregated data, if it is already stored
inside the Modifier object.
aggregate: for SequenceData object the aggregated data
is returned as a SplitDataFrameList with an element per transcript,
whereas for a Modifier the modified input object is returned,
containing the aggregated data, which can be accessed using
getAggregateData.
getAggregateData: only for Modifier: a
SplitDataFrameList with an element per transcript is returned. If the
aggregated data is not stored in the object, it is generated on the fly, but
does not persist.
hasAggregateData: TRUE or FALSE. Does the Modifier
object already contain aggregated data?
If 'x' is a
SequenceData: a
SplitDataFrameList with elments per transcript.
SequenceDataSet or
SequenceDataList: a SimpleList
with SplitDataFrameList as elements.
Modifier or
ModifierSet: an updated Modifier
object. The data can be accessed by using the aggregateData function.