Skip to main content

XL-mHG: A Semiparametric Test for Enrichment

Project description

PyPI version Python versions supported License

master

Coverage (master branch) Travis-CI build Status (master branch) Appveyor build Status (master branch) Documentation Status (master branch)

develop

Coverage (develop branch) Travis-CI build Status (develop branch) Appveyor build Status (develop branch) Documentation Status (develop branch)

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

Installation

$ pip install xlmhg

Getting started

The xlmhg package provides two functions (one simple and more more advanced) for performing XL-mHG tests. These functions are documented in the User Manual. Here’s a quick example using the “simple” test function:

import xlmhg
stat, cutoff, pval = xlmhg.xlmhg_test(v, X, L)

Where: v is the ranked list of 0’s and 1’s, represented by a NumPy array of integers, X and L are the XL-mHG parameters, and the return values have the following meanings:

  • stat: The XL-mHG test statistic

  • cutoff: The cutoff at which XL-mHG test statistic was attained

  • pval: The XL-mHG p-value

Documentation

Please refer to the XL-mHG User Manual (hosted on ReadTheDocs).

Citing XL-mHG

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

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-2.5.4.tar.gz (146.1 kB view hashes)

Uploaded Source

Built Distributions

xlmhg-2.5.4-cp38-cp38-win_amd64.whl (88.9 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

xlmhg-2.5.4-cp38-cp38-manylinux1_x86_64.whl (330.8 kB view hashes)

Uploaded CPython 3.8

xlmhg-2.5.4-cp38-cp38-manylinux1_i686.whl (308.0 kB view hashes)

Uploaded CPython 3.8

xlmhg-2.5.4-cp38-cp38-macosx_10_9_x86_64.whl (92.1 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

xlmhg-2.5.4-cp37-cp37m-win_amd64.whl (87.5 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

xlmhg-2.5.4-cp37-cp37m-win32.whl (72.8 kB view hashes)

Uploaded CPython 3.7m Windows x86

xlmhg-2.5.4-cp37-cp37m-manylinux1_x86_64.whl (326.7 kB view hashes)

Uploaded CPython 3.7m

xlmhg-2.5.4-cp37-cp37m-manylinux1_i686.whl (304.1 kB view hashes)

Uploaded CPython 3.7m

xlmhg-2.5.4-cp37-cp37m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl (92.6 kB view hashes)

Uploaded CPython 3.7m macOS 10.10+ x86-64 macOS 10.6+ x86-64 macOS 10.9+ x86-64

xlmhg-2.5.4-cp36-cp36m-win_amd64.whl (87.5 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

xlmhg-2.5.4-cp36-cp36m-win32.whl (72.8 kB view hashes)

Uploaded CPython 3.6m Windows x86

xlmhg-2.5.4-cp36-cp36m-manylinux1_x86_64.whl (327.3 kB view hashes)

Uploaded CPython 3.6m

xlmhg-2.5.4-cp36-cp36m-manylinux1_i686.whl (304.7 kB view hashes)

Uploaded CPython 3.6m

xlmhg-2.5.4-cp36-cp36m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl (92.3 kB view hashes)

Uploaded CPython 3.6m macOS 10.10+ x86-64 macOS 10.6+ x86-64 macOS 10.9+ x86-64

xlmhg-2.5.4-cp35-cp35m-manylinux1_x86_64.whl (324.0 kB view hashes)

Uploaded CPython 3.5m

xlmhg-2.5.4-cp35-cp35m-manylinux1_i686.whl (300.8 kB view hashes)

Uploaded CPython 3.5m

xlmhg-2.5.4-cp35-cp35m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl (90.5 kB view hashes)

Uploaded CPython 3.5m macOS 10.10+ x86-64 macOS 10.6+ x86-64 macOS 10.9+ x86-64

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