Skip to content
Prev 18163 / 21312 Next

[Bioc-devel] %outside% on GRanges

Hi Oleksii,

That function is just a simplification of the negation of overlapsAny:
A single object matching '%outside%' was found
It was found in the following places
  package:IRanges
  namespace:IRanges
with value

function (query, subject) 
!overlapsAny(query, subject)
<bytecode: 0x00000000120f7218>
<environment: namespace:IRanges>

And overlapsAny has dispatch on Granges objects via inheritance from the Vector class.
Function: overlapsAny (package IRanges)
query="GRanges", subject="GRanges"
    (inherited from: query="Vector", subject="Vector")
query="integer", subject="Vector"
query="IntegerRangesList", subject="IntegerRangesList"
query="Vector", subject="missing"
query="Vector", subject="Vector"

So far as I can tell there is no code in GenomicRanges to make this happen - it just dispatches via inheritance - so there is no direct help page in GenomicRanges.

Best,

Jim




-----Original Message-----
From: Bioc-devel <bioc-devel-bounces at r-project.org> On Behalf Of Oleksii Nikolaienko
Sent: Wednesday, May 26, 2021 9:15 AM
To: bioc-devel at r-project.org
Subject: [Bioc-devel] %outside% on GRanges

Dear Bioc team,
%outside% operator from IRanges works as one would expect even if GRanges objects are supplied as operands:
[1] TRUE
[1] FALSE

It is correct and intuitive, but %outside% does not seem to be defined or included in help pages of the GenomicRanges library. Can I rely on such behaviour of %outside% in the future?

Best,
Oleksii Nikolaienko


_______________________________________________
Bioc-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel
Message-ID: <MWHPR08MB35337408623C827A173A3803C2249@MWHPR08MB3533.namprd08.prod.outlook.com>
In-Reply-To: <CAOxY_Kzfxo+T5goez0Hc3N87siGSV6tAT_uuNp1OnCRFk_1yHw@mail.gmail.com>