etrid2grl {Pbase} | R Documentation |
GRanges
objectThis function takes on or more Ensembl transcript identifiers,
queries Biomart and constructs a GRangesList
object as
would Gviz::BiomartGeneRegionTrack
for a genomic region (in
fact, currently most of the code has been taken from
Gviz::.fetchBMData
and GViz::.chrName
is used to
validate chromosome names).
etrid2grl(etrid, ens, use.names = FALSE)
etrid |
A vector of Ensembl transcript identifiers. |
ens |
A instance of class |
use.names |
If set to |
A GRangesList
object of length
length(etrid)
.
Laurent Gatto
id <- c("ENST00000612959", "ENST00000317091") grl1 <- etrid2grl(id[1]) grl1 grl <- etrid2grl(id) stopifnot(all.equal(id, names(grl)))