Motivation:
There is some code duplication between read_hic_header.py and straw.__readcstr and straw.read_header. Maybe a modularized version of the code would make it easier to maintain and update? If this PR is accepted (could use feedback for modifications), straw's Python API could be made more concise.
Changes:
replaced argv with argparse functionality
refactored script code under main() function
code now raises explicit exceptions instead of sys.stderr.write+sys.exit
Motivation: There is some code duplication between read_hic_header.py and straw.__readcstr and straw.read_header. Maybe a modularized version of the code would make it easier to maintain and update? If this PR is accepted (could use feedback for modifications), straw's Python API could be made more concise.
Changes: