Description Usage Arguments Value Author(s) See Also Examples
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.
1 | 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
1 2 3 4 5 6 7 8 9 10 11 | # 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.