magicDGS / ReadTools

A Universal Toolkit for Handling Sequence Data from Different Sequencing Platforms
https://magicdgs.github.io/ReadTools/
MIT License
6 stars 3 forks source link

Better error message for malformed header in barcode file #513

Closed magicDGS closed 5 years ago

magicDGS commented 5 years ago

@robmaz reported in https://github.com/magicDGS/ReadTools/issues/509 a bug that was just a malformed barcode file, where a column was separated by two-tabs instead of just one. The error message was the scary UNEXPECTED ERROR: null, that is difficult to debug and not informative at all.

While loading the dictionary, the reading code should check that there is no "empty" header, which can mess up completely the file without realizing. Still, we need to support empty fields in the rows, because it might be necessary for #512.