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

Error in adding fixations to "multi-locus" sims in "sugar" layer #43

Closed molpopgen closed 7 years ago

molpopgen commented 8 years ago

In fwdpp/sugar/sampling.hpp, the functions KTfwd::sample and KTfwd::sample_separate have a bug when adding fixed variants into a sample. Polymorphisms that are fixed in the sample are ok, but "true" fixed variants (e.g., variants at frequency 1) are added to both loci.

molpopgen commented 7 years ago

This was fixed in 0.5.3.