[Bioc-devel] Hunting for the subset generic definition?

Ryan C. Thompson rct at thompsonclan.org
Wed Jul 29 20:00:47 CEST 2015


 From base, according to my R console:

 > subset
standardGeneric for "subset" defined from package "base"

function (x, ...)
standardGeneric("subset")
<environment: 0x4eb60c8>
Methods may be defined for arguments: x
Use  showMethods("subset")  for currently available ones.

On 07/29/2015 10:40 AM, Steve Lianoglou wrote:
> Hi folks,
>
> I'm looking to define a `subset` method on an S4 class of mine, but
> can't find where to import the generic from.
>
> I can't seem to find it anywhere in:
>
>    * BiocGenerics
>    * S4Vectors
>    * XVector (
>
> Even though S4Vectors has a:
>
>    setMethod("subset", "DataTable", ...)
>
> It's not clear to me where it pulled the appropriate
> `setGeneric("subset", ...)` from.
>
> Can anyone provide a pointer?
>
> Thanks,
> -steve
>



More information about the Bioc-devel mailing list