I used the packages topGO in R to analyze gene enrichment with the following code:
sampleGOdata <- new(\"topGOdata\", description = \"Simple session\",
I know this is an old question, but for the sake of completeness for future searchers, there's also a function called
selectMethod
that varies from getMethod in that you can use inheritance. This is how I found source for a generic function that has multiple signatures.