Menu

#6 inadequate args check leads to infinite loop

v1.0_(example)
closed
nobody
None
5
2015-08-19
2010-02-19
Anonymous
No

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.

Discussion

  • Adam Kiezun

    Adam Kiezun - 2010-02-19

    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 :)

     
  • ryan

    ryan - 2015-08-19

    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.

     
  • ryan

    ryan - 2015-08-19
    • status: open --> closed
    • Group: --> v1.0_(example)
     

Anonymous
Anonymous

Add attachments
Cancel