[Bioc-devel] Class and Inheritance problem

Sean Davis sdavis2 at mail.nih.gov
Fri Sep 21 21:08:14 CEST 2007


I am trying to make what I thought was a simple class inheritance
structure, but I am running into problems.  The attached script shows
the problem.  Basically, I have a class ACMECalc that inherits from ACME
that, in turn, inherits from ExpressionSet.  I would like to allow users
to call new() on these two new classes with either a set featureData
argument or the two arguments Position and Chromosome, from which I will
construct the featureData.  This works fine for the ACME class, but
calling the initialize method for ACMECalc generates TWO calls to the
ACME initialize method (it appears to me), the second of which does not
include the necessary arguments.  I do not understand where the second
call to the ACME initialize method is coming from, so I'm finding it
difficult to fix the problem.  I know I am missing an important point in
how I am doing things, but I just can't see it.  If any one can spare a
few minutes to run the attached script and look things over, it is
supposed to be a bare-bones example to illustrate the problem.

Thanks,
Sean
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: classtest.R
Url: https://stat.ethz.ch/pipermail/bioc-devel/attachments/20070921/648c7d89/attachment.pl 


More information about the Bioc-devel mailing list