XL-mHG: A Semiparametric Test for Enrichment
Project description
master |
|
develop |
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.
If you use the XL-mHG test in your research, please cite Eden et al. (PLoS Comput Biol, 2007) and Wagner (PLoS One, 2015).
Installation
$ pip install xlmhg
Usage
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 type "np.uint8", X` and L are parameters, and the return values have the following meanings:
stat: The XL-mHG test statistic
cutoff: The cutoff at which the XL-mHG test statistic was attained
pval: The XL-mHG p-value
What do the X and L parameters mean?
X refers to the minimum number of “1’s” that have to be seen before anything can be called “enrichment”.
L is the lowest cutoff (i.e., the largest n) that is being tested for enrichment.
A more direct way to understand X and L is through the definition of the XL-mHG test statistic. It is defined as the minimum hypergeometric p-value over all cutoffs at which at least X “1’s” have already been seen, and excluding any cutoffs larger than L. For X=1 and L=N, the XL-mHG test reduces to the mHG test.
Background
For a discussion of the statistical background and implementation of this test, please see the Technical Report on arXiv, as well as the XL-mHG PeerJ Preprint article.
Copyright and License
Copyright (c) 2015, 2016 Florian Wagner
XL-mHG is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License, Version 3, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for xlmhg-2.2.8-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 539af063707ac76e46b736463ee0dc4d1f7fed7a438e34e6c364f6c03254bbc4 |
|
MD5 | a2fd91a838516a080c4114a56cde72de |
|
BLAKE2b-256 | 47347a21867089c2f8afb5d578da3568675e667e909771681c32c681105e7f0b |
Hashes for xlmhg-2.2.8-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44e48ae2fac6d1c5b4477a922d2066118bb034dff09aaca8a622defcb93381d0 |
|
MD5 | a773935fa4e2f950c35432aa4f61ff69 |
|
BLAKE2b-256 | a8567bb5e53c6c59c2a11a658001b22ab0e2aed0757950051354f94acd6263ba |
Hashes for xlmhg-2.2.8-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a11c4d62d79bdec424eb3832705ae08ec1e5c4a37973f0a9406d76b9b894feb2 |
|
MD5 | 4678acb96969a3f59392771612292092 |
|
BLAKE2b-256 | aef57a4851fa033d9a09feb0cb3b0c1832de50da4adb76720e48ff9a2cfc2a49 |
Hashes for xlmhg-2.2.8-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9af160ca1123112822c476fc842a071e4fcf06ac269950fe2c7d5ac034f1eb35 |
|
MD5 | b567a28a6db4adfe3ac58c6f2651e4a1 |
|
BLAKE2b-256 | 0c5cdf3f6930329b42e2f39f2d9b37803fbf634bebe690c339c5ebfb80d3eb46 |
Hashes for xlmhg-2.2.8-cp35-cp35m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eff3b39fd7f1a521c132addd422ff02a6424fe5cfa531eccb2c64748f0e9c5bf |
|
MD5 | 6e798cae289092a4d7496f22867dd75b |
|
BLAKE2b-256 | a39686c75477fd0cf06ebd2d8b51c795e5cf354cd1219ddb5b25333021e28599 |
Hashes for xlmhg-2.2.8-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4e5b6bf966b86e1931f6017609057458049d29b476c8c1f1bd220fefd7f1a99 |
|
MD5 | 93872244c17e57dd30ce7604b0ff72b5 |
|
BLAKE2b-256 | 20783bd78d4335141afc3e91620d38093a6a08ff26e5c96a7805ca457c641ec8 |
Hashes for xlmhg-2.2.8-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5868784c999bd8db6db505b9852ab6d0885f83a4ef743e40dbc49d88d75f18a |
|
MD5 | 9b6565b8f017cac7c8252569a1e535f3 |
|
BLAKE2b-256 | 6c774f90a391cf85e6462162983f8e530ccf31deaaf1379bf277c28f21595785 |
Hashes for xlmhg-2.2.8-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 424525fb569e1da37399234ee0bd483aed6af4bec49ce7542b60599c1a0b8a6e |
|
MD5 | 27df8d4be9d2712f611253de516489db |
|
BLAKE2b-256 | 9b317fed7c077af0ca69d19094d602be797f5c86d9b36e807993ee752fd59ec4 |
Hashes for xlmhg-2.2.8-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5b45985dcab6923313383449924674a37cc56acdc40b8311df5aee7bce156fc |
|
MD5 | 53afc70e6ba64eb3c7c789a5c906c86f |
|
BLAKE2b-256 | 5ae7c884b58d1223ce6456533424d376ad4767ad6c0ff481a2d5d7980dda774b |
Hashes for xlmhg-2.2.8-cp27-cp27m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f18df38b206bbf022b33e76d36cd7caca6314404fe90a234cf6435ab280b8f9 |
|
MD5 | d18e0fa8a5c07f8d4b91b550c0f66153 |
|
BLAKE2b-256 | 53ab04d3c8b2f73ee0e4583c2cf7b45af307f8188836252a6d9aa22e3a543585 |