get_exon_coords: Get coordinates of exons

Description Usage Arguments Value Examples

View source: R/plotEnsGenes.R

Description

Get coordinates of exons from ENSEMBL database

Usage

1
get_exon_coords(ensdb, query, biotypes = c("protein_coding"))

Arguments

ensdb

ENSEMBL database object like EnsDb.Hsapiens.v86

query

GRranges ofject of one interval. "chr20" should be coded as "20"

biotypes

gene biotypes to return

Value

GRanges object of exon locations

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(EnsDb.Hsapiens.v86)
library(GenomicRanges) 

# gene database
ensdb = EnsDb.Hsapiens.v86

# interval
query = GRanges("20", IRanges(62045027,62164563))

# get GRanges object of exon locations
get_exon_coords( ensdb, query)

GabrielHoffman/decorate documentation built on July 26, 2021, 12:18 a.m.