Extract all protein-coding genes from TxDb.
0
1
Entering edit mode
5 weeks ago
octpus616 ▴ 120

Hi

I am trying to process the TxDb.Mmusculus.UCSC.mm10.knownGene annotation database in R.

I want to extract all the information of protein-coding genes from it and still keep it as a TxDb structure. I am not sure what the correct operation is?

I have tried:

txdb <- TxDb.Mmusculus.UCSC.mm10.knownGene
all_genes <- genes(txdb, columns = "CDSID")

# then filter out CDSID is NA and convert back to TxDb

It can work, but it will lose a lot of information, making Txdb no longer usable for my downstream.

R Granges IRanges Txdb • 205 views
ADD COMMENT

Login before adding your answer.

Traffic: 2101 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6