Skip to content

[Bioc-devel] seq*apply deprecation

6 messages · Michael Lawrence, Hervé Pagès

10 days later
#
Hi Michael,
On 01/12/2014 05:16 AM, Michael Lawrence wrote:
Sounds good to me.
Why do we need all this?

   x <- RleList(11:14, 3:1)

Then:

   > IRanges:::mapply_List(function(a, b) {a+b}, x, 10)
   [[1]]
   numeric-Rle of length 4 with 4 runs
     Lengths:  1  1  1  1
     Values : 21 22 23 24

   [[2]]
   numeric-Rle of length 3 with 3 runs
     Lengths:  1  1  1
     Values : 13 12 11

But also:

   > base::mapply(function(a, b) {a+b}, x, 10)
   [[1]]
   numeric-Rle of length 4 with 4 runs
     Lengths:  1  1  1  1
     Values : 21 22 23 24

   [[2]]
   numeric-Rle of length 3 with 3 runs
     Lengths:  1  1  1
     Values : 13 12 11

What am I missing?

Thanks,
H.

  
    
#
On 01/22/2014 03:02 PM, Michael Lawrence wrote:
Furthermore, maybe she should also remove the mapply() S4 generic from
the BiocGenerics package. It's not needed anymore. base::mapply() should
work out-of-the-box on any object for which length() and [[ are
implemented.

H.

  
    
#
On 01/22/2014 08:15 PM, Michael Lawrence wrote:
we would, she should, she would, we should... that's it! we should...
that's what I meant :-b

H.