inadequate args check leads to infinite loop
Brought to you by:
luricchio,
ryan_hernandez
sfscode/bin/sfs_code 1 1 --length 2 10 10 --popSize 2 --sampSize 2 --trackTrajectory L 2 R 0.0001 0.99 M 2
this never (?) ends. The reason may be that --trackTrajectory refers to locus 2 which does not exist. It took me a while to figure out what was going on.
The error should have been caught by checking the arguments.
Anonymous
this is a surprisingly severe problem: I'm running a big simulation and I thought sfs_code was just being very slow, while in fact I it was this bug. But first, I spent an hour waiting :)
I've now caught many things, but still not trivial to catch everything that deviates from what is expected. You can use --printGen to diagnose this kind of problem.