get_exon_coords: Get coordinates of exons

View source: R/plotEnsGenes.R

get_exon_coordsR Documentation

Get coordinates of exons

Description

Get coordinates of exons from ENSEMBL database

Usage

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

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 May 23, 2023, 1:29 a.m.