[Bioc-sig-seq] Suggest enhancement in GRanges: add method setAs("Granges", "IntervalTree")

Steve Lianoglou mailinglist.honeypot at gmail.com
Wed Aug 4 03:22:35 CEST 2010


Hi,

I find it might be a bit more convenient to create an
as(GRanges.object, "IntervalTree") method, so one doesn't have to
check if the ranges object is an IRanges or GRanges object. Would you
agree?

For various reasons, I pass these types of objects into similar
places, so (IMHO) adding a setAs method in the GenomicRanges would be
helpful:

setAs("GRanges", "IntervalTree", function(from) as(ranges(from),
"IntervalTree"))

Cheers,
-steve

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact



More information about the Bioc-sig-sequencing mailing list