thibautjombart / apex

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

Add type of data stored in multiphyDat #26

Closed thibautjombart closed 9 years ago

thibautjombart commented 9 years ago

I would rename @dna to @seq and create a new @type to store the data type.

KlausVigo commented 9 years ago

@thibautjombart I will do this for multiphyDat and in phangorn parallel later today (at night in Europe). As I have the workshop with Emmanuel next week and try not break things or minimize the chances of doing so.

thibautjombart commented 9 years ago

;)

KlausVigo commented 9 years ago

@thibautjombart If I rename @dna to @seq than it seems I have to do this also for multidna objects, as setClass("multiphyDat", contains="multidna").

thibautjombart commented 9 years ago

Damn, I forgot that, you are right. The problem of doing so is loosing backward compatibility. We should have used accessors right away. I think the best course of action might be:

I'll give it a shot this afternoon. Also adding issues for accessors.

thibautjombart commented 9 years ago

OK, should be working now. @KlausVigo maybe worth checking that the multiphyDat constructor is OK. Also, you will need to replace the @dna by @seq in pmlPart (currently crashes the vignette so I commented it out).