deeptools / pyBigWig

A python extension for quick access to bigWig and bigBed files
MIT License
216 stars 48 forks source link

type="sum" for bw.stats() #52

Closed tturowski closed 6 years ago

tturowski commented 6 years ago

Hi, An additional type='sum' for bw.stats() would be very useful

dpryan79 commented 6 years ago

@tturowski I'm looking into implementing this now. Am I correct in assuming that you'd want it to produce the sum of the per-base values?

tturowski commented 6 years ago

yes - something what would replace: sum(bw.values(gene_name, 0, length))

dpryan79 commented 6 years ago

This is now implemented for the next release, which will come out once I get more details on #56