Skip to main content

XL-mHG: A Nonparametric Test For Enrichment in Ranked Binary Lists.

Project description

This is an efficient Python/Cython implementation of the nonparametric XL-mHG test for enrichment in ranked binary lists. The XL-mHG test is an extension of the mHG test, which was developed by Dr. Zohar Yakhini and colleagues.

If you use the XL-mHG in your research, please cite Eden et al. (2007) and Wagner (2015).

Installation

$ pip install xlmhg

Usage

import xlmhg
n,s,pval = xlmhg.test(v,X,L)

Where v is a NumPy array of type "np.uint8" containing only zeros and ones, X, and L are parameters, and the return values have the following meanings:

  • n: The threshold which the XL-mHG test statistic was based on.

  • s: The value of the XL-mHG test statistic

  • pval: The XL-mHG p-value associated with s.

Background

For a discussion of the statistical background and implementation of this test, please see my Technical Report on arXiv.

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

xlmhg-1.1rc3.tar.gz (5.6 kB view hashes)

Uploaded Source

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