gamcil / cblaster

Find clustered hits from a BLAST search
MIT License
94 stars 20 forks source link

Unable to make database. genome_parser function returning empty list. #40

Closed StefaanVerwimp closed 3 years ago

StefaanVerwimp commented 3 years ago

The command cblaster makedb Downloads/*.gbk -n test returns:

File "/home/stve/.local/lib/python3.9/site-packages/cblaster/database.py", line 185, in makedb
    path_groups = [paths[i : i + batch] for i in range(0, total_paths, batch)]
ValueError: range() arg 3 must not be zero

This is because the return value from find_files_at_path in genome_parsers.py is an empty list

Reverting this commit fixed the issue for me.

gamcil commented 3 years ago

Thanks for reporting this, I've reverted the commit for v1.2.8.