Well, one way would be to unlist it, clear the metadata, and then relist it.

Michael

On Sun, Aug 21, 2011 at 9:00 PM, Dario Strbenac <D.Strbenac@garvan.org.au>wrote:

> I am hoping that there is a faster way to get rid off all element metadata
> for GRanges in a GRangesList.
>
> This is the method that I understood from the documentation :
>
> > length(gene.exons)
> [1] 22482
>
> endoapply(gene.exons, function(x)
> {
>    elementMetadata(x) <- NULL
>    x
> })
>
> But it runs for a while.
>
>   user  system elapsed
>  654.64    4.04  658.87
>
> What is the best way to do this ?
>
> --------------------------------------
> Dario Strbenac
> Research Assistant
> Cancer Epigenetics
> Garvan Institute of Medical Research
> Darlinghurst NSW 2010
> Australia
>
> _______________________________________________
> Bioc-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>

	[[alternative HTML version deleted]]

