Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get the list of all possible stats #96

Open
lldelisle opened this issue Oct 25, 2019 · 2 comments
Open

get the list of all possible stats #96

lldelisle opened this issue Oct 25, 2019 · 2 comments

Comments

@lldelisle
Copy link

Hi,
I am wondering if there is a way to get the list of all possible stats described here:

mean = 0, /*!< The mean value */
average = 0, /*!< The mean value */
stdev = 1, /*!< The standard deviation of the values */
dev = 1, /*!< The standard deviation of the values */
max = 2, /*!< The maximum value */
min = 3, /*!< The minimum value */
cov = 4, /*!< The number of bases covered */
coverage = 4, /*!<The number of bases covered */
sum = 5 /*!< The sum of per-base values */

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
Copy link
Collaborator

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants