Re: [Bioc-devel] SetMethod to dispatch on class in unattached package

2019-01-30 Thread Michael Lawrence via Bioc-devel
uppressing the message works, so I'm happy. Just wanted to > >> report back on the partial success of doing it the cool way, in case > >> anyone was interested. > >> > >> > >> Thanks again! > >> > >> Brendan > >> > >

Re: [Bioc-devel] SetMethod to dispatch on class in unattached package

2019-01-30 Thread Pages, Herve
f doing it the cool way, in case anyone was >> interested. >> >> >> Thanks again! >> >> Brendan >> >> >> www.baderlab.org/BrendanInnes<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.baderlab.org_BrendanInnes&d=DwIFaQ&c=eRAMF

Re: [Bioc-devel] SetMethod to dispatch on class in unattached package

2019-01-30 Thread Michael Lawrence via Bioc-devel
ay, in case anyone was > interested. > > > Thanks again! > > Brendan > > > www.baderlab.org/BrendanInnes<http://www.baderlab.org/BrendanInnes> > > > From: Martin Morgan > Sent: Wednesday, January 30, 2019 12:16:20 PM >

Re: [Bioc-devel] SetMethod to dispatch on class in unattached package

2019-01-30 Thread Brendan Innes
ol way, in case anyone was interested. Thanks again! Brendan www.baderlab.org/BrendanInnes<http://www.baderlab.org/BrendanInnes> From: Martin Morgan Sent: Wednesday, January 30, 2019 12:16:20 PM To: Brendan Innes; bioc-devel@r-project.org Subject: Re: [B

Re: [Bioc-devel] SetMethod to dispatch on class in unattached package

2019-01-30 Thread Martin Morgan
A simple approach is to suppress the message (I think this is pragmatic, rather than dumb __) about unknown class (along with DESCRIPTION Suggests: Seurat) setGeneric("getGE", function(x) standardGeneric("getGE")) suppressMessages({ setMethod("getGE", "seurat", function(x) Seurat::GetAssayDa

[Bioc-devel] SetMethod to dispatch on class in unattached package

2019-01-29 Thread Brendan Innes
Hi friendly Bioc gang! I'm struggling with what seems like a silly problem. I'm trying to write a simple wrapper S4 generic that accesses the data slot of various S4 objects (seurat and SingleCellExperiment objects). So the generic is: setGeneric("getGE",function(x) standardGeneric("getGE")) A