Skip to content

Commit d3009ea

Browse files
committed
minor fix
1 parent 1aa324b commit d3009ea

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

seqchromloader/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ def intervals(self, chrom):
3333
else:
3434
return self.bw.records(chrom)
3535

36-
def stats(self, chrom, type='mean'):
36+
def stats(self, chrom, type='mean', exact=True):
3737
if self.backend == 'pyBigWig':
38-
return self.bw.stats(chrom, type=type, exact=True)[0]
38+
return self.bw.stats(chrom, type=type, exact=exact)[0]
3939
else:
40-
return self.bw.values(chrom, missing=np.nan, bins=1, exact=True, summary='mean')[0].item()
40+
return self.bw.values(chrom, missing=np.nan, bins=1, exact=exact, summary='mean')[0].item()
4141

4242
def values(self, chrom, start, end, missing=0):
4343
if self.backend == 'pyBigWig':

0 commit comments

Comments
 (0)