pyBigWig icon indicating copy to clipboard operation
pyBigWig copied to clipboard

get the list of all possible stats

Open lldelisle opened this issue 6 years ago • 2 comments

Hi, I am wondering if there is a way to get the list of all possible stats described here: https://github.com/deeptools/pyBigWig/blob/705b07495ea78740eb7ea94fb0082e23661d9929/libBigWig/bigWig.h#L99-L107

For example,

import pyBigWig
possible_stats = pyBigWig.stats_cases
possible_stats
['mean', 'average', 'max', 'min', 'stdev', 'dev', 'coverage', 'cov', 'sum']

Or something like this... Many thanks

lldelisle avatar Oct 25 '19 08:10 lldelisle

You mean you want all of them for a given region or just to have a list of the stats that could be returned? It's always just been the 6 that you mentioned, though I suppose if there are ever others added then something like pyBigWig.statistics that returned a list of the possibilities would make sense.

dpryan79 avatar Oct 25 '19 18:10 dpryan79

Hi, Yes, the idea would be just to have a list of strings with the possible options for stats. Thanks

lldelisle avatar Oct 28 '19 06:10 lldelisle