Skip to content

Commit e62e5a5

Browse files
authored
Add standard deviation calculation to utils.py
1 parent 7c43645 commit e62e5a5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

seqchromloader/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ def stats(self, chrom, type='mean', exact=True):
8383
return float(np.max(arr))
8484
elif type == 'min':
8585
return float(np.min(arr))
86+
elif type == 'std':
87+
return float(np.std(arr))
8688
else:
8789
raise NotImplementedError(f"stat {type} not implemented for memmap backend")
8890

0 commit comments

Comments
 (0)