Description Usage Arguments Details Value Accessors Subsetting Concatenation Comparing & Ordering Author(s) See Also Examples
The AnnotatedIDs class is a simple container that wraps an ordinary vector in a Vector object. This allows attaching metadata columns to it.
1 2 | ## Constructor function
AnnotatedIDs(IDs=integer(0), ...)
|
IDs |
An ordinary vector. |
... |
Optional metadata columns to attach to the returned AnnotatedIDs object. |
TODO
An AnnotatedIDs object.
Because AnnotatedIDs objects are Vector derivatives
(i.e. AnnotatedIDs is a subclass of the Vector class
defined in the S4Vectors package), they support the same set of
accessors as Vector objects e.g. the length()
,
names()
, and mcols()
getters, or the names()
and
mcols()
setters.
An AnnotatedIDs object can be subsetted with [
, like any vector-like
object.
Two or more AnnotatedIDs objects can be concatenated with c()
.
Note that this returns an AnnotatedIDs object of length the sum of the
objects to concatenate.
Comparison operations between AnnotatedIDs objects (e.g. with ==
,
!=
, <=
, <
, match()
) behave consistently with
comparison of the ID objects that are wrapped in the AnnotatedIDs
objects to compare (and that can be obtained with ID()
).
More precisely, comparing AnnotatedIDs objects x
and y
is
equivalent to comparing ID(x)
and ID(y)
.
order()
), sort()
), and rank()
do the same thing.
Hervé Pagès
Vector objects in the S4Vectors package for the parent class.
DGraph objects for examples of using an AnnotatedIDs object to represent the nodes of a DGraph object.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.