Hi I'm trying to create an EnsDb object from the EnsDb.Hsapiens.v86 package. I would like to filter only protein_coding as such.
library(EnsDb.Hsapiens.v86)
db=transcripts(EnsDb.Hsapiens.v86, filter = TxBiotypeFilter( "protein_coding" ))
however this result in a filter GRange object instead of a smaller subset of the original EnsDb. Does anyone know how to create a new EnsDb with the above filter?
thanks! Ahdee
I see thank you. What I want to do is to convert genomic coordinates into transcript coordinates, however I only want to retain transcript type that are protein and not something like mediate decay. For example something like this.
Right now I have to do this two steps first above and then subset with another annotation with transcript type.