[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bioc-devel
Subject:    Re: [Bioc-devel] subsetByOverlaps export missing from NAMESPACE in GenomicRanges
From:       Martin Morgan <mtmorgan () fhcrc ! org>
Date:       2012-12-24 1:46:24
Message-ID: 50D7B3F0.7000808 () fhcrc ! org
[Download RAW message or body]

On 12/23/2012 05:19 PM, Jesper G=E5din wrote:
> Yes thanks that is probably the reason why it is missing from
> GenomicRanges. Noticed that it was in IRanges and had already put it in t=
he
> import, but forgot to also put in my export... After I put it in exports =
it
> works as intended.

actually, GenomicRanges 1.11.20 defines new methods on subsetByOverlaps, an=
d so =

has (not literally, but in effect)

   importFrom(IRanges, subsetByOverlaps)

so that the methods are associated with the correct generic, and

   exportMethods(subsetByOverlaps)

so that the new methods (and generic) are available to the end user.

Not sure what your use case is, but if you were _using_ this method in your =

package you would say

   importFrom(GenomicRanges, subsetByOverlaps)

and likely have Imports: GenomicRanges in the DESCRIPTION file, whereas if =
you =

were implementing a new method you'd say

   importFrom(IRanges, subsetByOverlaps)
   exportMethods(subsetByOverlaps)

and have at least Imports: IRanges in the DESCRIPTION file (but likely Depe=
nds: =

GenomicRanges or Depends: IRanges, as it might be reasonable for the user t=
o =

have access to functionality from these packages when using your package).

I think subsetByOverlaps methods should have been exported in the release =

version of GRanges (1.10.5) but were not.

Also, in passing (and probably obvious from the last couple of responses), =
since =

you're developing a package it makes sense to track the devel branch of R a=
nd =

Bioconductor. That way, your package will be ready for use when the new R /=
 Bioc =

release come out in a few months.

Martin

>
> Jesper
>
> On Mon, Dec 24, 2012 at 1:57 AM, Tim Triche, Jr. <tim.triche@gmail.com>wr=
ote:
>
>> that's probably because it is exported from IRanges
>>
>>
>>
>> On Sun, Dec 23, 2012 at 4:19 PM, Jesper G=E5din <jesper.gadin@gmail.com>=
wrote:
>>
>>> Hey,
>>>
>>> I have noticed that subsetByOverlaps is not exported in GenomicRanges
>>> NAMESPACE. Would be nice if someone could put it in :)
>>>
>>> /Jesper
>>>
>>>          [[alternative HTML version deleted]]
>>>
>>> _______________________________________________
>>> Bioc-devel@r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>>>
>>
>>
>>
>> --
>> *A model is a lie that helps you see the truth.*
>> *
>> *
>> Howard Skipper<http://cancerres.aacrjournals.org/content/31/9/1173.full.=
pdf>
>>
>
> 	[[alternative HTML version deleted]]
>
>
>
> _______________________________________________
> Bioc-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>


-- =

Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M1 B861
Phone: (206) 667-2793

_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic