Biostar Beta. Not for public use.
Question: Converting UCSCData Class to GRanges Class
Entering edit mode

Dear all,

I have a UCSCData class object and would like to transform it into a Granges object. Is there any easy way of doing that (apart from doing that manually using the GRanges function)?

More specifically, I have a list of ±50K promoter elements from UCSC:

> summary(prom)
  Length    Class     Mode 
   50066 UCSCData       S4 

Many thanks,


ADD COMMENTlink 4.4 years ago Dimitris Polychronopoulos • 0 • updated 4.4 years ago Joseph Pearson • 430
Entering edit mode

From a little playing with a UCSCData object I got via rtracklayer, it sure seems that just calling


should give you a set of the GRanges for every promoter. Did that not work for you?

ADD COMMENTlink 4.4 years ago Joseph Pearson • 430
Entering edit mode

yes, thanks a lot

Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.0