Hello,
I am trying to use ensembldb's transcriptToGenome function, using EnsDb.Hsapiens.v86 as the db. My code below is:
library(ensembldb) library(EnsDb.Hsapiens.v86)
edbx <- filter(EnsDb.Hsapiens.v86, filter = ~ seq_name == "8") rng_tx <- IRanges(start = c(10), width = c(42), names = c("ENST00000657517"))
rng_gnm <- transcriptToGenome(rng_tx, edbx) rng_gnm
I get
Warning message: In transcriptToGenome(rng_tx, edbx) : 1 transcript(s) could either not be found in the database or the specified range is outside the transcript's sequence
From ensembl, I know that this range is within the transcripts sequence, so I believe it is just not in EnsDb. Is there a way I can "add" this to the database, or create a new db object in R?
Thank you!