Re: [Bioc-devel] [feature-request] IRanges: add support for dplyr tbl_df dataframes

2014-07-12 Thread Michael Lawrence
Should work in devel, 1.99.20, as long as that object returns two dimensions from dim(), we proceed through data.frame. Assumption is that 2D things have an as.data.frame method. On Sat, Jul 12, 2014 at 9:19 AM, Keith Hughitt wrote: > Currently, IRanges does not play well with dplyr dataframes,

[Bioc-devel] [feature-request] IRanges: add support for dplyr tbl_df dataframes

2014-07-12 Thread Keith Hughitt
Currently, IRanges does not play well with dplyr dataframes, e.g.: library(IRanges) library(dplyr) df = tbl_df(data.frame( id=c(1,2,3), group=c('a','b','c') )) > DataFrame(df) library(dplyr) > DataFrame(df) DataFrame with 2 rows and 1 column Error in `rownames<-`(`*tmp*`, value = c("id