[BioC] subset GRanges object via ElementMetadata

Steve Lianoglou mailinglist.honeypot at gmail.com
Fri Feb 22 22:58:56 CET 2013


On Fri, Feb 22, 2013 at 3:56 PM, Michael Lawrence
<lawrence.michael at gene.com> wrote:
> Btw, I hacked together a subset() method for GenomicRanges yesterday. It
> respects the metadata columns. Someone could probably come up with some
> reason why that violates the conceptual foundations of something, but I
> find it useful.
>
> So you could do:
> subset(gr, over == 2)
>
> Will commit shortly.

Yeah!

My `love-of-all-things-semantically-impure`-ing self has been wanting
this one for a long time :-)
http://thread.gmane.org/gmane.comp.lang.r.sequencing/1239

Thanks!
-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 Bioconductor mailing list