rnb.load.annotation(fname, type)
character
vector giving the name of the file that contains the annotation data.character
vector giving the name of the region annotation. If this annotation
is already available, it will be overwritten for the current session.TRUE
if the annotation was loaded successfully; an error message if the objects in the
given file do not encode an annotation.
"unable to load object from ..."
. This could happen, for example, when fname
does not refer to
a valid RData file, or the file cannot be accessed due to security restrictions.If the file is loaded in the current session, but no annotation was added, the function returns invisibly one of the following short failure messages:
"invalid format"
assembly
,
regions
, and mapping
, or they are not of the expected type.
"unsupported assembly"
"invalid format of regions"
"invalid format of mappings"
rnb.save.annotation
for saving annotation to a binary file; rnb.set.annotation
for loading an annotation from a BED file.