addAnnotation | R Documentation |
SummarizedExperiment
object
Adds a new sample annotation to the SummarizedExperiment
object. In
other words it adds and column with sample annotations to the colData of the
SummarizedExperiment
object.
addAnnotation(x, sampleAnnotationType, sampleAnnotation)
x |
Object of type |
sampleAnnotationType |
The name of the new column to be added to the |
sampleAnnotation |
Vector with the same length as the row-size of the |
An InterestResult object.
Ali Oghabian
getAnnotation
# Check the annotation table of mdsChr22Obj data
getAnnotation(mdsChr22Obj)
# Add a new sample annotation
newMdsChr22Obj <- addAnnotation(x=mdsChr22Obj,
sampleAnnotationType="sample_number",
sampleAnnotation=1:16
)
# Retrieve annotations of the new object
getAnnotation(newMdsChr22Obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.