Skip to content

Commit

Permalink
Fix for issue #4
Browse files Browse the repository at this point in the history
Properly continuing if there is no data for a requested chromosome in a MetH5 file
  • Loading branch information
snajder-r committed Jul 3, 2023
1 parent fd8bb95 commit 606da34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pycoMeth/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def read_raw_llrs(self, interval: Coord) -> Tuple[List, List, List, List]:
sample_reads = {}
for sample_id, hf in self.sample_hf_files.items():
chrom_container = hf[interval.chr_name]

if chrom_container is None:
continue

interval_container = chrom_container.get_values_in_range(interval.start, interval.end)

if interval_container is None:
Expand Down

0 comments on commit 606da34

Please sign in to comment.