PoonLab / Kaphi

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

Change tips argument for template for simulation function #51

Closed ArtPoon closed 7 years ago

ArtPoon commented 7 years ago

A simulation wrapper function currently takes ntips as an argument corresponding to the number of tips in the tree to simulate. This doesn't provide any means for the user to specify varying tip heights. We will replace this argument with tips that can take either integer or vector arguments. If integer, then it is the number of contemporaneous tips (all the same height, zero). If a vector, then the length of the vector gives the number of tips and the values correspond to the tip heights.

MathiasRenaud commented 7 years ago

Working on this now (updating smcConfig.R, current wrappers, and tests) so that future simulation wrappers can be written with tips the first time.