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

Validate samples lists #158

Closed molpopgen closed 5 years ago

molpopgen commented 5 years ago

The separation of "alive" and "dead" sample lists poses some issues. It is possible to mark individuals in the final generation of a simulation as "ancient", and then attempt to do something with them. Doing so may result in the same node being input twice as a sample, which affects simplification and many/all downstream operations. The biggest problem right now is that the simplifier does not check if a sample has already been "registered", so that is the first thing to address.