Converting UCSCData Class to GRanges Class
1
0
Entering edit mode
9.2 years ago

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,
Dimitris

Genome R GRanges • 2.7k views
ADD COMMENT
0
Entering edit mode
9.2 years ago

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

GRanges(prom)

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

ADD COMMENT
0
Entering edit mode

yes, thanks a lot

ADD REPLY

Login before adding your answer.

Traffic: 1906 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