cerebis / bin3C

Extract metagenome-assembled genomes (MAGs) from metagenomic data using Hi-C.
GNU Affero General Public License v3.0
23 stars 7 forks source link

Check that HD record exists or place in try/catch block #40

Open cerebis opened 2 years ago

cerebis commented 2 years ago

https://github.com/cerebis/bin3C/blob/76ad2a94597b92b21e1d2054a1917c277e06cb1b/mzd/contact_map.py#L537

This will produce an uncaught exception if the 'HD' record does not existing the BAM file.

We need to either check for 'HD' or place this call in a try/catch KeyError