GenomeData is a generic container. It looks like you're using it with the
chipseq package, which for each chromosome stores a list of integer vectors,
with an element for each strand. The RangedData coercion method tries to
coerce each element of GenomeData (i.e., each chromosome) to a RangedData
and then concatenates them. This simple logic will fail in this case.

I would recommend only using GenomeData when there is no appropriate
existing container type. For chipseq data, there usually is a good one (like
GRanges). Thus, the use of GenomeData is being phased out of the chipseq
package.

Michael

On Wed, Jul 21, 2010 at 6:30 PM, Dario Strbenac <D.Strbenac@garvan.org.au>wrote:

> Hello,
>
> It seems simple, but it is not working for me. Could it be that it is not
> implemented yet ?
>
> > asRD <- as(rs, "RangedData")
> Error in FUN(X[[1L]], ...) :
>  no method or default for coercing "list" to "RangedData"
> > summary(rs)
>    Length      Class       Mode
>        25 GenomeData         S4
>
> --------------------------------------
> Dario Strbenac
> Research Assistant
> Cancer Epigenetics
> Garvan Institute of Medical Research
> Darlinghurst NSW 2010
> Australia
>
> _______________________________________________
> Bioc-sig-sequencing mailing list
> Bioc-sig-sequencing@r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioc-sig-sequencing
>

	[[alternative HTML version deleted]]

