PoonLab / Kaphi

Kernel-embedded ABC-SMC for phylodynamic inference
GNU Affero General Public License v3.0
4 stars 2 forks source link

Mapping `phylo` to `z` is failing #35

Closed ArtPoon closed 7 years ago

ArtPoon commented 7 years ago
Error in .simulate.ode.tree(sample.times, sample.states, fgy, solve.QAL,  : 
  (list) object cannot be coerced to type 'integer'

The code is failing at this step:

index <- as.integer(izx[names(ipx)])

where ipx is an inverted associative list with concatenated tip labels as keys and phylo node indices as values, and izx is also an inverted associative list with what should be the same keys and z node indices as values.

ArtPoon commented 7 years ago

Fixed