annotation-utils: Handling Object Annotations

Description Usage Arguments Functions Methods (by generic)

Description

Annotation utility functions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
hasAnnotation(object, ...)

getAnnotation(object, ...)

## Default S3 method:
getAnnotation(object, ..., null = TRUE)

setAnnotation(object, value, ...)

## Default S3 method:
setAnnotation(object, value, as.attribute = TRUE, ...)

## S3 method for class 'list'
getAnnotation(object, ...)

## S3 method for class 'list'
setAnnotation(object, value, force = FALSE, ...)

Arguments

object

an object

...

extra parameters (currently not used)

null

logical that indicates if an empty character string should be return as NULL.

value

new annotation string, e.g., 'hgu133plu2.db'.

as.attribute

logical that indicates that the annotation string can be stored as an attribute, if no suitable `annotation <-` method is found.

force

single logical that indicates if the annotation string should be set even if the objects do not share the same original annotation.

Functions

Methods (by generic)

getAnnotation:

setAnnotation:


renozao/xbioc documentation built on Sept. 3, 2020, 1:13 a.m.