That coercion only works if the elements of your GenomeData are coercible to
RangedData (which after coercion are combined into a single RangedData). So
it would be good to know what's in your GenomeData. If each element is a
list, as your error message suggests, it won't work, as there really is no
way to convert a list to a RangedData.

Michael

On Mon, Oct 18, 2010 at 7:00 PM, Dario Strbenac <D.Strbenac@garvan.org.au>wrote:

> Hello,
>
> This conversion used to work before but it seems like it doesn't any
> longer.
>
> > summary(rs)
>    Length      Class       Mode
>        25 GenomeData         S4
> > as(rs, "RangedData")
> Error in FUN(X[[1L]], ...) :
>  no method or default for coercing "list" to "RangedData"
> > sessionInfo()
> R version 2.12.0 (2010-10-15)
> Platform: x86_64-pc-mingw32/x64 (64-bit)
>
> locale:
> [1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252
>  LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
> [5] LC_TIME=English_Australia.1252
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] BSgenome_1.18.0     Biostrings_2.18.0   GenomicRanges_1.2.0
> IRanges_1.8.0
>
> loaded via a namespace (and not attached):
> [1] Biobase_2.8.0
>
> _______________________________________________
> Bioc-sig-sequencing mailing list
> Bioc-sig-sequencing@r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioc-sig-sequencing
>

	[[alternative HTML version deleted]]

