Make GRanges from EnsDb object

makeGRangesFromEnsDb(object, level = c("genes", "transcripts"))

Arguments

object

Object.

level

character(1). Return as genes or transcripts.

Details

Use specific EnsDb object as annotation source. Alternatively, can pass in an EnsDb package name as a character(1).

Examples

if ("EnsDb.Hsapiens.v75" %in% rownames(installed.packages())) { x <- makeGRangesFromEnsDb("EnsDb.Hsapiens.v75") }
#> Making GRanges from EnsDb object.
#> Loading required namespace: EnsDb.Hsapiens.v75
#> - Organism: Homo sapiens #> - Genome Build: GRCh37 #> - Ensembl Release: 75 #> - Level: genes
#> Defining broadClass using: geneBiotype, geneName, seqnames
#> Arranging by geneID.
#> 64102 genes detected.