Traceback (most recent call last):
File "/home/ubuntu/anaconda3/bin/runBESST", line 4, in <module>
__import__('pkg_resources').run_script('BESST==2.2.8', 'runBESST')
File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 748, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1517, in run_script
exec(code, namespace, namespace)
File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/BESST-2.2.8-py3.6.egg/EGG-INFO/scripts/runBESST", line 431, in <module>
main(args)
File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/BESST-2.2.8-py3.6.egg/EGG-INFO/scripts/runBESST", line 182, in main
(G, G_prime) = CG.PE(Contigs, Scaffolds, Information, C_dict, param, small_contigs, small_scaffolds, bam_file) #Create graph, single out too short contigs/scaffolds and store them in F
File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/BESST-2.2.8-py3.6.egg/BESST/CreateGraph.py", line 307, in PE
GiveScoreOnEdges(G, Scaffolds, small_scaffolds, Contigs, param, Information, plot)
File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/BESST-2.2.8-py3.6.egg/BESST/CreateGraph.py", line 490, in GiveScoreOnEdges
steps = list(range(0, int(max_isize*0.8), max_isize/50)) # isize_range[:int(0.8*len(isize_range)):len(isize_range)/50] # not the upper most values
TypeError: 'float' object cannot be interpreted as an integer
Hi,
I am running BESST 2.2.8 in a python3 environment and get the following error:
I believe this is due to
max_isize/50returning a float value in python3 instead of a int.