setAnnotationFromObject: Set annotation_object of one UserMetadata object

Description Usage Arguments Details Value Examples

Description

Method of the class UserMetadata. Set annotation_object of one UserMetadata object by using one GRanges object as input.

Usage

1
2
3
4
setAnnotationFromObject(userObject, annotationObject, annotationName)

## S4 method for signature 'UserMetadata,GRanges,character'
setAnnotationFromObject(userObject, annotationObject, annotationName = "")

Arguments

userObject

The UserMetadata object

annotationObject

object of thr GRanges S4 class

annotationName

(optional) Name of the annotation. Will be used to create folders.

Details

If no annotationName is provided the name of the file is used to create folders.

Value

An object of the class UserMetadata

Examples

1
2
3
4
5
6
7
{
user <- new("UserMetadata")
annotation_object <- rtracklayer::import(system.file("extdata",
"annotation.gtf", package = "BgeeCall"))
user <- setAnnotationFromObject(user, annotation_object,
                                 "annotation_name")
}

BgeeCall documentation built on Dec. 12, 2020, 2 a.m.