thibautjombart / apex

Phylogenetic Methods for Multiple Gene Data
5 stars 3 forks source link

Rationalise the classes #19

Closed thibautjombart closed 9 years ago

thibautjombart commented 9 years ago

With identical data structures, the two classes should either:

  1. inherit from a common data structure (a la adegenet)
  2. (or) one inheriting from the other

I am starting to work on that, going with 2.

thibautjombart commented 9 years ago

Now multiphyDat inherits from multidna. We need to be careful as now:

> inherits(new("multiphyDat"), "multidna")
[1] TRUE

But best using dispatching whenever possible.

thibautjombart commented 9 years ago

Done as of 32979e802e9d699e487e7c