Skip to content
Prev 9607 / 21312 Next

[Bioc-devel] S4 overwrite inspector of virtual class

In principle, there should be no need to override a validator, since
the constraints specified by the super class should not be violated.
Subclasses should only add constraints. But you can abstract the
constraints, e.g., make a generic for checking the chromosome ID
format, and have version-specific methods for that.

Moreover, it's not clear whether inheritance makes sense in this case,
i.e., you are using as a tool where there is no logical inheritance
relationship. You can always define separate methods for each format
version class and factor the common implementation into an underlying
function.

Michael
On Mon, Aug 15, 2016 at 9:56 AM, Zach Skidmore <zskidmor at wustl.edu> wrote: