[BioC] How to show the definition of readFastq
Martin Morgan
mtmorgan at fhcrc.org
Mon May 24 00:25:14 CEST 2010
On 05/22/2010 03:46 PM, Peng Yu wrote:
> On Sat, May 22, 2010 at 4:40 PM, Vincent Carey
> <stvjc at channing.harvard.edu> wrote:
>> getMethods(mname) will retrieve definitions for all methods named
>> mname getMethod(mname, sig) will retrieve definition for specified
>> signature
>>
>> for your query
>>
>>> getMethod("readFastq", "character")
>
> Why the following command doesn't work for 'quality'?
>
>> getMethod('quality', 'ShortReadQ')
> Error in getMethod("quality", "ShortReadQ") : No method found for
> function "quality" and signature ShortReadQ
>> showMethods('quality')
> Function: quality (package Biostrings) x="ANY" x="FastqQuality"
> (inherited from: x="ANY") x="ShortReadQ" (inherited from: x="ANY")
see ?getMethod and the difference between selectMethod and getMethod,
conveniently documented on the same page.
A call to ‘getMethod’ ... makes no use of inheritance.
The function ‘selectMethod’ ... makes full use of the method
dispatch mechanism;
Martin
>
>
--
Martin Morgan
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
More information about the Bioconductor
mailing list