bioXiaoheng / BalLeRMix

Software package for BalLeRMix and scripts used in the study "Flexible mixture model approaches that accommodate footprint size variability for robust detection of balancing selection" (Cheng & DeGiorgio 2020)
4 stars 1 forks source link

Small edit to do in one of the parsers #6

Closed YannBourgeois closed 2 years ago

YannBourgeois commented 2 years ago

Hi Xiaoheng, Thanks for this new development of BALLERMIX, it is a very convenient tool. I just noticed a small bug: when trying to specify my own recombination rate with --rec, I ended up with an error. I solved it by making a small edit to L739, from:

parser.add_argument('--rec', dest='Rrate', default = 1e-6 , help='The uniform recombination rate in cM/nt. Default value is 1e-6 cM/nt. Only useful when choose to use physical positions as coordinates.\n\n')

to

parser.add_argument('--rec', dest='Rrate', type=float, default = 1e-6 , help='The uniform recombination rate in cM/nt. Default value is 1e-6 cM/nt. Only useful when choose to use physical positions as coordinates.\n\n')

If "type=float" is not specified, there is a TypeError at line 122. All the best, Yann