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)
5 stars 1 forks source link

error when using --fixX and --rangeA + feature request #8

Open dhicksM2 opened 1 year ago

dhicksM2 commented 1 year ago

Hello,

Following our email exchange, I am submitting my questions here for more convenience. Thank you so much for your quick and helpful answers!

I saw that a new version of the script (BalLeRMix_v2.4.py) was uploaded a few days ago. Using this script, I am receiving new Type error messages when I try using the options --fixX and --rangeA:

I also noticed that the v2.3 script did not enable to accommodate multiple sample sizes in the input file. When I've tried with the most recent script, I've been getting a new error message:

File "/software/ballermix/BalLeRMix_v2.4.py", line 353, in getGrids
    AdGrid = [-log(1e-32)] + [getAd(a) for a in aGrid[1:]]
NameError: name 'log' is not defined

I'm not sure if this is related to sample size as well?

Thank you again for your help and for implementing this valuable ressource.

Best,

Dominique Hicks

bioXiaoheng commented 1 year ago

Hi Dominique, thanks for creating this issue! I made some (minor) changes to fix the error messages you're getting. Can you pull the latest version to see if it works on your end?