$ ./create_batches.py ../file2species.tsv -d input/ -s species -f file -c -m 200
Loaded 1932811 genomes across 10357 species clusters
Traceback (most recent call last):
File "./create_batches.py", line 191, in <module>
main()
File "./create_batches.py", line 187, in main
batching.run()
File "./create_batches.py", line 108, in run
self._create_dustbin()
File "./create_batches.py", line 64, in _create_dustbin
if len(fns) >= self.cluster_min_size:
TypeError: '>=' not supported between instances of 'int' and 'str
Could be fixed by
- if len(fns) >= self.cluster_min_size:
+ if len(fns) >= int(self.cluster_min_size):
It's strange, cause you've set the variable type as int:
Could be fixed by
It's strange, cause you've set the variable type as
int
:https://github.com/karel-brinda/MiniPhy/blob/main/create_batches.py#L126