sklasfeld / DANPOS3

Updated DANPOS2 to work with python3
20 stars 5 forks source link

math domain error #5

Open Siteng999 opened 1 year ago

Siteng999 commented 1 year ago

Hello

When I am using DANPOS, some tasks have the following bug, is there any solution for it?

Gratefully, siteng

Traceback (most recent call last): File "/public/home/stbi/task/xxt/sequence/DANPOS3/danpos.py", line 1365, in if sys.argv[1]=='dpos':runDANPOS(command='dpos') ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/public/home/stbi/task/xxt/sequence/DANPOS3/danpos.py", line 396, in runDANPOS danpos(\ File "/public/home/stbi/task/xxt/sequence/DANPOS3/functions.py", line 506, in danpos allPositionsInOneFile(controlPositionFile=os.path.join(opath,'pooled',groupnames[1]+addname+"positions.ref_adjust.xls"),\ File "/public/home/stbi/task/xxt/sequence/DANPOS3/functions.py", line 1172, in allPositionsInOneFile temp=log10fuztest(pc=p1,pt=p2,cr=cr,cwig=cwig,twig=twig,rd=rd) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/public/home/stbi/task/xxt/sequence/DANPOS3/functions.py", line 1342, in log10fuztest else:p=pf(unnumpy(div(vt,vc)), ^^^^^^^^^^^^^^^^^^^^^^^ File "/public/home/stbi/task/xxt/sequence/DANPOS3/functions.py", line 66, in pf answer = log(answer) ^^^^^^^^^^^ ValueError: math domain error

SimHolz commented 1 year ago

Hi Siteng,

this should be resolved with #3 please download the updated version of DANPOS3 and try again

bw

Siteng999 commented 1 year ago

Hi,@SimHolz

The functions.py can be normal workinng ! Thank you very much for your help

Gratefully, siteng

Here's a harmless bug: /public/home/stbi/task/xxt/sequence/DANPOS3/functions.py:173: SyntaxWarning: "is not" with a literal. Did you mean "!="? if bggroupname is not 'None':