[Bioc-devel] adding a validity method to a class

Steve Lianoglou mailinglist.honeypot at gmail.com
Thu Mar 31 20:35:09 CEST 2011

>> Your second suggestion:
>>  setValidity("CytoscapeWindowClass", validCytoscapeWindow)
>> *does* work.  But where should such an assignment be made?  At global scope at the bottom of the class file?
> Maybe right after the validCytoscapeWindow function definition
>> That seems a little ragged!

Or, maybe this is a bit tidier?

setClass("CytoscapeWindowClass", ...)
setValidity("CytoscapeWindowClass", function(obj) {
  ## ... lots of code here

Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact

More information about the Bioc-devel mailing list