[Bioc-sig-seq] Coercion of GenomeData to RangedData

Vincent Carey stvjc at channing.harvard.edu
Tue Oct 19 04:38:46 CEST 2010


My reading of the doc suggests it should work.  Perhaps this is a
workaround: after example("GenomeData-class"),

> as(as(as(gd, "RangesList"), "GRanges"), "RangedData")


On Mon, Oct 18, 2010 at 10:00 PM, Dario Strbenac
<D.Strbenac at 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 at r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioc-sig-sequencing
>



More information about the Bioc-sig-sequencing mailing list