Skip to main content

Converts p-values in q-values in order to account for multiple hypotheses testing, see (Storey and Tibshirani, 2003)

Project description

Converts p-values in q-values, see (Storey and Tibshirani, 2003)

The only function that needs to be called is ‘estimate()’. It will accept a numpy array of pvalues and will return a numpy array of qvalues. For instance, given some uniform p-values:

import numpy as np import qvalue

pv = np.random.uniform(0.0, 1.0, size = (1000,))

it’s possible to convert them in q-values by calling

qv = qvalue.estimate(pv)

estimate() also includes a memory-efficient (but not CPU-efficient) procedure for the case when it’s not possible to store both the p-values and the q-values in memory at the same time. In addition it’s possible to change the number of hypotheses tested or some parameters of the procedure (like pi0).

We refer to the documentation (in ipython, ‘qvalue.estimate?’) for more informations.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qvalue-0.1.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file qvalue-0.1.1.tar.gz.

File metadata

  • Download URL: qvalue-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.13

File hashes

Hashes for qvalue-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e1de8514df534540f96b86f511be95b68a496d8c44017f1b1b869692793abe00
MD5 b52a03832d72048cb35fb581a8f9d6d0
BLAKE2b-256 ff819b66d78ed3f1fb3ac4d195732bd1c88b6d8849169e8c525139073e526719

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page