easyRNASeq-AnnotParam: AnnotParam constructor

Description Usage Arguments Details See Also Examples

Description

This constructs a AnnotParam object. The datasource parameter (see details) is mandatory, however other parameters, i.e. when the datasource is not a GRanges default to "genes" and gff3", indicating that the datasource is in the gff3 format and that the contained information needs to be grouped by "genes". This representing the most common use case. Hence, it is left to the user to refine the parameters accordingly to the annotation he is providing or whishes to retrieve.

Usage

1
2
3
4
5
## S4 method for signature 'character'
AnnotParam(
  datasource = character(0),
  type = c("gff3", "biomaRt", "gtf", "rda")
)

Arguments

datasource

a character or a GRanges object. See details.

type

one of NULL, biomaRt, gff3, gtf or rda. Default to NULL. See details.

Details

Note that calling the constructor without argument fails, as the datasource is a mandatory parameter. Calling the constructor with additional (not all) parameters will affect the value of the selected parameters, leaving the other parameters unaffected. There are three parameters for an AnnotParam object:

See Also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# create an object to retrieve annotation from biomaRt
annotParam <- AnnotParam(datasource="Hsapiens",type="biomaRt")

# get the datasource and type
datasource(annotParam)
type(annotParam)

# create an object to retrieve annotation from an rda object
# fetch the example data
gAnnot.rda <- fetchData("gAnnot.rda")
annotParam <- AnnotParam(datasource=gAnnot.rda,type="rda")

easyRNASeq documentation built on April 30, 2020, 2 a.m.