Closed Balthasar-eu closed 3 years ago
I have to admit, that I did not test the pull request for any other case but the wrong chromosome name, but the changes are pretty limited and the current master version seems to forget to import sys
anyways and will fail if read_metadata is executed.
Describe the bug When a check in the package fails currently a message is printed and the function returns -1 or None instead of raising an Exception, which leads to random errors later.
To Reproduce Steps to reproduce the behavior: Have valid HiC file. use:
Which will fail, of the organism from the file does not have a chromosome 100, the error message is however:
Expected behavior The error message should instead be:
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context