|
From: hmh <hu...@gm...> - 2016-08-28 22:11:41
|
Hi, I have a bug in the allele frequency, I don't understand what is wrong in my script, and the bug persist even with the simplest situation '1 locus, 2 alleles, no mutation' _The bug is that every two generations the allele frequency is set to 0_. For every generation, the attached script print the allele frequency of the population, and the genotype of the first 5 individuals as well as of their 2 parents. (Genotypes are 0, 0.5 and 1 where 0.5 means heterozygous) Probably because of the same bug, there are often inconsistency such as: at the generation N Off:1.0 Dad:0.0 Mom:0.0 at the generation N+1 Off:0.0 Dad:1.0 Mom:1.0 I am using this simupop version : # simuPOP Version 1.1.7.1 : Copyright (c) 2004-2016 Bo Peng # Revision 5003 (May 22 2016) for Python 3.5.1+ (64bit, 1thread) # Random Number Generator is set to mt19937 with random seed 0x91f07829f57cb62. # This is the standard short allele version with 256 maximum allelic states. # For more information, please visit http://simupop.sourceforge.net, # or email sim...@li... (subscription required). Thanks for your help! hugo -- - no title specified Hugo Mathé-Hubert BU-G19 postdoc eawag (Swiss Federal Institute of Aquatic Science and Technology) Evolutionary Ecology <http://www.eawag.ch/en/department/eco/main-focus/evolutionary-ecology/>- About me <http://www.eawag.ch/en/aboutus/portrait/organisation/staff/profile/hugo-mathe-hubert/> Überlandstrasse 133 P.O.Box 611 8600 Dübendorf, Switzerland - - - - - - - - - - - - - - - - - - Thoughts appear from doubts and die in convictions. Therefore, doubts are an indication of strength and convictions an indication of weakness. Yet, most people /believe/ the opposite. - - - - - - - - - - - - - - - - - - Les réflexions naissent dans les doutes et meurent dans les certitudes. Les doutes sont donc un signe de force et les certitudes un signe de faiblesse. La plupart des gens sont pourtant certains du contraire. |