Re: [Bioc-devel] A question on IRanges package

2014-04-04 Thread Martin Morgan
On 04/03/2014 06:17 PM, Yuan Luo wrote: A side question, in the frame 3, what does .local mean? local environment? like if I go into frame 3, I'd be able to print out their values? (I'm only the messenger) .local is a nested function created when a method adds arguments to the generic. After

Re: [Bioc-devel] A question on IRanges package

2014-04-03 Thread Gabe Becker
If you want to step into the environments where the errors are happening you want options(error=recover) not traceback. In that case, you can step into each of the frames. The .local is actually the body of the method being called though, nothing to do with an environment. ~G On Thu, Apr 3, 20

Re: [Bioc-devel] A question on IRanges package

2014-04-03 Thread Yuan Luo
A side question, in the frame 3, what does .local mean? local environment? like if I go into frame 3, I'd be able to print out their values? On Thu, Apr 3, 2014 at 9:10 PM, Yuan Luo wrote: > I think that line at 4 points to the generic definition, at least on my > machine (and keep source works

Re: [Bioc-devel] A question on IRanges package

2014-04-03 Thread Yuan Luo
I think that line at 4 points to the generic definition, at least on my machine (and keep source works, thanks!). Just found what was the culprit, there is a wrapper in findOverlaps-GIntervalTree-methods.R#12. After updating that, it works. > traceback() 5: stop(gettextf("'arg' should be one of %s

Re: [Bioc-devel] A question on IRanges package

2014-04-03 Thread Martin Morgan
On 04/03/2014 04:42 PM, Michael Lawrence wrote: I'll look at the code. As far as tracking line numbers, no, because the code is bundled into a package -- there are no files anymore. In principle, that could be improved, but as far as I know, it hasn't been. If you're I think there's an option,

Re: [Bioc-devel] A question on IRanges package

2014-04-03 Thread Michael Lawrence
I'll look at the code. As far as tracking line numbers, no, because the code is bundled into a package -- there are no files anymore. In principle, that could be improved, but as far as I know, it hasn't been. If you're trying to figure out dispatch behavior, things like selectMethod(findOverlaps,

Re: [Bioc-devel] A question on IRanges package

2014-04-03 Thread Yuan Luo
At the moment I am using the package to tweak some design on interval tree algorithm, and much of my efforts are hack. So does the code suggest to you what I am doing wrong to get the match.arg failing error? Also, when you were developing the package, how do you tell the traceback to show line num

Re: [Bioc-devel] A question on IRanges package

2014-04-03 Thread Michael Lawrence
It looks like the only hits this will filter out are cases where the start of the query (X) is equal to the end of the subject (Y), but it seems like the "o" operation is different -- it requires that X start before Y starts and end before Y ends. We could add these relations to IRanges, but maybe

Re: [Bioc-devel] A question on IRanges package

2014-04-03 Thread Yuan Luo
Hi Michael, Thanks for your reply! I covered setGeneric as well, attached is the modified code. My change is pretty simple, I want to support the o relation in Allen's Interval algebra (http://en.wikipedia.org/wiki/Allen's_interval_algebra) So I added one more filter option } else if (type == "

Re: [Bioc-devel] A question on IRanges package

2014-04-03 Thread Michael Lawrence
On Thu, Apr 3, 2014 at 11:33 AM, Yuan Luo wrote: > Hi All, > Sorry for possible spam, but I am trying to customize IRanges package > locally. For what I am doing, I introduced another option to type > parameters to the findOverlaps method. In the file findOverlaps-methods.R, > I modified every in