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.
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).
Copyright and License
Copyright (c) 2015-2019 Florian Wagner
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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.5.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29c8b706b9b91b81b13214bd63c0f829fb751447d7c7388f7370a1cfbfffa02b |
|
MD5 | 1a98c0ef325141ad152534847c776847 |
|
BLAKE2b-256 | 4b0db95ecc268a4bf96e88ec52a5a10993b629a4ea0b8f37b1e7706fe60c8d18 |
Hashes for xlmhg-2.5.0-cp37-cp37m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0d32d89eb9ac0798668272d51bd2f3b08a5019b3978a437bf9c662fe341021f |
|
MD5 | 15d6273f6887da684cb112a242cc9169 |
|
BLAKE2b-256 | c56898501224cdcf154e4e5e106ef5cac89fced517fdc4862c439276ab77c052 |
Hashes for xlmhg-2.5.0-cp36-cp36m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d2aabfa402e689693dcaf99c8382f11e2b4793465c783da661602298f07c736 |
|
MD5 | 463ebe392545eab5dcc310d628a4b890 |
|
BLAKE2b-256 | 71bc1e04de68ad6c96c6aa0f7e68ae30170291025baef5427bc489b0dfcd7b74 |
Hashes for xlmhg-2.5.0-cp35-cp35m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85bbc275b975775d7fd46bd54b2b48441fcd65dd5d9516b35509dcce6a16fb93 |
|
MD5 | ab6a9c9a1ff36bd1f45ff8d1afdabec9 |
|
BLAKE2b-256 | 4adc57bec3499b4a5d567c1e37710e14021cded230748bf4f90dbd20fd19c1ae |