Skip to content

Commit

Permalink
Ignore contigs for which there are no data points
Browse files Browse the repository at this point in the history
  • Loading branch information
nvictus committed Feb 9, 2017
1 parent 08fb487 commit b9efd0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cooler/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ def size(self):
return self.n_records

def aggregate(self, chrom):
if chrom not in self.contigs:
return None

import pysam
filepath = self.filepath
binsize = self.binsize
Expand Down

0 comments on commit b9efd0f

Please sign in to comment.