Re: [Bioc-devel] Extending GenomicRanges::`intra-range-methods`

2019-09-17 Thread Bhagwat, Aditya
: Re: [Bioc-devel] Extending GenomicRanges::`intra-range-methods` Hi Aditya, I think straddle would be a great addition to plyranges. Happy for you to put in a PR and add you as a contributor. Maybe instead of specifying the start etc. we could dispatch on anchored ranges instead? So we�d follow

Re: [Bioc-devel] Extending GenomicRanges::`intra-range-methods`

2019-09-16 Thread Stuart Lee
Hi Aditya, I think straddle would be a great addition to plyranges. Happy for you to put in a PR and add you as a contributor. Maybe instead of specifying the start etc. we could dispatch on anchored ranges instead? So we’d follow the anchor_start(gr) %>% straddle(). We could also have the

Re: [Bioc-devel] Extending GenomicRanges::`intra-range-methods`

2019-09-16 Thread Michael Lawrence via Bioc-devel
[bioc-devel-boun...@r-project.org] on behalf of Bhagwat, > Aditya [aditya.bhag...@mpi-bn.mpg.de] > Sent: Monday, September 16, 2019 10:30 AM > To: Michael Lawrence > Cc: bioc-devel@r-project.org > Subject: Re: [Bioc-devel] Extending GenomicRanges::`intra-range-methods` > > Hmm

Re: [Bioc-devel] Extending GenomicRanges::`intra-range-methods`

2019-09-16 Thread Bhagwat, Aditya
Subject: Re: [Bioc-devel] Extending GenomicRanges::`intra-range-methods` Hmm no that wouldn't work, it would become messy trying to figure out when incompatible arguments are provided. Aditya From: Bioc-devel [bioc-devel-boun...@r-project.org] on behalf

Re: [Bioc-devel] Extending GenomicRanges::`intra-range-methods`

2019-09-16 Thread Bhagwat, Aditya
, September 16, 2019 10:09 AM To: Michael Lawrence Cc: bioc-devel@r-project.org Subject: Re: [Bioc-devel] Extending GenomicRanges::`intra-range-methods` Hi Michael, Thank you for the pointer to plyranges - looks very useful! > Maybe a better name is "straddle" for when ranges &

Re: [Bioc-devel] Extending GenomicRanges::`intra-range-methods`

2019-09-16 Thread Bhagwat, Aditya
Hi Michael, Thank you for the pointer to plyranges - looks very useful! > Maybe a better name is "straddle" for when ranges > straddle one of the endpoints? In keeping with the current pattern of > Ranges API, there would be a single function: straddle(x, side, left, > right,

Re: [Bioc-devel] Extending GenomicRanges::`intra-range-methods`

2019-09-13 Thread Michael Lawrence via Bioc-devel
Thanks for these suggestions; I think they're worth considering. I've never been totally satisfied with (my function) flank(), because it's limited and its arguments are somewhat obscure in meaning. You can check out what we did in plyranges: https://rdrr.io/bioc/plyranges/man/flank-ranges.html.

[Bioc-devel] Extending GenomicRanges::`intra-range-methods`

2019-09-13 Thread Bhagwat, Aditya
Dear bioc-devel, The ?GenomicRanges::`intra-range-methods` are very useful for range arithmetic Feedback request: would it be of general use to add the methods below to the