[Bioc-devel] Bug in as.data.frame method for RangedData?

Kevin Ushey kevinushey at gmail.com
Mon Apr 28 22:02:09 CEST 2014


Hi,

With the following code and IRanges 1.99.6:

  ranges <- IRanges(c(1,2,3),c(4,5,6))
  rd <- RangedData(ranges)
  as.data.frame(rd)

I get

> as.data.frame(rd)
  group group_name start end width group_name.1
1     1          1     1   4     4            1
2     1          1     2   5     4            1
3     1          1     3   6     4            1

With the current release version (IRanges 1.22.4), I get

> as.data.frame(rd)
  space start end width
1     1     1   4     4
2     1     2   5     4
3     1     3   6     4

This seems like a bug.

Thanks,
Kevin

> sessionInfo()

R Under development (unstable) (2014-04-05 r65382)
Platform: x86_64-apple-darwin13.1.0 (64-bit)

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base



More information about the Bioc-devel mailing list