molpopgen / fwdpp

fwdpp is a C++ template library for implementing efficient forward-time population genetic simulations
http://fwdpp.readthedocs.io
GNU General Public License v3.0
27 stars 11 forks source link

Allow sugar/poptypes to be constructed with diploids/gametes/mutations/etc. #28

Closed molpopgen closed 7 years ago

molpopgen commented 9 years ago

The current fwdpp/initms.hpp is out of date and needs updating.

molpopgen commented 8 years ago

This header has been deleted in 0.4.4. Something will replace it in 0.4.5, I hope...

molpopgen commented 8 years ago

This is largely addressed by features in the 0.4.9 release.

molpopgen commented 7 years ago

The current code in fwdpp/sugar/add_mutation.hpp does not cover the case of a mult-locus/region population object.

molpopgen commented 7 years ago

The current code in fwdpp/sugar/add_mutation.hpp does not cover the case of a mult-locus/region population object.

This is no longer correct--multi-locus objects are now supported.

molpopgen commented 7 years ago

At a lower level, this can be solved by adding constructors for population objects that take lists of diploids/gametes/mutations/fixations/fixation times (the latter two being optional via an overload perhaps?) and then fill up the other data objects as needed.