TypeError: 'numpy.float64' object cannot be interpreted as an integer

Issue #93 resolved
yimin created an issue

INFO:vcontact2.contig_clusters: 375 clusters loaded (singletons and non-connected nodes are dropped).
INFO:vcontact2.contig_clusters: Computing membership matrix...
ERROR:vcontact2: Error in contig clustering
ERROR:vcontact2: 'numpy.float64' object cannot be interpreted as an integer
Traceback (most recent call last):
File "/home/Public/Anaconda3/ENTER/envs/vcontact2/bin/vcontact2", line 686, in main
mode=args.vc_mode)
File "/home/Public/Anaconda3/ENTER/envs/vcontact2/lib/python3.7/site-packages/vcontact2/contig_clusters.py", line 102, in init
self.matrix["B"] = matrices.bool_membership(self.contigs)
File "/home/Public/Anaconda3/ENTER/envs/vcontact2/lib/python3.7/site-packages/vcontact2/matrices.py", line 71, in bool_membership
B = sparse.coo_matrix(([1.0]*len(xy), zip(*xy)), shape=(nb_contigs, nb_clusters))
File "/home/Public/Anaconda3/ENTER/envs/vcontact2/lib/python3.7/site-packages/scipy/sparse/coo.py", line 155, in init
self._shape = check_shape((M, N))
File "/home/Public/Anaconda3/ENTER/envs/vcontact2/lib/python3.7/site-packages/scipy/sparse/sputils.py", line 290, in check_shape
new_shape = tuple(operator.index(arg) for arg in args)
File "/home/Public/Anaconda3/ENTER/envs/vcontact2/lib/python3.7/site-packages/scipy/sparse/sputils.py", line 290, in <genexpr>
new_shape = tuple(operator.index(arg) for arg in args)
TypeError: 'numpy.float64' object cannot be interpreted as an integer

Comments (1)

  1. yimin reporter

    it's fixed! i used MCL on vc before, to resolve this is to use Clusterone. if clusterone is individually installed, u have to --vcs-mode ClusterONE --c1-bin /the/directory/to/clusterone.jar to reference it

  2. Log in to comment