Re: [Bioc-devel] as.list fails on IRanges inside of lapply(, blah)

2018-02-20 Thread Hervé Pagès
On 02/20/2018 01:25 PM, Gabe Becker wrote: Herve, Thanks for the response. The looping across a ranges that's still in tehre is: dss = switch(seqtype,                      bp = DNAStringSet(*lapply(ranges(srcs)*, function(x) origin[x])),                      aa =

Re: [Bioc-devel] as.list fails on IRanges inside of lapply(, blah)

2018-02-20 Thread Gabe Becker
Herve, Thanks for the response. The looping across a ranges that's still in tehre is: dss = switch(seqtype, bp = DNAStringSet(*lapply(ranges(srcs)*, function(x) origin[x])), aa = AAStringSet(*lapply(ranges(srcs),* function(x) origin[x])),

Re: [Bioc-devel] as.list fails on IRanges inside of lapply(, blah)

2018-02-20 Thread Hervé Pagès
Hi Gabe, I made a couple of changes to genbankr (1.7.2) to avoid those looping e.g. I replaced things like sapply(gr, width) with width(gr) I can't run a full 'R CMD build' + 'R CMD check' on the package though because the code in the vignette seems to fail for reasons unrelated to

[Bioc-devel] as.list fails on IRanges inside of lapply(, blah)

2018-02-20 Thread Gabe Becker
All, I'm trying to track down the new failure in my genbankr package and it appears to come down to the fact that i'm trying to lapply over an IRanges, which fails in the IRanges to list (or List?) conversion. The particular case that fails in my example is an IRanges of length 1 but that does