Closed schmigle closed 1 month ago
Hello, Yes it seems a bit weird.
Are you sure that all contigs in your different binning results are in the assembly file and with the same name? If the names do not match between bins and assembly, binette will not be able to work. I am not sure I added the adequate error if this happens.
I think they are, DAS_tool runs fine on the dataset and relies on the same principle. However, I'll check and update later.
I was able to reproduce the error when a contig from a bin is not found in the provided contig file. The numerical ID 9229 you see in the error occurs because contig names are temporarily replaced by indexes in the code to save memory.
Binette has some checks on contig consistency but somehow misses this particular scenario. I'll work on that and improve the error handling to make it clearer. Thanks for reporting this error.
Hello, I've improved the error handling in version 1.0.1. Binette should now clearly indicate that contigs are missing in the contigs files if mismatches are found between bin tables and contig file. I'm closing this issue for now, but please feel free to reopen it if you think the contig name mismatch wasn't the root cause of the problem. Best
Looks like it's using some kind of length information for the dictionary keys.