deeptools / pyBigWig

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

get the list of all possible stats #96

Open lldelisle opened 4 years ago

lldelisle commented 4 years ago

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

dpryan79 commented 4 years ago

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.

lldelisle commented 4 years ago

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